Subgroup is a shadcn/ui theme built around a deep orange primary color (#37200b) with deep violet accents (#200b37). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#37200b) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040201black |
| Foreground | #090501black | #fbfaf8snow |
| Card | #fdfaf7snow | #080503black |
| Card foreground | #050201black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #040201black |
| Popover foreground | #090501black | #fbfaf8snow |
| Primary | #37200bblack | #37200bblack |
| Primary foreground | #e8b78cburlywood | #e8b78cburlywood |
| Secondary | #0b3720darkgreen | #0b3720darkgreen |
| Secondary foreground | #37d782mediumseagreen | #37d782mediumseagreen |
| Muted | #e4ece8lavender | #131b17black |
| Muted foreground | #54635bdimgray | #9caba3darkgray |
| Accent | #200b37midnightblue | #200b37midnightblue |
| Accent foreground | #b78ce8plum | #b78ce8plum |
| Destructive | #8c2303darkred | #fb5928tomato |
| Destructive foreground | #fed1c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #37200bblack | #37200bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Subgroup in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 64.053);
--foreground: oklch(0.119 0.018 75.728);
--muted: oklch(0.936 0.011 163.141);
--muted-foreground: oklch(0.485 0.022 162.254);
--popover: oklch(0.993 0.003 64.053);
--popover-foreground: oklch(0.119 0.018 75.728);
--card: oklch(0.986 0.006 64.017);
--card-foreground: oklch(0.094 0.015 75.728);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.268 0.049 59.425);
--primary-foreground: oklch(0.814 0.081 62.501);
--secondary: oklch(0.301 0.064 155.526);
--secondary-foreground: oklch(0.78 0.178 154.49);
--accent: oklch(0.211 0.082 300.92);
--accent-foreground: oklch(0.716 0.137 304.657);
--destructive: oklch(0.424 0.145 35.257);
--destructive-foreground: oklch(0.895 0.054 37.592);
--ring: oklch(0.268 0.049 59.425);
--chart-1: oklch(0.268 0.049 59.425);
--chart-2: oklch(0.301 0.064 155.526);
--chart-3: oklch(0.211 0.082 300.92);
--chart-4: oklch(0.344 0.076 155.094);
--chart-5: oklch(0.27 0.051 59.053);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.009 71.212);
--foreground: oklch(0.985 0.003 64.056);
--muted: oklch(0.213 0.016 161.42);
--muted-foreground: oklch(0.726 0.02 162.735);
--popover: oklch(0.094 0.009 71.212);
--popover-foreground: oklch(0.985 0.003 64.056);
--card: oklch(0.118 0.011 71.212);
--card-foreground: oklch(0.993 0.001 64.073);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.268 0.049 59.425);
--primary-foreground: oklch(0.814 0.081 62.501);
--secondary: oklch(0.301 0.064 155.526);
--secondary-foreground: oklch(0.78 0.178 154.49);
--accent: oklch(0.211 0.082 300.92);
--accent-foreground: oklch(0.716 0.137 304.657);
--destructive: oklch(0.675 0.206 36.521);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.268 0.049 59.425);
--chart-1: oklch(0.268 0.049 59.425);
--chart-2: oklch(0.301 0.064 155.526);
--chart-3: oklch(0.211 0.082 300.92);
--chart-4: oklch(0.344 0.076 155.094);
--chart-5: oklch(0.27 0.051 59.053);
}