Valuable is a shadcn/ui theme built around a deep yellow primary color (#37341b) with neutral gray accents (#e7e7e4). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#37341b) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0b0a04black |
| Foreground | #0d0c03black | #ffffffwhite |
| Card | #fefefbwhite | #0b0a04black |
| Card foreground | #0d0c03black | #ffffffwhite |
| Popover | #fefefbwhite | #0b0a04black |
| Popover foreground | #0d0c03black | #ffffffwhite |
| Primary | #37341bdarkslategray | #37341bdarkslategray |
| Primary foreground | #d7d2adpalegoldenrod | #d7d2adpalegoldenrod |
| Secondary | #e7e7e4gainsboro | #181816black |
| Secondary foreground | #525147darkolivegreen | #b4b3acdarkgray |
| Muted | #f2f2edwhitesmoke | #12120dblack |
| Muted foreground | #464643darkslategray | #bcbbb9silver |
| Accent | #e7e7e4gainsboro | #181816black |
| Accent foreground | #525147darkolivegreen | #b4b3acdarkgray |
| Destructive | #7f3206saddlebrown | #db570achocolate |
| Destructive foreground | #fcd3bbpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #37341bdarkslategray | #37341bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.45:1 | AA |
| Muted text | 8.43:1 | AAA |
| Accent | 6.45:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 9.82:1 | AAA |
| Accent | 8.46:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Valuable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 101.351);
--foreground: oklch(0.15 0.022 104.391);
--muted: oklch(0.96 0.007 101.396);
--muted-foreground: oklch(0.393 0.004 101.452);
--popover: oklch(0.996 0.004 101.351);
--popover-foreground: oklch(0.15 0.022 104.391);
--card: oklch(0.996 0.004 101.351);
--card-foreground: oklch(0.15 0.022 104.391);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.321 0.04 102.851);
--primary-foreground: oklch(0.859 0.05 102.14);
--secondary: oklch(0.927 0.004 101.361);
--secondary-foreground: oklch(0.432 0.015 101.832);
--accent: oklch(0.927 0.004 101.361);
--accent-foreground: oklch(0.432 0.015 101.832);
--destructive: oklch(0.42 0.117 44.277);
--destructive-foreground: oklch(0.895 0.056 51.778);
--ring: oklch(0.321 0.04 102.851);
--chart-1: oklch(0.321 0.04 102.851);
--chart-2: oklch(0.927 0.004 101.361);
--chart-3: oklch(0.927 0.004 101.361);
--chart-4: oklch(0.949 0.003 101.337);
--chart-5: oklch(0.324 0.043 102.903);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.014 103.667);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.01 102.097);
--muted-foreground: oklch(0.792 0.003 101.357);
--popover: oklch(0.144 0.014 103.667);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.014 103.667);
--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.321 0.04 102.851);
--primary-foreground: oklch(0.859 0.05 102.14);
--secondary: oklch(0.208 0.004 101.588);
--secondary-foreground: oklch(0.766 0.01 101.492);
--accent: oklch(0.208 0.004 101.588);
--accent-foreground: oklch(0.766 0.01 101.492);
--destructive: oklch(0.621 0.181 42.867);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.321 0.04 102.851);
--chart-1: oklch(0.321 0.04 102.851);
--chart-2: oklch(0.208 0.004 101.588);
--chart-3: oklch(0.208 0.004 101.588);
--chart-4: oklch(0.242 0.005 101.617);
--chart-5: oklch(0.324 0.043 102.903);
}