548 lines
11 KiB
JSON
548 lines
11 KiB
JSON
{
|
|||
|
|
"schemaVersion": 1,
|
||
|
|
"brandId": "stripe",
|
||
|
|
"source": {
|
||
|
|
"componentsHtml": "components.html",
|
||
|
|
"tokensCss": "tokens.css"
|
||
|
|
},
|
||
|
|
"fixture": {
|
||
|
|
"title": "Inspired by Stripe — reference components",
|
||
|
|
"description": "Reference fixture for design-systems/stripe. Every visible value comes from tokens.css; the page itself follows Stripe's rules — sohne-var with ss01 globally, weight 300 at display sizes, deep navy (#061b31) headings instead of black, blue- tinted multi-layer shadows on elevated surfaces, conservative 4-8px radius, and Stripe Purple capped at ≤2 visible uses per screen.",
|
||
|
|
"styleBlockCount": 1,
|
||
|
|
"selectorCount": 79,
|
||
|
|
"classCount": 45,
|
||
|
|
"elementCount": 31
|
||
|
|
},
|
||
|
|
"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-active",
|
||
|
|
"--accent-hover",
|
||
|
|
"--accent-on",
|
||
|
|
"--bg",
|
||
|
|
"--border",
|
||
|
|
"--container-gutter-desktop",
|
||
|
|
"--container-gutter-phone",
|
||
|
|
"--container-gutter-tablet",
|
||
|
|
"--container-max",
|
||
|
|
"--danger",
|
||
|
|
"--ease-standard",
|
||
|
|
"--elev-raised",
|
||
|
|
"--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-sm",
|
||
|
|
"--section-y-desktop",
|
||
|
|
"--section-y-phone",
|
||
|
|
"--section-y-tablet",
|
||
|
|
"--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"
|
||
|
|
],
|
||
|
|
"unusedDeclared": [
|
||
|
|
"--border-soft",
|
||
|
|
"--elev-flat",
|
||
|
|
"--elev-ring",
|
||
|
|
"--radius-pill",
|
||
|
|
"--space-1",
|
||
|
|
"--warn"
|
||
|
|
],
|
||
|
|
"undeclaredReferenced": []
|
||
|
|
},
|
||
|
|
"selectors": [
|
||
|
|
".badge",
|
||
|
|
".badge-accent",
|
||
|
|
".badge-dot",
|
||
|
|
".badge-muted",
|
||
|
|
".badge-success",
|
||
|
|
".body-meta",
|
||
|
|
".body-muted",
|
||
|
|
".body-sm",
|
||
|
|
".btn",
|
||
|
|
".btn-ghost",
|
||
|
|
".btn-ghost:hover",
|
||
|
|
".btn-primary",
|
||
|
|
".btn-primary:active",
|
||
|
|
".btn-primary:hover",
|
||
|
|
".btn-sm",
|
||
|
|
".btn:focus-visible",
|
||
|
|
".card",
|
||
|
|
".card-elevated",
|
||
|
|
".card-elevated:hover",
|
||
|
|
".card-title",
|
||
|
|
".code",
|
||
|
|
".code .c",
|
||
|
|
".code .k",
|
||
|
|
".code .n",
|
||
|
|
".code .s",
|
||
|
|
".container",
|
||
|
|
".eyebrow",
|
||
|
|
".features-grid",
|
||
|
|
".field",
|
||
|
|
".field input",
|
||
|
|
".field input::placeholder",
|
||
|
|
".field input:focus-visible",
|
||
|
|
".field label",
|
||
|
|
".field select",
|
||
|
|
".field select:focus-visible",
|
||
|
|
".field textarea",
|
||
|
|
".field textarea:focus-visible",
|
||
|
|
".field-help",
|
||
|
|
".form",
|
||
|
|
".form-actions",
|
||
|
|
".form-grid-2",
|
||
|
|
".form-row",
|
||
|
|
".halo",
|
||
|
|
".hero",
|
||
|
|
".hero h1",
|
||
|
|
".hero-actions",
|
||
|
|
".hero-inner",
|
||
|
|
".icon",
|
||
|
|
".lede",
|
||
|
|
".metric",
|
||
|
|
".metric-label",
|
||
|
|
".metric-row",
|
||
|
|
".metric-value",
|
||
|
|
".pricing-grid",
|
||
|
|
".pricing-list",
|
||
|
|
".pricing-list li",
|
||
|
|
".pricing-list li::before",
|
||
|
|
".pricing-price",
|
||
|
|
".pricing-price small",
|
||
|
|
".row-between",
|
||
|
|
".stack-3 > * + *",
|
||
|
|
".stack-4 > * + *",
|
||
|
|
".stack-6 > * + *",
|
||
|
|
".stack-8 > * + *",
|
||
|
|
"*",
|
||
|
|
"*::after",
|
||
|
|
"*::before",
|
||
|
|
"a",
|
||
|
|
"a:hover",
|
||
|
|
"body",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3",
|
||
|
|
"html",
|
||
|
|
"kbd",
|
||
|
|
"p",
|
||
|
|
"section",
|
||
|
|
"section + section",
|
||
|
|
"strong"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"badge",
|
||
|
|
"badge-accent",
|
||
|
|
"badge-dot",
|
||
|
|
"badge-muted",
|
||
|
|
"badge-success",
|
||
|
|
"body-muted",
|
||
|
|
"body-sm",
|
||
|
|
"btn",
|
||
|
|
"btn-ghost",
|
||
|
|
"btn-primary",
|
||
|
|
"btn-sm",
|
||
|
|
"c",
|
||
|
|
"card",
|
||
|
|
"card-elevated",
|
||
|
|
"card-title",
|
||
|
|
"code",
|
||
|
|
"container",
|
||
|
|
"eyebrow",
|
||
|
|
"features-grid",
|
||
|
|
"field",
|
||
|
|
"field-help",
|
||
|
|
"form",
|
||
|
|
"form-actions",
|
||
|
|
"form-grid-2",
|
||
|
|
"form-row",
|
||
|
|
"halo",
|
||
|
|
"hero",
|
||
|
|
"hero-actions",
|
||
|
|
"hero-inner",
|
||
|
|
"icon",
|
||
|
|
"k",
|
||
|
|
"lede",
|
||
|
|
"metric",
|
||
|
|
"metric-label",
|
||
|
|
"metric-row",
|
||
|
|
"metric-value",
|
||
|
|
"n",
|
||
|
|
"pricing-grid",
|
||
|
|
"pricing-list",
|
||
|
|
"pricing-price",
|
||
|
|
"row-between",
|
||
|
|
"s",
|
||
|
|
"stack-3",
|
||
|
|
"stack-4",
|
||
|
|
"stack-6"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"a",
|
||
|
|
"article",
|
||
|
|
"aside",
|
||
|
|
"body",
|
||
|
|
"button",
|
||
|
|
"code",
|
||
|
|
"div",
|
||
|
|
"form",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3",
|
||
|
|
"head",
|
||
|
|
"html",
|
||
|
|
"input",
|
||
|
|
"kbd",
|
||
|
|
"label",
|
||
|
|
"li",
|
||
|
|
"main",
|
||
|
|
"meta",
|
||
|
|
"option",
|
||
|
|
"p",
|
||
|
|
"path",
|
||
|
|
"pre",
|
||
|
|
"section",
|
||
|
|
"select",
|
||
|
|
"small",
|
||
|
|
"span",
|
||
|
|
"style",
|
||
|
|
"svg",
|
||
|
|
"title",
|
||
|
|
"ul"
|
||
|
|
],
|
||
|
|
"groups": [
|
||
|
|
{
|
||
|
|
"id": "buttons",
|
||
|
|
"label": "Buttons and calls to action",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".btn",
|
||
|
|
".btn-ghost",
|
||
|
|
".btn-ghost:hover",
|
||
|
|
".btn-primary",
|
||
|
|
".btn-primary:active",
|
||
|
|
".btn-primary:hover",
|
||
|
|
".btn-sm",
|
||
|
|
".btn:focus-visible"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"btn",
|
||
|
|
"btn-ghost",
|
||
|
|
"btn-primary",
|
||
|
|
"btn-sm"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"button"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--accent",
|
||
|
|
"--accent-active",
|
||
|
|
"--accent-on",
|
||
|
|
"--ease-standard",
|
||
|
|
"--fg",
|
||
|
|
"--font-display",
|
||
|
|
"--motion-fast",
|
||
|
|
"--radius-sm",
|
||
|
|
"--space-2",
|
||
|
|
"--text-base"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "inputs",
|
||
|
|
"label": "Form fields and controls",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".field",
|
||
|
|
".field input",
|
||
|
|
".field input::placeholder",
|
||
|
|
".field input:focus-visible",
|
||
|
|
".field label",
|
||
|
|
".field select",
|
||
|
|
".field select:focus-visible",
|
||
|
|
".field textarea",
|
||
|
|
".field textarea:focus-visible",
|
||
|
|
".field-help",
|
||
|
|
".metric-label"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"field",
|
||
|
|
"field-help",
|
||
|
|
"form",
|
||
|
|
"form-actions",
|
||
|
|
"form-grid-2",
|
||
|
|
"form-row"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"form",
|
||
|
|
"input",
|
||
|
|
"label",
|
||
|
|
"select"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--border",
|
||
|
|
"--ease-standard",
|
||
|
|
"--fg",
|
||
|
|
"--motion-fast",
|
||
|
|
"--muted",
|
||
|
|
"--radius-sm",
|
||
|
|
"--space-2",
|
||
|
|
"--surface",
|
||
|
|
"--text-base",
|
||
|
|
"--text-sm"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "cards",
|
||
|
|
"label": "Cards and panels",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".card",
|
||
|
|
".card-elevated",
|
||
|
|
".card-elevated:hover",
|
||
|
|
".card-title"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"card",
|
||
|
|
"card-elevated",
|
||
|
|
"card-title"
|
||
|
|
],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--border",
|
||
|
|
"--radius-md",
|
||
|
|
"--space-3",
|
||
|
|
"--space-6",
|
||
|
|
"--surface"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "badges",
|
||
|
|
"label": "Badges, chips, and status labels",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".badge",
|
||
|
|
".badge-accent",
|
||
|
|
".badge-dot",
|
||
|
|
".badge-muted",
|
||
|
|
".badge-success"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"badge",
|
||
|
|
"badge-accent",
|
||
|
|
"badge-dot",
|
||
|
|
"badge-muted",
|
||
|
|
"badge-success"
|
||
|
|
],
|
||
|
|
"elements": [],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--border",
|
||
|
|
"--muted",
|
||
|
|
"--radius-sm",
|
||
|
|
"--surface-warm",
|
||
|
|
"--text-xs"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "links",
|
||
|
|
"label": "Links and inline actions",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
"a",
|
||
|
|
"a:hover"
|
||
|
|
],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [
|
||
|
|
"a"
|
||
|
|
],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "keyboard",
|
||
|
|
"label": "Keyboard hints",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
"kbd"
|
||
|
|
],
|
||
|
|
"classes": [],
|
||
|
|
"elements": [
|
||
|
|
"kbd"
|
||
|
|
],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "icons",
|
||
|
|
"label": "Icon slots",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".icon"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"icon"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"svg"
|
||
|
|
],
|
||
|
|
"tokenReferences": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "typography",
|
||
|
|
"label": "Typography scale and text utilities",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".body-muted",
|
||
|
|
".body-sm",
|
||
|
|
".eyebrow",
|
||
|
|
".hero h1",
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"body-muted",
|
||
|
|
"body-sm",
|
||
|
|
"eyebrow"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"h1",
|
||
|
|
"h2",
|
||
|
|
"h3",
|
||
|
|
"p"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--fg",
|
||
|
|
"--font-display",
|
||
|
|
"--leading-tight",
|
||
|
|
"--muted",
|
||
|
|
"--text-2xl",
|
||
|
|
"--text-sm",
|
||
|
|
"--tracking-display"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "layout",
|
||
|
|
"label": "Layout primitives",
|
||
|
|
"present": true,
|
||
|
|
"selectors": [
|
||
|
|
".container",
|
||
|
|
".row-between",
|
||
|
|
".stack-3 > * + *",
|
||
|
|
".stack-4 > * + *",
|
||
|
|
".stack-6 > * + *",
|
||
|
|
".stack-8 > * + *",
|
||
|
|
"section",
|
||
|
|
"section + section"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
"container",
|
||
|
|
"features-grid",
|
||
|
|
"form-grid-2",
|
||
|
|
"pricing-grid",
|
||
|
|
"row-between",
|
||
|
|
"stack-3",
|
||
|
|
"stack-4",
|
||
|
|
"stack-6"
|
||
|
|
],
|
||
|
|
"elements": [
|
||
|
|
"main",
|
||
|
|
"section"
|
||
|
|
],
|
||
|
|
"tokenReferences": [
|
||
|
|
"--container-gutter-phone",
|
||
|
|
"--container-gutter-tablet",
|
||
|
|
"--section-y-desktop",
|
||
|
|
"--space-3",
|
||
|
|
"--space-6"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"literals": {
|
||
|
|
"colorExpressions": 15,
|
||
|
|
"pixelValues": 51,
|
||
|
|
"hardcodedFontFamilies": 9
|
||
|
|
}
|
||
|
|
}
|