Recorder is a shadcn/ui theme built around a near-black primary color (#010401) with near-black accents (#040104). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010401) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010401black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #010401black | #010401black |
| Primary foreground | #37b021limegreen | #37b021limegreen |
| Secondary | #040104black | #040104black |
| Secondary foreground | #e6aeefplum | #e6aeefplum |
| Muted | #e7e4e7gainsboro | #1b181bblack |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #040104black | #040104black |
| Accent foreground | #e6aeefplum | #e6aeefplum |
| Destructive | #da1c07red | #df1c07red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010401black | #010401black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 11.54:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 11.54:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 11.54:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 11.54:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Recorder in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.019 139.24);
--muted: oklch(0.921 0.006 321.079);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.019 139.24);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.099 0.021 138.962);
--primary-foreground: oklch(0.664 0.204 141.134);
--secondary: oklch(0.083 0.024 323.306);
--secondary-foreground: oklch(0.822 0.108 321.324);
--accent: oklch(0.083 0.024 323.306);
--accent-foreground: oklch(0.822 0.108 321.324);
--destructive: oklch(0.566 0.221 30.369);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.099 0.021 138.962);
--chart-1: oklch(0.099 0.021 138.962);
--chart-2: oklch(0.083 0.024 323.306);
--chart-3: oklch(0.083 0.024 323.306);
--chart-4: oklch(0.134 0.04 322.313);
--chart-5: oklch(0.099 0.022 138.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 141.062);
--muted: oklch(0.213 0.008 321.149);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 141.062);
--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.099 0.021 138.962);
--primary-foreground: oklch(0.664 0.204 141.134);
--secondary: oklch(0.083 0.024 323.306);
--secondary-foreground: oklch(0.822 0.108 321.324);
--accent: oklch(0.083 0.024 323.306);
--accent-foreground: oklch(0.822 0.108 321.324);
--destructive: oklch(0.575 0.224 30.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.099 0.021 138.962);
--chart-1: oklch(0.099 0.021 138.962);
--chart-2: oklch(0.083 0.024 323.306);
--chart-3: oklch(0.083 0.024 323.306);
--chart-4: oklch(0.134 0.04 322.313);
--chart-5: oklch(0.099 0.022 138.869);
}