Recorder is a shadcn/ui theme built around a muted deep yellow primary color (#0f100a) with muted deep indigo accents (#0a0a10). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the muted deep yellow primary (#0f100a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #000000black |
| Foreground | #0c0c03black | #ffffffwhite |
| Card | #fafaf5whitesmoke | #030303black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fcfcf8snow | #000000black |
| Popover foreground | #0c0c03black | #ffffffwhite |
| Primary | #0f100ablack | #0f100ablack |
| Primary foreground | #b8ba91tan | #b8ba91tan |
| Secondary | #0a0a10black | #0a0a10black |
| Secondary foreground | #9391badarkgray | #9391badarkgray |
| Muted | #d1d0e7gainsboro | #19182fblack |
| Muted foreground | #4e4d51darkslategray | #afaeb2darkgray |
| Accent | #0a0a10black | #0a0a10black |
| Accent foreground | #9391badarkgray | #9391badarkgray |
| Destructive | #8e3610saddlebrown | #e96e3atomato |
| Destructive foreground | #fae1d6antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f100ablack | #0f100ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 7.84:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Recorder in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 108.797);
--foreground: oklch(0.151 0.022 110.749);
--muted: oklch(0.864 0.032 287.998);
--muted-foreground: oklch(0.423 0.005 288.481);
--popover: oklch(0.989 0.005 108.797);
--popover-foreground: oklch(0.151 0.022 110.749);
--card: oklch(0.984 0.007 108.842);
--card-foreground: oklch(0.131 0.019 110.561);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.169 0.012 109.954);
--primary-foreground: oklch(0.778 0.056 109.999);
--secondary: oklch(0.147 0.013 287.043);
--secondary-foreground: oklch(0.674 0.06 286.952);
--accent: oklch(0.147 0.013 287.043);
--accent-foreground: oklch(0.674 0.06 286.952);
--destructive: oklch(0.452 0.129 40.526);
--destructive-foreground: oklch(0.927 0.032 44.662);
--ring: oklch(0.169 0.012 109.954);
--chart-1: oklch(0.169 0.012 109.954);
--chart-2: oklch(0.147 0.013 287.043);
--chart-3: oklch(0.147 0.013 287.043);
--chart-4: oklch(0.177 0.019 286.545);
--chart-5: oklch(0.17 0.013 110.089);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.045 284.382);
--muted-foreground: oklch(0.753 0.004 288.599);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.169 0.012 109.954);
--primary-foreground: oklch(0.778 0.056 109.999);
--secondary: oklch(0.147 0.013 287.043);
--secondary-foreground: oklch(0.674 0.06 286.952);
--accent: oklch(0.147 0.013 287.043);
--accent-foreground: oklch(0.674 0.06 286.952);
--destructive: oklch(0.677 0.166 42.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.169 0.012 109.954);
--chart-1: oklch(0.169 0.012 109.954);
--chart-2: oklch(0.147 0.013 287.043);
--chart-3: oklch(0.147 0.013 287.043);
--chart-4: oklch(0.177 0.019 286.545);
--chart-5: oklch(0.17 0.013 110.089);
}