Studio is a shadcn/ui theme built around a yellow primary color (#a5aa4b) with purple accents (#aa4ba5). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the yellow primary (#a5aa4b) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf7snow | #040401black |
| Foreground | #080802black | #ffffffwhite |
| Card | #fbfbf4floralwhite | #080802black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fbfbf4floralwhite | #080802black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #a5aa4bdarkkhaki | #a5aa4bdarkkhaki |
| Primary foreground | #1c1c0cblack | #1c1c0cblack |
| Secondary | #4ba5aacadetblue | #4ba5aacadetblue |
| Secondary foreground | #0c1c1cblack | #0c1c1cblack |
| Muted | #dbe5e6gainsboro | #192424black |
| Muted foreground | #5f6c6ddimgray | #929fa0darkgray |
| Accent | #aa4ba5darkorchid | #aa4ba5darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9e2a10brown | #ed6445tomato |
| Destructive foreground | #fce8e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5aa4bdarkkhaki | #a5aa4bdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 4.25:1 | AA Large |
| Accent | 4.93:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 5.85:1 | AA |
| Accent | 4.93:1 | AA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Studio in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 108.835);
--foreground: oklch(0.13 0.017 110.439);
--muted: oklch(0.915 0.011 200.741);
--muted-foreground: oklch(0.522 0.016 200.527);
--popover: oklch(0.986 0.01 108.898);
--popover-foreground: oklch(0.103 0.014 110.439);
--card: oklch(0.986 0.01 108.898);
--card-foreground: oklch(0.103 0.014 110.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.119 111.681);
--primary-foreground: oklch(0.222 0.028 110.963);
--secondary: oklch(0.67 0.086 199.998);
--secondary-foreground: oklch(0.211 0.021 200.017);
--accent: oklch(0.567 0.168 329.466);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.465 0.156 33.629);
--destructive-foreground: oklch(0.945 0.023 32.682);
--ring: oklch(0.715 0.119 111.681);
--chart-1: oklch(0.715 0.119 111.681);
--chart-2: oklch(0.67 0.086 199.998);
--chart-3: oklch(0.567 0.168 329.466);
--chart-4: oklch(0.697 0.088 199.99);
--chart-5: oklch(0.725 0.126 111.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 110.513);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.015 200.264);
--muted-foreground: oklch(0.693 0.015 200.627);
--popover: oklch(0.131 0.018 110.513);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.018 110.513);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.119 111.681);
--primary-foreground: oklch(0.222 0.028 110.963);
--secondary: oklch(0.67 0.086 199.998);
--secondary-foreground: oklch(0.211 0.021 200.017);
--accent: oklch(0.567 0.168 329.466);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.67 0.176 34.135);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.715 0.119 111.681);
--chart-1: oklch(0.715 0.119 111.681);
--chart-2: oklch(0.67 0.086 199.998);
--chart-3: oklch(0.567 0.168 329.466);
--chart-4: oklch(0.697 0.088 199.99);
--chart-5: oklch(0.725 0.126 111.816);
}