Turn a brand color into a complete set of CSS custom properties: 50 to 950 scales, text and surface roles that pass WCAG contrast in light and dark, a type scale, spacing, radius, shadows and motion. Start from one of 16 palettes.
Your fileUpdated as you type. Nothing is sent anywhere.
tokens.cssFor Any CSS: plain, Tailwind v4 @theme, CSS modules
/*
* tokens.css: My product
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 5.16:1 AA
* primary as text on bg 5.16:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.21:1 AAA
* muted text on bg 6.93:1 AA
* on-primary on primary 6.56:1 AA
* primary as text on bg 6.27:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.46:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 7.14:1 AAA
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f7fe;
--color-primary-100: #e9effd;
--color-primary-200: #cddbfa;
--color-primary-300: #a8c1f7;
--color-primary-400: #6b95f1;
--color-primary-500: #2563eb;
--color-primary-600: #1e51c1;
--color-primary-700: #183f96;
--color-primary-800: #122f6e;
--color-primary-900: #0c204b;
--color-primary-950: #07122a;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #2563eb;
--color-primary-hover: #1e51c1;
--color-on-primary: #ffffff;
--color-focus: #2563eb;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.64rem;
--text-sm: 0.8rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5625rem;
--text-2xl: 1.9531rem;
--text-3xl: 2.4413rem;
--text-4xl: 3.0519rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.08);
--shadow-md: 0 4px 8px rgb(18 21 25 / 0.1);
--shadow-lg: 0 12px 24px rgb(18 21 25 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #121519;
--color-surface: #20252c;
--color-text: #f7f8f9;
--color-text-muted: #96a0b0;
--color-border: #2f3741;
--color-primary: #6b95f1;
--color-primary-hover: #a8c1f7;
--color-on-primary: #0b0f19;
--color-focus: #6b95f1;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Save it as tokens.css next to your other styles, import it before anything else, and reference the role tokens (--color-text, --color-primary) in your components.
Which Palettes Can You Start From?
Sixteen original palettes for the product types people build most. Every one reaches 4.5:1 or better on every text pair, in light and dark; the header of each file shows the computed ratios.
Corporate blue
A dependable blue primary on cool slate neutrals with soft corners and quiet shadows: the safe default for B2B products.
Preconfigured for: B2B SaaS, internal tools and enterprise dashboards.
Preview tokens.css
/*
* tokens.css: Corporate blue
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 6.70:1 AA
* primary as text on bg 6.70:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.21:1 AAA
* muted text on bg 6.93:1 AA
* on-primary on primary 5.59:1 AA
* primary as text on bg 5.35:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.46:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 7.14:1 AAA
*
* Web fonts named here (Inter) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f6fd;
--color-primary-100: #e8edfb;
--color-primary-200: #cbd6f6;
--color-primary-300: #a5b8ef;
--color-primary-400: #6587e4;
--color-primary-500: #1d4ed8;
--color-primary-600: #1840b1;
--color-primary-700: #12328a;
--color-primary-800: #0d2566;
--color-primary-900: #091945;
--color-primary-950: #050e27;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #1d4ed8;
--color-primary-hover: #1840b1;
--color-on-primary: #ffffff;
--color-focus: #1d4ed8;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.6944rem;
--text-sm: 0.8331rem;
--text-base: 1rem;
--text-lg: 1.2rem;
--text-xl: 1.44rem;
--text-2xl: 1.7281rem;
--text-3xl: 2.0737rem;
--text-4xl: 2.4881rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 8px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.05);
--shadow-md: 0 2px 4px rgb(18 21 25 / 0.06);
--shadow-lg: 0 8px 16px rgb(18 21 25 / 0.08);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #121519;
--color-surface: #20252c;
--color-text: #f7f8f9;
--color-text-muted: #96a0b0;
--color-border: #2f3741;
--color-primary: #6587e4;
--color-primary-hover: #a5b8ef;
--color-on-primary: #0b0f19;
--color-focus: #6587e4;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Warm startup
A coral primary with a teal secondary on warm stone neutrals, round corners and soft shadows: friendly without looking childish.
Preconfigured for: Consumer startups, marketplaces and community apps.
Preview tokens.css
/*
* tokens.css: Warm startup
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.42:1 AAA
* muted text on bg 4.79:1 AA
* on-primary on primary 5.06:1 AA
* primary as text on bg 5.06:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.29:1 AAA
* muted text on bg 6.92:1 AA
* on-primary on primary 7.92:1 AAA
* primary as text on bg 7.59:1 AAA
* success as text on bg 8.20:1 AAA
* warning as text on bg 8.48:1 AAA
* danger as text on bg 5.87:1 AA
* info as text on bg 7.16:1 AAA
*
* Web fonts named here (DM Sans) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #fef7f3;
--color-primary-100: #fdeee7;
--color-primary-200: #fad9c7;
--color-primary-300: #f6bd9e;
--color-primary-400: #ef8e5a;
--color-primary-500: #e8590c;
--color-primary-600: #be490a;
--color-primary-700: #953908;
--color-primary-800: #6d2a06;
--color-primary-900: #4a1c04;
--color-primary-950: #2a1002;
--color-secondary-50: #f3f8f8;
--color-secondary-100: #e7f1f1;
--color-secondary-200: #c8dfde;
--color-secondary-300: #9fc8c5;
--color-secondary-400: #5ca29c;
--color-secondary-500: #0f766e;
--color-secondary-600: #0c615a;
--color-secondary-700: #0a4b46;
--color-secondary-800: #073734;
--color-secondary-900: #052623;
--color-secondary-950: #031514;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f2f1f0;
--color-neutral-200: #e0dedd;
--color-neutral-300: #c9c6c4;
--color-neutral-400: #a39e9b;
--color-neutral-500: #78716c;
--color-neutral-600: #625d58;
--color-neutral-700: #4d4845;
--color-neutral-800: #393532;
--color-neutral-900: #272422;
--color-neutral-950: #161413;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #272422;
--color-text-muted: #78716c;
--color-border: #e0dedd;
--color-primary: #be490a;
--color-primary-hover: #953908;
--color-on-primary: #ffffff;
--color-focus: #be490a;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.64rem;
--text-sm: 0.8rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5625rem;
--text-2xl: 1.9531rem;
--text-3xl: 2.4413rem;
--text-4xl: 3.0519rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 20px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(22 20 19 / 0.08);
--shadow-md: 0 4px 8px rgb(22 20 19 / 0.1);
--shadow-lg: 0 12px 24px rgb(22 20 19 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
.dark {
color-scheme: dark;
--color-bg: #161413;
--color-surface: #272422;
--color-text: #f8f8f8;
--color-text-muted: #a39e9b;
--color-border: #393532;
--color-primary: #ef8e5a;
--color-primary-hover: #f6bd9e;
--color-on-primary: #0b0f19;
--color-focus: #ef8e5a;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
High-contrast accessibility
AAA text contrast targets, an Atkinson Hyperlegible stack, a larger 18px base and sharp, clearly outlined shapes.
Preconfigured for: Public services, accessibility-first products and low-vision audiences.
Preview tokens.css
/*
* tokens.css: High contrast
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AAA (7:1 for text, where the hue allows).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.32:1 AAA
* muted text on bg 8.86:1 AAA
* on-primary on primary 8.72:1 AAA
* primary as text on bg 8.72:1 AAA
* success as text on bg 9.31:1 AAA
* warning as text on bg 9.37:1 AAA
* danger as text on bg 8.50:1 AAA
* info as text on bg 7.87:1 AAA
* Dark text on bg 17.19:1 AAA
* muted text on bg 10.80:1 AAA
* on-primary on primary 9.22:1 AAA
* primary as text on bg 8.79:1 AAA
* success as text on bg 10.25:1 AAA
* warning as text on bg 10.18:1 AAA
* danger as text on bg 8.79:1 AAA
* info as text on bg 9.72:1 AAA
*
* Web fonts named here (Atkinson Hyperlegible) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f5fb;
--color-primary-100: #e9ecf7;
--color-primary-200: #cbd3ed;
--color-primary-300: #a5b3df;
--color-primary-400: #667dc9;
--color-primary-500: #1e40af;
--color-primary-600: #193590;
--color-primary-700: #132970;
--color-primary-800: #0e1e53;
--color-primary-900: #091538;
--color-primary-950: #050c20;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f1f1f1;
--color-neutral-200: #dfdfdf;
--color-neutral-300: #c7c7c7;
--color-neutral-400: #a0a0a0;
--color-neutral-500: #737373;
--color-neutral-600: #5e5e5e;
--color-neutral-700: #4a4a4a;
--color-neutral-800: #363636;
--color-neutral-900: #252525;
--color-neutral-950: #151515;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #252525;
--color-text-muted: #4a4a4a;
--color-border: #dfdfdf;
--color-primary: #1e40af;
--color-primary-hover: #193590;
--color-on-primary: #ffffff;
--color-focus: #1e40af;
--color-success: #0e5227;
--color-warning: #733506;
--color-danger: #981717;
--color-info: #035684;
/* Typography */
--font-sans: "Atkinson Hyperlegible", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.72rem;
--text-sm: 0.9rem;
--text-base: 1.125rem;
--text-lg: 1.4063rem;
--text-xl: 1.7581rem;
--text-2xl: 2.1975rem;
--text-3xl: 2.7469rem;
--text-4xl: 3.4331rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 0px;
--radius-md: 2px;
--radius-lg: 4px;
--radius-full: 9999px;
--shadow-sm: none;
--shadow-md: none;
--shadow-lg: none;
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #151515;
--color-surface: #252525;
--color-text: #f8f8f8;
--color-text-muted: #c7c7c7;
--color-border: #363636;
--color-primary: #a5b3df;
--color-primary-hover: #cbd3ed;
--color-on-primary: #0b0f19;
--color-focus: #a5b3df;
--color-success: #a1ccb1;
--color-warning: #e1ba9d;
--color-danger: #e3a4a4;
--color-info: #9ac3d9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Fintech green
A deep money-green primary with a navy secondary, tabular-friendly IBM Plex type and restrained shadows that read as trustworthy.
Preconfigured for: Banking, payments, budgeting and investing apps.
Preview tokens.css
/*
* tokens.css: Fintech green
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.38:1 AAA
* muted text on bg 4.83:1 AA
* on-primary on primary 5.48:1 AA
* primary as text on bg 5.48:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.24:1 AAA
* muted text on bg 6.89:1 AA
* on-primary on primary 6.38:1 AA
* primary as text on bg 6.10:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.45:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 7.14:1 AAA
*
* Web fonts named here (IBM Plex Sans, IBM Plex Mono) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f2f8f7;
--color-primary-100: #e6f2ee;
--color-primary-200: #c5e0d8;
--color-primary-300: #9bc9bc;
--color-primary-400: #54a38d;
--color-primary-500: #047857;
--color-primary-600: #036247;
--color-primary-700: #034d38;
--color-primary-800: #023929;
--color-primary-900: #02271c;
--color-primary-950: #011610;
--color-secondary-50: #f4f5f9;
--color-secondary-100: #e9ebf3;
--color-secondary-200: #cbd2e4;
--color-secondary-300: #a5b0d0;
--color-secondary-400: #6679af;
--color-secondary-500: #1e3a8a;
--color-secondary-600: #192f71;
--color-secondary-700: #132558;
--color-secondary-800: #0e1b41;
--color-secondary-900: #09122c;
--color-secondary-950: #050a19;
--color-neutral-50: #f8f8f9;
--color-neutral-100: #f0f1f2;
--color-neutral-200: #dddfe2;
--color-neutral-300: #c4c7cc;
--color-neutral-400: #9a9fa9;
--color-neutral-500: #6b7280;
--color-neutral-600: #585e69;
--color-neutral-700: #444952;
--color-neutral-800: #32363c;
--color-neutral-900: #222529;
--color-neutral-950: #131517;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f9;
--color-text: #222529;
--color-text-muted: #6b7280;
--color-border: #dddfe2;
--color-primary: #047857;
--color-primary-hover: #036247;
--color-on-primary: #ffffff;
--color-focus: #047857;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--text-xs: 0.6944rem;
--text-sm: 0.8331rem;
--text-base: 1rem;
--text-lg: 1.2rem;
--text-xl: 1.44rem;
--text-2xl: 1.7281rem;
--text-3xl: 2.0737rem;
--text-4xl: 2.4881rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 8px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(19 21 23 / 0.05);
--shadow-md: 0 2px 4px rgb(19 21 23 / 0.06);
--shadow-lg: 0 8px 16px rgb(19 21 23 / 0.08);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
[data-theme="dark"] {
color-scheme: dark;
--color-bg: #131517;
--color-surface: #222529;
--color-text: #f8f8f9;
--color-text-muted: #9a9fa9;
--color-border: #32363c;
--color-primary: #54a38d;
--color-primary-hover: #9bc9bc;
--color-on-primary: #0b0f19;
--color-focus: #54a38d;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Healthcare teal
A calm teal primary with gentle blue info, generous Source Sans type and soft rounded cards: reassuring and readable.
Preconfigured for: Patient portals, telehealth, clinics and wellness apps.
Preview tokens.css
/*
* tokens.css: Healthcare teal
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 5.47:1 AA
* primary as text on bg 5.47:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.16:1 AA
* Dark text on bg 17.21:1 AAA
* muted text on bg 6.93:1 AA
* on-primary on primary 6.47:1 AA
* primary as text on bg 6.19:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.46:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 6.27:1 AA
*
* Web fonts named here (Source Sans 3) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f3f8f8;
--color-primary-100: #e7f1f1;
--color-primary-200: #c8dfde;
--color-primary-300: #9fc8c5;
--color-primary-400: #5ca29c;
--color-primary-500: #0f766e;
--color-primary-600: #0c615a;
--color-primary-700: #0a4b46;
--color-primary-800: #073734;
--color-primary-900: #052623;
--color-primary-950: #031514;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #0f766e;
--color-primary-hover: #0c615a;
--color-on-primary: #ffffff;
--color-focus: #0f766e;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #2563eb;
/* Typography */
--font-sans: "Source Sans 3", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.7381rem;
--text-sm: 0.8856rem;
--text-base: 1.0625rem;
--text-lg: 1.275rem;
--text-xl: 1.53rem;
--text-2xl: 1.8362rem;
--text-3xl: 2.2031rem;
--text-4xl: 2.6437rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.05);
--shadow-md: 0 2px 4px rgb(18 21 25 / 0.06);
--shadow-lg: 0 8px 16px rgb(18 21 25 / 0.08);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #121519;
--color-surface: #20252c;
--color-text: #f7f8f9;
--color-text-muted: #96a0b0;
--color-border: #2f3741;
--color-primary: #5ca29c;
--color-primary-hover: #9fc8c5;
--color-on-primary: #0b0f19;
--color-focus: #5ca29c;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #6b95f1;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Developer dark
Dark by default with a cyan primary on zinc, JetBrains Mono for code and a 4px grid with tight radii, tuned for long sessions.
Preconfigured for: Developer tools, terminals, IDE plugins and API consoles.
Preview tokens.css
/*
* tokens.css: Developer dark
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.47:1 AAA
* muted text on bg 4.83:1 AA
* on-primary on primary 5.17:1 AA
* primary as text on bg 5.17:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.32:1 AAA
* muted text on bg 6.91:1 AA
* on-primary on primary 8.02:1 AAA
* primary as text on bg 7.70:1 AAA
* success as text on bg 8.21:1 AAA
* warning as text on bg 8.50:1 AAA
* danger as text on bg 5.88:1 AA
* info as text on bg 7.17:1 AAA
*
* Web fonts named here (Geist, JetBrains Mono) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: dark;
/* Color scales */
--color-primary-50: #f3fafb;
--color-primary-100: #e6f4f7;
--color-primary-200: #c6e6ed;
--color-primary-300: #9cd3e0;
--color-primary-400: #57b4cb;
--color-primary-500: #0891b2;
--color-primary-600: #067792;
--color-primary-700: #055d72;
--color-primary-800: #034454;
--color-primary-900: #022e39;
--color-primary-950: #011a20;
--color-accent-50: #fbf7ff;
--color-accent-100: #f6eefe;
--color-accent-200: #ebd8fd;
--color-accent-300: #dcbbfc;
--color-accent-400: #c48bfa;
--color-accent-500: #a855f7;
--color-accent-600: #8a46ca;
--color-accent-700: #6b369e;
--color-accent-800: #4f2874;
--color-accent-900: #361b4f;
--color-accent-950: #1e0f2c;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f1f1f2;
--color-neutral-200: #dedee0;
--color-neutral-300: #c6c6ca;
--color-neutral-400: #9e9ea5;
--color-neutral-500: #71717a;
--color-neutral-600: #5d5d64;
--color-neutral-700: #48484e;
--color-neutral-800: #353539;
--color-neutral-900: #242427;
--color-neutral-950: #141416;
/* Color roles (dark theme): use these in components, not the scales */
--color-bg: #141416;
--color-surface: #242427;
--color-text: #f8f8f8;
--color-text-muted: #9e9ea5;
--color-border: #353539;
--color-primary: #57b4cb;
--color-primary-hover: #9cd3e0;
--color-on-primary: #0b0f19;
--color-focus: #57b4cb;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
/* Typography */
--font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--text-xs: 0.7406rem;
--text-sm: 0.8331rem;
--text-base: 0.9375rem;
--text-lg: 1.055rem;
--text-xl: 1.1863rem;
--text-2xl: 1.335rem;
--text-3xl: 1.5019rem;
--text-4xl: 1.6894rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 8px;
--radius-full: 9999px;
--shadow-sm: none;
--shadow-md: none;
--shadow-lg: none;
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
[data-theme="light"] {
color-scheme: light;
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #242427;
--color-text-muted: #71717a;
--color-border: #dedee0;
--color-primary: #067792;
--color-primary-hover: #055d72;
--color-on-primary: #ffffff;
--color-focus: #067792;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Editorial serif
A Source Serif body with an ink-red primary, warm neutrals and a perfect-fourth scale for strong headline hierarchy.
Preconfigured for: Publications, blogs, newsletters and long-form reading.
Preview tokens.css
/*
* tokens.css: Editorial serif
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.42:1 AAA
* muted text on bg 4.79:1 AA
* on-primary on primary 8.01:1 AAA
* primary as text on bg 8.01:1 AAA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.29:1 AAA
* muted text on bg 6.92:1 AA
* on-primary on primary 8.75:1 AAA
* primary as text on bg 8.39:1 AAA
* success as text on bg 8.20:1 AAA
* warning as text on bg 8.48:1 AAA
* danger as text on bg 5.87:1 AA
* info as text on bg 7.16:1 AAA
*
* Web fonts named here (Inter, Source Serif 4) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #faf3f5;
--color-primary-100: #f5e7eb;
--color-primary-200: #e9c8d1;
--color-primary-300: #d9a0b0;
--color-primary-400: #be5e78;
--color-primary-500: #9f1239;
--color-primary-600: #820f2f;
--color-primary-700: #660b24;
--color-primary-800: #4b081b;
--color-primary-900: #330612;
--color-primary-950: #1d030a;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f2f1f0;
--color-neutral-200: #e0dedd;
--color-neutral-300: #c9c6c4;
--color-neutral-400: #a39e9b;
--color-neutral-500: #78716c;
--color-neutral-600: #625d58;
--color-neutral-700: #4d4845;
--color-neutral-800: #393532;
--color-neutral-900: #272422;
--color-neutral-950: #161413;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #272422;
--color-text-muted: #78716c;
--color-border: #e0dedd;
--color-primary: #9f1239;
--color-primary-hover: #820f2f;
--color-on-primary: #ffffff;
--color-focus: #9f1239;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.6331rem;
--text-sm: 0.8438rem;
--text-base: 1.125rem;
--text-lg: 1.4994rem;
--text-xl: 1.9988rem;
--text-2xl: 2.6644rem;
--text-3xl: 3.5519rem;
--text-4xl: 4.735rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 8px grid */
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2rem;
--space-5: 2.5rem;
--space-6: 3rem;
--space-8: 4rem;
--space-10: 5rem;
--space-12: 6rem;
--space-16: 8rem;
/* Shape and depth */
--radius-sm: 0px;
--radius-md: 2px;
--radius-lg: 4px;
--radius-full: 9999px;
--shadow-sm: none;
--shadow-md: none;
--shadow-lg: none;
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #161413;
--color-surface: #272422;
--color-text: #f8f8f8;
--color-text-muted: #a39e9b;
--color-border: #393532;
--color-primary: #d9a0b0;
--color-primary-hover: #e9c8d1;
--color-on-primary: #0b0f19;
--color-focus: #d9a0b0;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Playful purple
A vivid violet primary with pink and yellow accents, Nunito type and pill-round shapes for a fun, energetic product.
Preconfigured for: Creative tools, social apps and gamified consumer products.
Preview tokens.css
/*
* tokens.css: Playful purple
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.47:1 AAA
* muted text on bg 4.83:1 AA
* on-primary on primary 5.69:1 AA
* primary as text on bg 5.69:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.32:1 AAA
* muted text on bg 6.91:1 AA
* on-primary on primary 6.06:1 AA
* primary as text on bg 5.82:1 AA
* success as text on bg 8.21:1 AAA
* warning as text on bg 8.50:1 AAA
* danger as text on bg 5.88:1 AA
* info as text on bg 7.17:1 AAA
*
* Web fonts named here (Nunito) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f8f5fe;
--color-primary-100: #f2ebfd;
--color-primary-200: #e1d2fb;
--color-primary-300: #cbb0f8;
--color-primary-400: #a679f3;
--color-primary-500: #7c3aed;
--color-primary-600: #662fc2;
--color-primary-700: #4f2598;
--color-primary-800: #3a1b70;
--color-primary-900: #27124c;
--color-primary-950: #160a2b;
--color-secondary-50: #fdf4f8;
--color-secondary-100: #fbe9f1;
--color-secondary-200: #f7cde0;
--color-secondary-300: #f1a9c9;
--color-secondary-400: #e76ca3;
--color-secondary-500: #db2777;
--color-secondary-600: #b32061;
--color-secondary-700: #8c194c;
--color-secondary-800: #671238;
--color-secondary-900: #460c26;
--color-secondary-950: #270715;
--color-accent-50: #fefbf3;
--color-accent-100: #fdf7e6;
--color-accent-200: #faeec6;
--color-accent-300: #f7e19c;
--color-accent-400: #f1cb57;
--color-accent-500: #eab308;
--color-accent-600: #c09306;
--color-accent-700: #967205;
--color-accent-800: #6e5403;
--color-accent-900: #4b3902;
--color-accent-950: #2a2001;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f1f1f2;
--color-neutral-200: #dedee0;
--color-neutral-300: #c6c6ca;
--color-neutral-400: #9e9ea5;
--color-neutral-500: #71717a;
--color-neutral-600: #5d5d64;
--color-neutral-700: #48484e;
--color-neutral-800: #353539;
--color-neutral-900: #242427;
--color-neutral-950: #141416;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #242427;
--color-text-muted: #71717a;
--color-border: #dedee0;
--color-primary: #7c3aed;
--color-primary-hover: #662fc2;
--color-on-primary: #ffffff;
--color-focus: #7c3aed;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Nunito", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.64rem;
--text-sm: 0.8rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5625rem;
--text-2xl: 1.9531rem;
--text-3xl: 2.4413rem;
--text-4xl: 3.0519rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 20px;
--radius-full: 9999px;
--shadow-sm: 0 1px 3px rgb(20 20 22 / 0.16);
--shadow-md: 0 6px 12px rgb(20 20 22 / 0.18);
--shadow-lg: 0 18px 36px rgb(20 20 22 / 0.22);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
.dark {
color-scheme: dark;
--color-bg: #141416;
--color-surface: #242427;
--color-text: #f8f8f8;
--color-text-muted: #9e9ea5;
--color-border: #353539;
--color-primary: #a679f3;
--color-primary-hover: #cbb0f8;
--color-on-primary: #0b0f19;
--color-focus: #a679f3;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Minimal monochrome
Near-black primary on pure grays with no shadows and sharp corners: the brand is the content, not the chrome.
Preconfigured for: Portfolios, agencies, minimalist SaaS and documentation.
Preview tokens.css
/*
* tokens.css: Minimal monochrome
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.32:1 AAA
* muted text on bg 4.74:1 AA
* on-primary on primary 17.92:1 AAA
* primary as text on bg 17.92:1 AAA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.19:1 AAA
* muted text on bg 6.98:1 AA
* on-primary on primary 7.50:1 AAA
* primary as text on bg 7.15:1 AAA
* success as text on bg 8.15:1 AAA
* warning as text on bg 8.43:1 AAA
* danger as text on bg 5.83:1 AA
* info as text on bg 7.12:1 AAA
*
* Web fonts named here (Geist, Geist Mono) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f3f3f3;
--color-primary-100: #e8e8e8;
--color-primary-200: #cacaca;
--color-primary-300: #a2a2a2;
--color-primary-400: #616161;
--color-primary-500: #171717;
--color-primary-600: #131313;
--color-primary-700: #0f0f0f;
--color-primary-800: #0b0b0b;
--color-primary-900: #070707;
--color-primary-950: #040404;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f1f1f1;
--color-neutral-200: #dfdfdf;
--color-neutral-300: #c7c7c7;
--color-neutral-400: #a0a0a0;
--color-neutral-500: #737373;
--color-neutral-600: #5e5e5e;
--color-neutral-700: #4a4a4a;
--color-neutral-800: #363636;
--color-neutral-900: #252525;
--color-neutral-950: #151515;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #252525;
--color-text-muted: #737373;
--color-border: #dfdfdf;
--color-primary: #171717;
--color-primary-hover: #131313;
--color-on-primary: #ffffff;
--color-focus: #171717;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--text-xs: 0.6944rem;
--text-sm: 0.8331rem;
--text-base: 1rem;
--text-lg: 1.2rem;
--text-xl: 1.44rem;
--text-2xl: 1.7281rem;
--text-3xl: 2.0737rem;
--text-4xl: 2.4881rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 0px;
--radius-md: 2px;
--radius-lg: 4px;
--radius-full: 9999px;
--shadow-sm: none;
--shadow-md: none;
--shadow-lg: none;
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
[data-theme="dark"] {
color-scheme: dark;
--color-bg: #151515;
--color-surface: #252525;
--color-text: #f8f8f8;
--color-text-muted: #a0a0a0;
--color-border: #363636;
--color-primary: #a2a2a2;
--color-primary-hover: #cacaca;
--color-on-primary: #0b0f19;
--color-focus: #a2a2a2;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Earthy and sustainable
Moss green with clay and sand accents on warm stone neutrals, soft corners and gentle shadows that feel natural.
Preconfigured for: Sustainability, outdoor, food and climate products.
Preview tokens.css
/*
* tokens.css: Earthy
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.42:1 AAA
* muted text on bg 4.79:1 AA
* on-primary on primary 4.99:1 AA
* primary as text on bg 4.99:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.29:1 AAA
* muted text on bg 6.92:1 AA
* on-primary on primary 6.95:1 AA
* primary as text on bg 6.66:1 AA
* success as text on bg 8.20:1 AAA
* warning as text on bg 8.48:1 AAA
* danger as text on bg 5.87:1 AA
* info as text on bg 7.16:1 AAA
*
* Web fonts named here (Source Sans 3, Lora) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f6f8f3;
--color-primary-100: #edf2e7;
--color-primary-200: #d6e1c8;
--color-primary-300: #b8cb9f;
--color-primary-400: #86a65c;
--color-primary-500: #4d7c0f;
--color-primary-600: #3f660c;
--color-primary-700: #314f0a;
--color-primary-800: #243a07;
--color-primary-900: #192705;
--color-primary-950: #0e1603;
--color-secondary-50: #fbf6f3;
--color-secondary-100: #f8eee6;
--color-secondary-200: #eed7c6;
--color-secondary-300: #e1ba9d;
--color-secondary-400: #cc8a58;
--color-secondary-500: #b45309;
--color-secondary-600: #944407;
--color-secondary-700: #733506;
--color-secondary-800: #542704;
--color-secondary-900: #391b03;
--color-secondary-950: #200f02;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f2f1f0;
--color-neutral-200: #e0dedd;
--color-neutral-300: #c9c6c4;
--color-neutral-400: #a39e9b;
--color-neutral-500: #78716c;
--color-neutral-600: #625d58;
--color-neutral-700: #4d4845;
--color-neutral-800: #393532;
--color-neutral-900: #272422;
--color-neutral-950: #161413;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #272422;
--color-text-muted: #78716c;
--color-border: #e0dedd;
--color-primary: #4d7c0f;
--color-primary-hover: #3f660c;
--color-on-primary: #ffffff;
--color-focus: #4d7c0f;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Source Sans 3", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: "Lora", Georgia, Cambria, "Times New Roman", serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.68rem;
--text-sm: 0.85rem;
--text-base: 1.0625rem;
--text-lg: 1.3281rem;
--text-xl: 1.66rem;
--text-2xl: 2.075rem;
--text-3xl: 2.5938rem;
--text-4xl: 3.2425rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(22 20 19 / 0.05);
--shadow-md: 0 2px 4px rgb(22 20 19 / 0.06);
--shadow-lg: 0 8px 16px rgb(22 20 19 / 0.08);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #161413;
--color-surface: #272422;
--color-text: #f8f8f8;
--color-text-muted: #a39e9b;
--color-border: #393532;
--color-primary: #86a65c;
--color-primary-hover: #b8cb9f;
--color-on-primary: #0b0f19;
--color-focus: #86a65c;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Luxury black and gold
A deep charcoal primary with a muted gold accent, Playfair Display headings and generous 8px spacing for a premium feel.
Preconfigured for: Luxury retail, hospitality, real estate and fashion.
Preview tokens.css
/*
* tokens.css: Luxury
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.42:1 AAA
* muted text on bg 4.79:1 AA
* on-primary on primary 17.48:1 AAA
* primary as text on bg 17.48:1 AAA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.29:1 AAA
* muted text on bg 6.92:1 AA
* on-primary on primary 7.60:1 AAA
* primary as text on bg 7.29:1 AAA
* success as text on bg 8.20:1 AAA
* warning as text on bg 8.48:1 AAA
* danger as text on bg 5.87:1 AA
* info as text on bg 7.16:1 AAA
*
* Web fonts named here (DM Sans, Playfair Display) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f4f3;
--color-primary-100: #e8e8e8;
--color-primary-200: #cbcaca;
--color-primary-300: #a4a3a2;
--color-primary-400: #656361;
--color-primary-500: #1c1917;
--color-primary-600: #171513;
--color-primary-700: #12100f;
--color-primary-800: #0d0c0b;
--color-primary-900: #090807;
--color-primary-950: #050504;
--color-accent-50: #fbf9f5;
--color-accent-100: #f7f4ec;
--color-accent-200: #ede5d2;
--color-accent-300: #dfd1b1;
--color-accent-400: #c9b17a;
--color-accent-500: #b08d3c;
--color-accent-600: #907431;
--color-accent-700: #715a26;
--color-accent-800: #53421c;
--color-accent-900: #392d13;
--color-accent-950: #20190b;
--color-neutral-50: #f8f8f8;
--color-neutral-100: #f2f1f0;
--color-neutral-200: #e0dedd;
--color-neutral-300: #c9c6c4;
--color-neutral-400: #a39e9b;
--color-neutral-500: #78716c;
--color-neutral-600: #625d58;
--color-neutral-700: #4d4845;
--color-neutral-800: #393532;
--color-neutral-900: #272422;
--color-neutral-950: #161413;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f8;
--color-text: #272422;
--color-text-muted: #78716c;
--color-border: #e0dedd;
--color-primary: #1c1917;
--color-primary-hover: #171513;
--color-on-primary: #ffffff;
--color-focus: #1c1917;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.5981rem;
--text-sm: 0.7969rem;
--text-base: 1.0625rem;
--text-lg: 1.4163rem;
--text-xl: 1.8881rem;
--text-2xl: 2.5169rem;
--text-3xl: 3.3544rem;
--text-4xl: 4.4719rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 8px grid */
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2rem;
--space-5: 2.5rem;
--space-6: 3rem;
--space-8: 4rem;
--space-10: 5rem;
--space-12: 6rem;
--space-16: 8rem;
/* Shape and depth */
--radius-sm: 0px;
--radius-md: 2px;
--radius-lg: 4px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(22 20 19 / 0.08);
--shadow-md: 0 4px 8px rgb(22 20 19 / 0.1);
--shadow-lg: 0 12px 24px rgb(22 20 19 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
[data-theme="dark"] {
color-scheme: dark;
--color-bg: #161413;
--color-surface: #272422;
--color-text: #f8f8f8;
--color-text-muted: #a39e9b;
--color-border: #393532;
--color-primary: #a4a3a2;
--color-primary-hover: #cbcaca;
--color-on-primary: #0b0f19;
--color-focus: #a4a3a2;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Nordic cool
A cool fjord blue with frost-gray neutrals, light weights and airy 8px spacing: calm, clean and spacious.
Preconfigured for: Productivity apps, travel, wellbeing and Scandinavian-style brands.
Preview tokens.css
/*
* tokens.css: Nordic cool
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 6.13:1 AA
* primary as text on bg 6.13:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.21:1 AAA
* muted text on bg 6.93:1 AA
* on-primary on primary 6.20:1 AA
* primary as text on bg 5.92:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.46:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 7.14:1 AAA
*
* Web fonts named here (Inter) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f5f7f9;
--color-primary-100: #eaf0f4;
--color-primary-200: #cfdce5;
--color-primary-300: #acc2d3;
--color-primary-400: #7297b4;
--color-primary-500: #2f6690;
--color-primary-600: #265476;
--color-primary-700: #1e415c;
--color-primary-800: #163044;
--color-primary-900: #0f202e;
--color-primary-950: #08121a;
--color-secondary-50: #f5f9f6;
--color-secondary-100: #ebf2ec;
--color-secondary-200: #d2e1d4;
--color-secondary-300: #b0cbb4;
--color-secondary-400: #79a780;
--color-secondary-500: #3a7d44;
--color-secondary-600: #2f6738;
--color-secondary-700: #25502b;
--color-secondary-800: #1b3b20;
--color-secondary-900: #122816;
--color-secondary-950: #0a170c;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #2f6690;
--color-primary-hover: #265476;
--color-on-primary: #ffffff;
--color-focus: #2f6690;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.6944rem;
--text-sm: 0.8331rem;
--text-base: 1rem;
--text-lg: 1.2rem;
--text-xl: 1.44rem;
--text-2xl: 1.7281rem;
--text-3xl: 2.0737rem;
--text-4xl: 2.4881rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 8px grid */
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2rem;
--space-5: 2.5rem;
--space-6: 3rem;
--space-8: 4rem;
--space-10: 5rem;
--space-12: 6rem;
--space-16: 8rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.05);
--shadow-md: 0 2px 4px rgb(18 21 25 / 0.06);
--shadow-lg: 0 8px 16px rgb(18 21 25 / 0.08);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #121519;
--color-surface: #20252c;
--color-text: #f7f8f9;
--color-text-muted: #96a0b0;
--color-border: #2f3741;
--color-primary: #7297b4;
--color-primary-hover: #acc2d3;
--color-on-primary: #0b0f19;
--color-focus: #7297b4;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
E-commerce orange
A high-energy orange primary for buy buttons, a trustworthy navy secondary and clear red and green states for stock and price.
Preconfigured for: Online stores, checkout flows and product catalogs.
Preview tokens.css
/*
* tokens.css: E-commerce
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.38:1 AAA
* muted text on bg 4.83:1 AA
* on-primary on primary 5.03:1 AA
* primary as text on bg 5.03:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
*
* Web fonts named here (Inter) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #fef7f3;
--color-primary-100: #fdeee7;
--color-primary-200: #fad9c7;
--color-primary-300: #f7bc9e;
--color-primary-400: #f18d5a;
--color-primary-500: #ea580c;
--color-primary-600: #c0480a;
--color-primary-700: #963808;
--color-primary-800: #6e2906;
--color-primary-900: #4b1c04;
--color-primary-950: #2a1002;
--color-secondary-50: #f4f5f9;
--color-secondary-100: #e9ebf3;
--color-secondary-200: #cbd2e4;
--color-secondary-300: #a5b0d0;
--color-secondary-400: #6679af;
--color-secondary-500: #1e3a8a;
--color-secondary-600: #192f71;
--color-secondary-700: #132558;
--color-secondary-800: #0e1b41;
--color-secondary-900: #09122c;
--color-secondary-950: #050a19;
--color-neutral-50: #f8f8f9;
--color-neutral-100: #f0f1f2;
--color-neutral-200: #dddfe2;
--color-neutral-300: #c4c7cc;
--color-neutral-400: #9a9fa9;
--color-neutral-500: #6b7280;
--color-neutral-600: #585e69;
--color-neutral-700: #444952;
--color-neutral-800: #32363c;
--color-neutral-900: #222529;
--color-neutral-950: #131517;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f9;
--color-text: #222529;
--color-text-muted: #6b7280;
--color-border: #dddfe2;
--color-primary: #c0480a;
--color-primary-hover: #963808;
--color-on-primary: #ffffff;
--color-focus: #c0480a;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.6944rem;
--text-sm: 0.8331rem;
--text-base: 1rem;
--text-lg: 1.2rem;
--text-xl: 1.44rem;
--text-2xl: 1.7281rem;
--text-3xl: 2.0737rem;
--text-4xl: 2.4881rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(19 21 23 / 0.08);
--shadow-md: 0 4px 8px rgb(19 21 23 / 0.1);
--shadow-lg: 0 12px 24px rgb(19 21 23 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
SaaS indigo
An indigo primary with a sky accent on slate, Inter type and soft cards: the familiar modern product look.
Preconfigured for: Product-led SaaS, analytics and collaboration tools.
Preview tokens.css
/*
* tokens.css: SaaS indigo
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 6.28:1 AA
* primary as text on bg 6.28:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.21:1 AAA
* muted text on bg 6.93:1 AA
* on-primary on primary 5.83:1 AA
* primary as text on bg 5.57:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.46:1 AAA
* danger as text on bg 5.85:1 AA
* info as text on bg 7.14:1 AAA
*
* Web fonts named here (Inter, JetBrains Mono) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f6f6fe;
--color-primary-100: #ededfc;
--color-primary-200: #d7d4f9;
--color-primary-300: #b9b5f5;
--color-primary-400: #8781ed;
--color-primary-500: #4f46e5;
--color-primary-600: #4139bc;
--color-primary-700: #322d92;
--color-primary-800: #25216b;
--color-primary-900: #191749;
--color-primary-950: #0e0d29;
--color-accent-50: #f3fbfe;
--color-accent-100: #e7f6fd;
--color-accent-200: #c8eafa;
--color-accent-300: #9fdbf6;
--color-accent-400: #5bc2f0;
--color-accent-500: #0ea5e9;
--color-accent-600: #0c87bf;
--color-accent-700: #096a95;
--color-accent-800: #074e6e;
--color-accent-900: #05354b;
--color-accent-950: #031e2a;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #4f46e5;
--color-primary-hover: #4139bc;
--color-on-primary: #ffffff;
--color-focus: #4f46e5;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--text-xs: 0.64rem;
--text-sm: 0.8rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5625rem;
--text-2xl: 1.9531rem;
--text-3xl: 2.4413rem;
--text-4xl: 3.0519rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.08);
--shadow-md: 0 4px 8px rgb(18 21 25 / 0.1);
--shadow-lg: 0 12px 24px rgb(18 21 25 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
.dark {
color-scheme: dark;
--color-bg: #121519;
--color-surface: #20252c;
--color-text: #f7f8f9;
--color-text-muted: #96a0b0;
--color-border: #2f3741;
--color-primary: #8781ed;
--color-primary-hover: #b9b5f5;
--color-on-primary: #0b0f19;
--color-focus: #8781ed;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e76b6b;
--color-info: #53abd9;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Kids and education bright
A bright blue with sunny yellow and leaf-green accents, an 18px Nunito base and very round shapes for young readers.
Preconfigured for: Learning apps, schools, children's products and family apps.
Preview tokens.css
/*
* tokens.css: Kids education
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.41:1 AAA
* muted text on bg 4.75:1 AA
* on-primary on primary 5.16:1 AA
* primary as text on bg 5.16:1 AA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 4.82:1 AA
* info as text on bg 5.71:1 AA
*
* Web fonts named here (Nunito) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f7fe;
--color-primary-100: #e9effd;
--color-primary-200: #cddbfa;
--color-primary-300: #a8c1f7;
--color-primary-400: #6b95f1;
--color-primary-500: #2563eb;
--color-primary-600: #1e51c1;
--color-primary-700: #183f96;
--color-primary-800: #122f6e;
--color-primary-900: #0c204b;
--color-primary-950: #07122a;
--color-secondary-50: #f3faf6;
--color-secondary-100: #e8f6ed;
--color-secondary-200: #c9ead5;
--color-secondary-300: #a2dab7;
--color-secondary-400: #61c084;
--color-secondary-500: #16a34a;
--color-secondary-600: #12863d;
--color-secondary-700: #0e682f;
--color-secondary-800: #0a4c23;
--color-secondary-900: #073417;
--color-secondary-950: #041d0d;
--color-accent-50: #fffcf3;
--color-accent-100: #fffae8;
--color-accent-200: #fef3c9;
--color-accent-300: #fdeba1;
--color-accent-400: #fcdc60;
--color-accent-500: #facc15;
--color-accent-600: #cda711;
--color-accent-700: #a0830e;
--color-accent-800: #76600a;
--color-accent-900: #504207;
--color-accent-950: #2d2504;
--color-neutral-50: #f7f8f9;
--color-neutral-100: #f0f1f3;
--color-neutral-200: #dbdfe4;
--color-neutral-300: #c1c7d1;
--color-neutral-400: #96a0b0;
--color-neutral-500: #64748b;
--color-neutral-600: #525f72;
--color-neutral-700: #404a59;
--color-neutral-800: #2f3741;
--color-neutral-900: #20252c;
--color-neutral-950: #121519;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f7f8f9;
--color-text: #20252c;
--color-text-muted: #64748b;
--color-border: #dbdfe4;
--color-primary: #2563eb;
--color-primary-hover: #1e51c1;
--color-on-primary: #ffffff;
--color-focus: #2563eb;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #dc2626;
--color-info: #026ca3;
/* Typography */
--font-sans: "Nunito", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.72rem;
--text-sm: 0.9rem;
--text-base: 1.125rem;
--text-lg: 1.4063rem;
--text-xl: 1.7581rem;
--text-2xl: 2.1975rem;
--text-3xl: 2.7469rem;
--text-4xl: 3.4331rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 8px grid */
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2rem;
--space-5: 2.5rem;
--space-6: 3rem;
--space-8: 4rem;
--space-10: 5rem;
--space-12: 6rem;
--space-16: 8rem;
/* Shape and depth */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 20px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgb(18 21 25 / 0.08);
--shadow-md: 0 4px 8px rgb(18 21 25 / 0.1);
--shadow-lg: 0 12px 24px rgb(18 21 25 / 0.12);
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
Civic and government neutral
A sober navy primary on true-gray neutrals with Public Sans, AA targets everywhere and no decorative shadows.
Preconfigured for: Government services, nonprofits, utilities and civic tech.
Preview tokens.css
/*
* tokens.css: Civic
* Design tokens as CSS custom properties. Generated by the 2prompt tokens.css generator;
* the scales are computed from the base colors, so edit the bases and regenerate, or edit freely.
*
* Contrast target for text roles: AA (4.5:1 for text).
* WCAG 2.x contrast ratios, computed from the values in this file:
* Light text on bg 15.38:1 AAA
* muted text on bg 4.83:1 AA
* on-primary on primary 9.62:1 AAA
* primary as text on bg 9.62:1 AAA
* success as text on bg 4.66:1 AA
* warning as text on bg 4.56:1 AA
* danger as text on bg 6.98:1 AA
* info as text on bg 5.71:1 AA
* Dark text on bg 17.24:1 AAA
* muted text on bg 6.89:1 AA
* on-primary on primary 4.73:1 AA
* primary as text on bg 4.52:1 AA
* success as text on bg 8.17:1 AAA
* warning as text on bg 8.45:1 AAA
* danger as text on bg 8.28:1 AAA
* info as text on bg 7.14:1 AAA
*
* Web fonts named here (Public Sans) are not loaded by this file. Load them yourself,
* or the stacks fall back to the system fonts listed after them.
*/
:root {
color-scheme: light;
/* Color scales */
--color-primary-50: #f4f6f9;
--color-primary-100: #e8ecf2;
--color-primary-200: #cad4e2;
--color-primary-300: #a3b4cc;
--color-primary-400: #6380a9;
--color-primary-500: #1a4480;
--color-primary-600: #153869;
--color-primary-700: #112b52;
--color-primary-800: #0c203c;
--color-primary-900: #091629;
--color-primary-950: #050c17;
--color-neutral-50: #f8f8f9;
--color-neutral-100: #f0f1f2;
--color-neutral-200: #dddfe2;
--color-neutral-300: #c4c7cc;
--color-neutral-400: #9a9fa9;
--color-neutral-500: #6b7280;
--color-neutral-600: #585e69;
--color-neutral-700: #444952;
--color-neutral-800: #32363c;
--color-neutral-900: #222529;
--color-neutral-950: #131517;
/* Color roles (light theme): use these in components, not the scales */
--color-bg: #ffffff;
--color-surface: #f8f8f9;
--color-text: #222529;
--color-text-muted: #6b7280;
--color-border: #dddfe2;
--color-primary: #1a4480;
--color-primary-hover: #153869;
--color-on-primary: #ffffff;
--color-focus: #1a4480;
--color-success: #12863d;
--color-warning: #b26105;
--color-danger: #b50909;
--color-info: #026ca3;
/* Typography */
--font-sans: "Public Sans", system-ui, "Segoe UI", Roboto, sans-serif;
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--text-xs: 0.7381rem;
--text-sm: 0.8856rem;
--text-base: 1.0625rem;
--text-lg: 1.275rem;
--text-xl: 1.53rem;
--text-2xl: 1.8362rem;
--text-3xl: 2.2031rem;
--text-4xl: 2.6437rem;
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.7;
/* Spacing: 4px grid */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
/* Shape and depth */
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 8px;
--radius-full: 9999px;
--shadow-sm: none;
--shadow-md: none;
--shadow-lg: none;
/* Motion */
--duration-fast: 120ms;
--duration-normal: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-bg: #131517;
--color-surface: #222529;
--color-text: #f8f8f9;
--color-text-muted: #9a9fa9;
--color-border: #32363c;
--color-primary: #6380a9;
--color-primary-hover: #a3b4cc;
--color-on-primary: #0b0f19;
--color-focus: #6380a9;
--color-success: #61c084;
--color-warning: #e5a356;
--color-danger: #e19d9d;
--color-info: #53abd9;
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 0ms;
--duration-normal: 0ms;
}
}
About the tokens.css generator
What Is in the Generated tokens.css?
One file of CSS custom properties, in the order a stylesheet needs them. Nothing in it styles an element on its own: it defines names that the rest of your CSS, or a framework theme, refers to.
Color scales:--color-primary-50 to --color-primary-950 and the same for the neutral grays, computed from one base color each. Secondary and accent scales are optional.
Color roles:--color-bg, --color-surface, --color-text, --color-text-muted, --color-border, --color-primary, --color-primary-hover, --color-on-primary, --color-focus and the four status colors. These are what components should use.
Typography: sans, serif and mono font stacks with real fallbacks, eight sizes from --text-xs to --text-4xl on a modular scale, and three line heights.
Space, shape and depth: a --space-* scale on a 4 or 8 pixel grid, four radii and three shadows.
Motion: two durations and an easing curve, set to zero automatically when the user asks for reduced motion.
With the WCAG 2.x formula: the relative luminance of each color, then (lighter + 0.05) divided by (darker + 0.05). Body text needs 4.5:1 for level AA and 7:1 for AAA; large text and interface parts such as borders and focus rings need 3:1. The thresholds come from the W3C Understanding WCAG pages.
The generator does not just check your colors; it chooses them. For each text role it walks the computed scale from the middle toward the darker end in light mode, or toward the lighter end in dark mode, and stops at the first step that reaches your target. That is why --color-primary is sometimes the 600 or 700 step of your brand color rather than the base you typed: the base stays in the scale as the 500 step, and the role uses the nearest step that people can actually read. The text color on a primary button is whichever of white or near-black contrasts more.
Every ratio is written in the header comment of the file with its level, and the notes under the preview tell you when a hue cannot reach the target at all.
How Do You Use the Tokens in Your CSS?
Import tokens.css before every other stylesheet, or paste it at the top of your global CSS.
Style components with the role tokens: color: var(--color-text), background: var(--color-primary). Use the numbered scale steps only for one-off tints such as chart series.
Use var(--space-4) and the other spacing tokens for every margin, padding and gap.
Switch to dark mode the way you chose: automatically with prefers-color-scheme, with a data-theme="dark" attribute, or with a .dark class. Only the role tokens change, so components need no dark-mode code.
In Tailwind CSS v4, reference the variables from your @theme block, or let the globals.css generator write that mapping for you.
Why Use Role Tokens Instead of Raw Colors?
Because a component should say what a color is for, not which color it is. A button written with var(--color-primary) and var(--color-on-primary) keeps working when you rebrand, switch to dark mode or raise the contrast target. A button written with #2563eb and white has to be found and edited everywhere. Roles are also what you want a coding agent to use: an agent told to use --color-text-muted for secondary text cannot pick a gray that fails contrast.
Rebranding means changing one base color and regenerating.
Dark mode is a second set of role values, not a second stylesheet.
Accessibility is decided once, in the tokens, instead of on every screen.
Which Fonts Are Included?
The stacks name a primary family followed by system fallbacks: system UI, Inter, Geist, IBM Plex Sans, Source Sans 3, Public Sans, Atkinson Hyperlegible, Nunito, DM Sans and Space Grotesk for sans-serif, four serif options and five monospace options. tokens.css only names the fonts. If you pick a web font, load it yourself, ideally self-hosted, or the browser falls back to the system font listed next. The header of the file reminds you which fonts need loading, and the system options need nothing at all.
Is the Generator Private?
Yes. The form, the color math and the file are all built in this page. Nothing you type is uploaded or stored, and the download is created in your browser. The same choices always produce the same file, byte for byte.
Frequently Asked Questions
Why is my primary token darker than the color I picked?
Because your color did not reach the contrast target as text or as a button background. The generator keeps your color in the scale as the 500 step and uses the nearest darker step for the role, so buttons and links stay readable.
Can I reach AAA contrast with any color?
Not always. Very light or very saturated hues may have no step that reaches 7:1 on both the background and its own button text. The header shows the real ratio, and the notes tell you which pairs fell short.
Does this work with Tailwind CSS?
Yes. The file is plain CSS custom properties, which Tailwind v4 can reference in its @theme block. The globals.css generator has Tailwind v4 templates that wire the tokens in.
What does the prefix option do?
It puts your prefix in front of every name, so --color-primary becomes --ds-color-primary. Use it when the tokens share a page with another library. Leave it empty to match the globals.css and DESIGN.md generators.
Are the palettes copies of known brands?
No. They are original palettes built for common product types, such as fintech, healthcare and developer tools, and every one is checked for contrast in light and dark.
How Can You Verify That Nothing Leaves This Browser?
You do not have to take our word for it. Developer tools show every request a page makes, so you can watch this page work and confirm that nothing you type is sent. The check takes under a minute.
Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
Reload the page and let it finish. You will see the page's own files, its web fonts, and one anonymous page-view request. Nothing has been typed yet, so none of them can contain your input.
Click the clear icon in the Network tab so that the log is empty.
Fill in the form, load a template card, copy the file and download it.
Look at the Network tab again. It is still empty. Downloads are built in the page as Blob URLs, so even the zip never touches a server. For extra proof, turn on offline mode after the page loads: everything keeps working.
Only the feedback form can add a line to that log, and it sends only the vote and comment you type into it. 2prompt has no server code at all: no API, no model and no database of your files. The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site, the fonts and the anonymous analytics endpoint.