385 lines
7.6 KiB
JSON
385 lines
7.6 KiB
JSON
{
|
|||
|
|
"schemaVersion": 1,
|
||
|
|
"brandId": "spotify",
|
||
|
|
"source": {
|
||
|
|
"componentsHtml": "components.html",
|
||
|
|
"tokensCss": "tokens.css"
|
||
|
|
},
|
||
|
|
"fixture": {
|
||
|
|
"title": "Spotify — reference components",
|
||
|
|
"description": "Reference fixture for design-systems/spotify. Every visible value comes from tokens.css. Spotify's signature moves: near-black immersive surfaces, Spotify Green (#1ed760) for play/active/CTA only, full-pill and circular geometry, uppercase button labels with wide tracking.",
|
||
|
|
"styleBlockCount": 1,
|
||
|
|
"selectorCount": 40,
|
||
|
|
"classCount": 20,
|
||
|
|
"elementCount": 17
|
||
|
|
},
|
||
|
|
"tokens": {
|
||
|
|
"declared": [
|
||
|
|
"--accent",
|
||
|
|
"--accent-active",
|
||
|
|
"--accent-hover",
|
||
|
|
"--accent-on",
|
||
|
|
"--bg",
|
||
|
|
"--border",
|
||
|
|
"--border-soft",
|
||
|
|
"--container-gutter-desktop",
|
||
|
|
"--container-gutter-phone",
|
||
|
|
"--container-gutter-tablet",
|
||
|
|
"--container-max",
|
||
|
|
"--danger",
|
||
|
|
"--ease-standard",
|
||
|
|
"--elev-flat",
|
||
|
|
"--elev-raised",
|
||
|
|
"--elev-ring",
|
||
|
|
"--fg",
|
||
|
|
"--fg-2",
|
||
|
|
"--focus-ring",
|
||
|
|
"--font-body",
|
||
|
|
"--font-display",
|
||
|
|
"--font-mono",
|
||
|
|
"--leading-body",
|
||
|
|
"--leading-tight",
|
||
|
|
"--meta",
|
||
|
|
"--motion-base",
|
||
|
|
"--motion-fast",
|
||
|
|
"--muted",
|
||
|
|
"--radius-lg",
|
||
|
|
"--radius-md",
|
||
|
|
"--radius-pill",
|
||
|
|
"--radius-sm",
|
||
|
|
"--section-y-desktop",
|
||
|
|
"--section-y-phone",
|
||
|
|
"--section-y-tablet",
|
||
|
|
"--space-1",
|
||
|
|
"--space-12",
|
||
|
|
"--space-2",
|
||
|
|
"--space-3",
|
||
|
|
"--space-4",
|
||
|
|
"--space-5",
|
||
|
|
"--space-6",
|
||
|
|
"--space-8",
|
||
|
|
"--success",
|
||
|
|
"--surface",
|
||
|
|
"--surface-warm",
|
||
|
|
"--text-2xl",
|
||
|
|
"--text-3xl",
|
||
|
|
"--text-4xl",
|
||
|
|
"--text-base",
|
||
|
|
"--text-lg",
|
||
|
|
"--text-sm",
|
||
|
|
"--text-xl",
|
||
|
|
"--text-xs",
|
||
|
|
"--tracking-display",
|
||
|
|
"--warn"
|
||
|
|
],
|
||
|
|
"referenced": [
|
||
|
|
"--accent",
|
||
|
|
"--accent-hover",
|
||
|
|
"--accent-on",
|
||
|
|
"--bg",
|
||
|
|
"--border",
|
||
|
|
"--border-soft",
|
||
|
|
"--container-gutter-desktop",
|
||
|
|
"--container-gutter-phone",
|
||
|
|
"--container-gutter-tablet",
|
||
|
|
"--container-max",
|
||
|
|
"--ease-standard",
|
||
|
|
"--elev-raised",
|
||
|
|
"--fg",
|
||
|
|
"--focus-ring",
|
||
|
|
"--font-body",
|
||
|
|
"--font-display",
|
||
|
|
"--leading-body",
|
||
|
|
"--leading-tight",
|
||
|
|
"--motion-base",
|
||
|
|
"--motion-fast",
|
||
|
|
"--muted",
|
||
|
|
"--radius-md",
|
||
|
|
"--radius-sm",
|
||
|
|
"--section-y-desktop",
|
||
|
|
"--section-y-phone",
|
||
|
|
"--section-y-tablet",
|
||
|
|
"--space-1",
|
||
|
|
"--space-2",
|
||
|
|
"--space-3",
|
||
|
|
"--space-4",
|
||
|
|
"--space-5",
|
||
|
|
"--space-6",
|
||
|
|
"--space-8",
|
||
|
|
"--surface",
|
||
|
|
"--surface-warm",
|
||
|
|
"--text-2xl",
|
||
|
|
"--text-base",
|
||
|
|
"--text-lg",
|
||
|
|
"--text-sm"
|
||
|
|
],
|
||
|
|
"unusedDeclared": [
|
||
|
|
"--accent-active",
|
||
|
|
"--danger",
|
||
|
|
"--elev-flat",
|
||
|
|
"--elev-ring",
|
||
|
|
"--fg-2",
|
||
|
|
"--font-mono",
|
||
|
|
"--meta",
|
||
|
|
"--radius-lg",
|
||
|
|
"--radius-pill",
|
||
|
|
"--space-12",
|
||
|
|
"--success",
|
||
|
|
"--text-3xl",
|
||
|
|
"--text-4xl",
|
||
|
|
"--text-xl",
|
||
|
|
"--text-xs",
|
||
|
|
"--tracking-display",
|
||
|
|
"--warn"
|
||
|
|
],
|
||
|
|
"undeclaredReferenced": []
|
||
|
|
},
|
||
|
|
"selectors": [
|
||
|
|
".album-grid",
|
||
|
|
".body-muted",
|
||
|
|
".body-sm",
|
||
|
|
".btn",
|
||
|
|
".btn-dark",
|
||
|
|
".btn-dark:hover",
|
||
|
|
".btn-outline",
|
||
|
|
".btn-play",
|
||
|
|
".btn-play:hover",
|
||
|
|
".btn-upper",
|
||
|
|
".btn:focus-visible",
|
||
|
|
".card",
|
||
|
|
".card:hover",
|
||
|
|
".container",
|
||
|
|
".hero-actions",
|
||
|
|
".hero-grid",
|
||
|
|
".icon",
|
||
|
|
".nav-pill",
|
||
|
|
".nav-pill:hover",
|
||
|
|
".nav-pill.active",
|
||
|
|
".stack-3 > * + *",
|
||
|
|
".stack-4 > * + *",
|
||
|
|
".track-artist",
|
||
|
|
".track-duration",
|
||
|
|
".track-info",
|
||
|
|
".track-name",
|
||
|
|
".track-row",
|
||
|
|
".track-row:hover",
|
||
|
|
".track-thumb",
|
||
|
|
"*",
|
||
|
|
"*::after",
|
||
|
|
"*::before",
|
||
|
|
"body",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3",
|
||
|
|
"html",
|
||
|
|
"p",
|
||
|
|
"section",
|
||
|
|
"section + section"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"album-grid",
|
||
|
|
"body-muted",
|
||
|
|
"body-sm",
|
||
|
|
"btn",
|
||
|
|
"btn-dark",
|
||
|
|
"btn-outline",
|
||
|
|
"btn-play",
|
||
|
|
"btn-upper",
|
||
|
|
"card",
|
||
|
|
"container",
|
||
|
|
"hero-actions",
|
||
|
|
"hero-grid",
|
||
|
|
"stack-3",
|
||
|
|
"stack-4",
|
||
|
|
"track-artist",
|
||
|
|
"track-duration",
|
||
|
|
"track-info",
|
||
|
|
"track-name",
|
||
|
|
"track-row",
|
||
|
|
"track-thumb"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"a",
|
||
|
|
"aside",
|
||
|
|
"body",
|
||
|
|
"div",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"head",
|
||
|
|
"html",
|
||
|
|
"main",
|
||
|
|
"meta",
|
||
|
|
"p",
|
||
|
|
"path",
|
||
|
|
"section",
|
||
|
|
"span",
|
||
|
|
"style",
|
||
|
|
"svg",
|
||
|
|
"title"
|
||
|
|
],
|
||
|
|
"groups": [
|
||
|
|
{
|
||
|
|
"id": "buttons",
|
||
|
|
"label": "Buttons and calls to action",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".btn",
|
||
|
|
".btn-dark",
|
||
|
|
".btn-dark:hover",
|
||
|
|
".btn-outline",
|
||
|
|
".btn-play",
|
||
|
|
".btn-play:hover",
|
||
|
|
".btn-upper",
|
||
|
|
".btn:focus-visible"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"btn",
|
||
|
|
"btn-dark",
|
||
|
|
"btn-outline",
|
||
|
|
"btn-play",
|
||
|
|
"btn-upper"
|
||
|
|
],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--accent-hover",
|
||
|
|
"--focus-ring"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "inputs",
|
||
|
|
"label": "Form fields and controls",
|
||
|
|
"present": false,
|
||
|
|
"selectors": [],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "cards",
|
||
|
|
"label": "Cards and panels",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".card",
|
||
|
|
".card:hover"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"card"
|
||
|
|
],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--elev-raised"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "badges",
|
||
|
|
"label": "Badges, chips, and status labels",
|
||
|
|
"present": false,
|
||
|
|
"selectors": [],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "links",
|
||
|
|
"label": "Links and inline actions",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [
|
||
|
|
"a"
|
||
|
|
],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "keyboard",
|
||
|
|
"label": "Keyboard hints",
|
||
|
|
"present": false,
|
||
|
|
"selectors": [],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "icons",
|
||
|
|
"label": "Icon slots",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".icon"
|
||
|
|
],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [
|
||
|
|
"svg"
|
||
|
|
],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "typography",
|
||
|
|
"label": "Typography scale and text utilities",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".body-muted",
|
||
|
|
".body-sm",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"body-muted",
|
||
|
|
"body-sm"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"p"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--fg",
|
||
|
|
"--font-display",
|
||
|
|
"--leading-tight",
|
||
|
|
"--muted",
|
||
|
|
"--text-2xl",
|
||
|
|
"--text-sm"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "layout",
|
||
|
|
"label": "Layout primitives",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".container",
|
||
|
|
".nav-pill",
|
||
|
|
".nav-pill:hover",
|
||
|
|
".nav-pill.active",
|
||
|
|
".stack-3 > * + *",
|
||
|
|
".stack-4 > * + *",
|
||
|
|
"section",
|
||
|
|
"section + section"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"album-grid",
|
||
|
|
"container",
|
||
|
|
"hero-grid",
|
||
|
|
"stack-3",
|
||
|
|
"stack-4"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"main",
|
||
|
|
"section"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--border-soft",
|
||
|
|
"--container-gutter-desktop",
|
||
|
|
"--container-gutter-phone",
|
||
|
|
"--container-gutter-tablet",
|
||
|
|
"--container-max",
|
||
|
|
"--space-4",
|
||
|
|
"--surface-warm"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"literals": {
|
||
|
|
"colorExpressions": 4,
|
||
|
|
"pixelValues": 26,
|
||
|
|
"hardcodedFontFamilies": 4
|
||
|
|
}
|
||
|
|
}
|