Regular is a shadcn/ui theme built around a deep green primary color (#16570f) with muted light green accents (#dce6db). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the deep green primary (#16570f) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020302black |
| Foreground | #040d03black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #020302black |
| Card foreground | #040d03black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #020302black |
| Popover foreground | #040d03black | #fcfdfcwhite |
| Primary | #16570fdarkgreen | #16570fdarkgreen |
| Primary foreground | #aff0a8palegreen | #aff0a8palegreen |
| Secondary | #dce6dbgainsboro | #182117black |
| Secondary foreground | #3d543bdarkslategray | #aac2a8darkgray |
| Muted | #e1ebe0gainsboro | #151f14black |
| Muted foreground | #586057dimgray | #a0a89fdarkgray |
| Accent | #dce6dbgainsboro | #182117black |
| Accent foreground | #3d543bdarkslategray | #aac2a8darkgray |
| Destructive | #a31c0ffirebrick | #d22314firebrick |
| Destructive foreground | #fde9e8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16570fdarkgreen | #16570fdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 8.65:1 | AAA |
| Destructive | 5.25:1 | AA |
Paste this into your globals.css to use Regular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 142.591);
--foreground: oklch(0.143 0.031 140.67);
--muted: oklch(0.93 0.018 142.546);
--muted-foreground: oklch(0.48 0.018 142.476);
--popover: oklch(0.988 0.009 142.591);
--popover-foreground: oklch(0.143 0.031 140.67);
--card: oklch(0.988 0.009 142.591);
--card-foreground: oklch(0.143 0.031 140.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.4 0.121 141.717);
--primary-foreground: oklch(0.893 0.116 142.095);
--secondary: oklch(0.914 0.018 142.546);
--secondary-foreground: oklch(0.42 0.051 142.133);
--accent: oklch(0.914 0.018 142.546);
--accent-foreground: oklch(0.42 0.051 142.133);
--destructive: oklch(0.463 0.172 30.038);
--destructive-foreground: oklch(0.95 0.021 23.812);
--ring: oklch(0.4 0.121 141.717);
--chart-1: oklch(0.4 0.121 141.717);
--chart-2: oklch(0.914 0.018 142.546);
--chart-3: oklch(0.914 0.018 142.546);
--chart-4: oklch(0.936 0.014 142.568);
--chart-5: oklch(0.405 0.124 141.736);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.012 141.524);
--foreground: oklch(0.993 0.002 142.618);
--muted: oklch(0.226 0.026 142.158);
--muted-foreground: oklch(0.722 0.016 142.536);
--popover: oklch(0.096 0.012 141.524);
--popover-foreground: oklch(0.993 0.002 142.618);
--card: oklch(0.096 0.012 141.524);
--card-foreground: oklch(0.993 0.002 142.618);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.4 0.121 141.717);
--primary-foreground: oklch(0.893 0.116 142.095);
--secondary: oklch(0.236 0.023 142.224);
--secondary-foreground: oklch(0.79 0.045 142.392);
--accent: oklch(0.236 0.023 142.224);
--accent-foreground: oklch(0.79 0.045 142.392);
--destructive: oklch(0.556 0.21 30.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.4 0.121 141.717);
--chart-1: oklch(0.4 0.121 141.717);
--chart-2: oklch(0.236 0.023 142.224);
--chart-3: oklch(0.236 0.023 142.224);
--chart-4: oklch(0.27 0.028 142.196);
--chart-5: oklch(0.405 0.124 141.736);
}