Worried is a shadcn/ui theme built around a vivid deep indigo primary color (#14015b) with muted light indigo accents (#e9e8ed). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#14015b) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #040307black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #040307black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #040307black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #14015bmidnightblue | #14015bmidnightblue |
| Primary foreground | #a890femediumpurple | #a890femediumpurple |
| Secondary | #e9e8edlavender | #1a1820black |
| Secondary foreground | #4b465ddarkslategray | #b0abbfdarkgray |
| Muted | #e6e4eclavender | #15131bblack |
| Muted foreground | #5c5671dimgray | #948ea9lightslategray |
| Accent | #e9e8edlavender | #1a1820black |
| Accent foreground | #4b465ddarkslategray | #b0abbfdarkgray |
| Destructive | #d00d06firebrick | #f8231borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #14015bmidnightblue | #14015bmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 5.62:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Worried in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 296.244);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.01 296.133);
--muted-foreground: oklch(0.468 0.045 294.53);
--popover: oklch(0.989 0.005 296.244);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 296.244);
--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.228 0.139 276.611);
--primary-foreground: oklch(0.72 0.157 291.943);
--secondary: oklch(0.933 0.008 296.179);
--secondary-foreground: oklch(0.409 0.038 294.583);
--accent: oklch(0.933 0.008 296.179);
--accent-foreground: oklch(0.409 0.038 294.583);
--destructive: oklch(0.541 0.217 29.323);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.139 276.611);
--chart-1: oklch(0.228 0.139 276.611);
--chart-2: oklch(0.933 0.008 296.179);
--chart-3: oklch(0.933 0.008 296.179);
--chart-4: oklch(0.958 0.005 296.239);
--chart-5: oklch(0.227 0.143 275.866);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.012 295.944);
--foreground: oklch(0.992 0.001 296.315);
--muted: oklch(0.193 0.015 294.907);
--muted-foreground: oklch(0.66 0.041 295.174);
--popover: oklch(0.106 0.012 295.944);
--popover-foreground: oklch(0.992 0.001 296.315);
--card: oklch(0.106 0.012 295.944);
--card-foreground: oklch(0.992 0.001 296.315);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.228 0.139 276.611);
--primary-foreground: oklch(0.72 0.157 291.943);
--secondary: oklch(0.216 0.014 295.104);
--secondary-foreground: oklch(0.752 0.028 295.658);
--accent: oklch(0.216 0.014 295.104);
--accent-foreground: oklch(0.752 0.028 295.658);
--destructive: oklch(0.625 0.242 28.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.139 276.611);
--chart-1: oklch(0.228 0.139 276.611);
--chart-2: oklch(0.216 0.014 295.104);
--chart-3: oklch(0.216 0.014 295.104);
--chart-4: oklch(0.246 0.018 295.001);
--chart-5: oklch(0.227 0.143 275.866);
}