Submissive is a shadcn/ui theme built around a vivid yellow primary color (#cbc20b) with vivid purple accents (#c20bcb). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the vivid yellow primary (#cbc20b) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf7snow | #0b0b04black |
| Foreground | #0c0b04black | #fdfdfcwhite |
| Card | #fcfcf7snow | #0b0b04black |
| Card foreground | #0c0b04black | #fdfdfcwhite |
| Popover | #fcfcf7snow | #0b0b04black |
| Popover foreground | #0c0b04black | #fdfdfcwhite |
| Primary | #cbc20bgoldenrod | #cbc20bgoldenrod |
| Primary foreground | #0a0901black | #0a0901black |
| Secondary | #0bcbc2darkturquoise | #0bcbc2darkturquoise |
| Secondary foreground | #010a09black | #010a09black |
| Muted | #d6e6e5gainsboro | #192929darkslategray |
| Muted foreground | #404a49darkslategray | #b5bfbesilver |
| Accent | #c20bcbdarkviolet | #c20bcbdarkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9f2009firebrick | #f23c1corangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbc20bgoldenrod | #cbc20bgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 10.70:1 | AAA |
| Secondary button | 9.89:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 4.99:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 10.70:1 | AAA |
| Secondary button | 9.89:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 4.99:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Submissive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 104.082);
--foreground: oklch(0.149 0.019 106.408);
--muted: oklch(0.913 0.018 193.225);
--muted-foreground: oklch(0.399 0.013 192.99);
--popover: oklch(0.991 0.006 104.082);
--popover-foreground: oklch(0.149 0.019 106.408);
--card: oklch(0.991 0.006 104.082);
--card-foreground: oklch(0.149 0.019 106.408);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.168 105.989);
--primary-foreground: oklch(0.137 0.027 107.764);
--secondary: oklch(0.761 0.131 188.726);
--secondary-foreground: oklch(0.13 0.021 191.992);
--accent: oklch(0.579 0.266 325.711);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.458 0.166 32.003);
--destructive-foreground: oklch(0.934 0.031 29.615);
--ring: oklch(0.796 0.168 105.989);
--chart-1: oklch(0.796 0.168 105.989);
--chart-2: oklch(0.761 0.131 188.726);
--chart-3: oklch(0.579 0.266 325.711);
--chart-4: oklch(0.801 0.138 188.703);
--chart-5: oklch(0.805 0.171 105.935);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.016 106.084);
--foreground: oklch(0.994 0.002 104.008);
--muted: oklch(0.268 0.022 191.952);
--muted-foreground: oklch(0.797 0.011 193.342);
--popover: oklch(0.146 0.016 106.084);
--popover-foreground: oklch(0.994 0.002 104.008);
--card: oklch(0.146 0.016 106.084);
--card-foreground: oklch(0.994 0.002 104.008);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.168 105.989);
--primary-foreground: oklch(0.137 0.027 107.764);
--secondary: oklch(0.761 0.131 188.726);
--secondary-foreground: oklch(0.13 0.021 191.992);
--accent: oklch(0.579 0.266 325.711);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.221 32.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.796 0.168 105.989);
--chart-1: oklch(0.796 0.168 105.989);
--chart-2: oklch(0.761 0.131 188.726);
--chart-3: oklch(0.579 0.266 325.711);
--chart-4: oklch(0.801 0.138 188.703);
--chart-5: oklch(0.805 0.171 105.935);
}