Recorder is a shadcn/ui theme built around a green primary color (#7ae25a) with purple accents (#c25ae2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#7ae25a) on a green-tinted background (#050c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #050c03black |
| Foreground | #040e02black | #f9fcf8mintcream |
| Card | #fcfefbwhite | #050c03black |
| Card foreground | #040e02black | #f9fcf8mintcream |
| Popover | #fcfefbwhite | #050c03black |
| Popover foreground | #040e02black | #f9fcf8mintcream |
| Primary | #7ae25ayellowgreen | #7ae25ayellowgreen |
| Primary foreground | #030902black | #030902black |
| Secondary | #c25ae2mediumorchid | #c25ae2mediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5dfe7gainsboro | #1e1820black |
| Muted foreground | #634f69dimgray | #aa96b0darkgray |
| Accent | #c25ae2mediumorchid | #c25ae2mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #993706saddlebrown | #f76218chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7ae25ayellowgreen | #7ae25ayellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 12.30:1 | AAA |
| Secondary button | 5.87:1 | AA |
| Muted text | 5.61:1 | AA |
| Accent | 5.87:1 | AA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 12.30:1 | AAA |
| Secondary button | 5.87:1 | AA |
| Muted text | 6.38:1 | AA |
| Accent | 5.87:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Recorder in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 138.334);
--foreground: oklch(0.147 0.036 136.155);
--muted: oklch(0.91 0.013 318.316);
--muted-foreground: oklch(0.457 0.048 318.22);
--popover: oklch(0.994 0.004 138.334);
--popover-foreground: oklch(0.147 0.036 136.155);
--card: oklch(0.994 0.004 138.334);
--card-foreground: oklch(0.147 0.036 136.155);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.821 0.199 139.049);
--primary-foreground: oklch(0.126 0.027 136.215);
--secondary: oklch(0.651 0.213 317.593);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.651 0.213 317.593);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.47 0.141 40.992);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.199 139.049);
--chart-1: oklch(0.821 0.199 139.049);
--chart-2: oklch(0.651 0.213 317.593);
--chart-3: oklch(0.651 0.213 317.593);
--chart-4: oklch(0.675 0.198 317.76);
--chart-5: oklch(0.828 0.206 139.105);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.025 136.71);
--foreground: oklch(0.987 0.005 138.335);
--muted: oklch(0.22 0.019 318.242);
--muted-foreground: oklch(0.7 0.043 318.268);
--popover: oklch(0.142 0.025 136.71);
--popover-foreground: oklch(0.987 0.005 138.335);
--card: oklch(0.142 0.025 136.71);
--card-foreground: oklch(0.987 0.005 138.335);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.821 0.199 139.049);
--primary-foreground: oklch(0.126 0.027 136.215);
--secondary: oklch(0.651 0.213 317.593);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.651 0.213 317.593);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.679 0.197 41.726);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.821 0.199 139.049);
--chart-1: oklch(0.821 0.199 139.049);
--chart-2: oklch(0.651 0.213 317.593);
--chart-3: oklch(0.651 0.213 317.593);
--chart-4: oklch(0.675 0.198 317.76);
--chart-5: oklch(0.828 0.206 139.105);
}