Self-assured is a shadcn/ui theme built around a deep green primary color (#235818) with deep red accents (#581823). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#235818) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #060b05black |
| Foreground | #040e02black | #fcfdfcwhite |
| Card | #f8fcf8mintcream | #070e06black |
| Card foreground | #020901black | #ffffffwhite |
| Popover | #fcfefbwhite | #060b05black |
| Popover foreground | #040e02black | #fcfdfcwhite |
| Primary | #235818darkgreen | #235818darkgreen |
| Primary foreground | #c0ebb7lightgrey | #c0ebb7lightgrey |
| Secondary | #182358midnightblue | #182358midnightblue |
| Secondary foreground | #b7c0eblightsteelblue | #b7c0eblightsteelblue |
| Muted | #e2e3e9gainsboro | #16171dblack |
| Muted foreground | #4d4f5cdarkslategray | #a3a6b2darkgray |
| Accent | #581823maroon | #581823maroon |
| Accent foreground | #ebb7c0lightpink | #ebb7c0lightpink |
| Destructive | #bd100afirebrick | #f2140dred |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #235818darkgreen | #235818darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Self-assured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 140.526);
--foreground: oklch(0.146 0.036 138.245);
--muted: oklch(0.918 0.007 277.155);
--muted-foreground: oklch(0.43 0.021 276.534);
--popover: oklch(0.994 0.003 140.526);
--popover-foreground: oklch(0.146 0.036 138.245);
--card: oklch(0.987 0.007 140.521);
--card-foreground: oklch(0.126 0.031 138.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.111 140.555);
--primary-foreground: oklch(0.897 0.084 140.396);
--secondary: oklch(0.281 0.097 270.423);
--secondary-foreground: oklch(0.815 0.062 276.079);
--accent: oklch(0.317 0.094 14.563);
--accent-foreground: oklch(0.829 0.061 7.339);
--destructive: oklch(0.506 0.201 29.186);
--destructive-foreground: oklch(0.989 0.005 19.672);
--ring: oklch(0.41 0.111 140.555);
--chart-1: oklch(0.41 0.111 140.555);
--chart-2: oklch(0.281 0.097 270.423);
--chart-3: oklch(0.317 0.094 14.563);
--chart-4: oklch(0.305 0.108 270.202);
--chart-5: oklch(0.414 0.115 140.604);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.018 139.299);
--foreground: oklch(0.993 0.003 140.527);
--muted: oklch(0.208 0.01 276.531);
--muted-foreground: oklch(0.726 0.018 276.899);
--popover: oklch(0.139 0.018 139.299);
--popover-foreground: oklch(0.993 0.003 140.527);
--card: oklch(0.154 0.021 139.574);
--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.41 0.111 140.555);
--primary-foreground: oklch(0.897 0.084 140.396);
--secondary: oklch(0.281 0.097 270.423);
--secondary-foreground: oklch(0.815 0.062 276.079);
--accent: oklch(0.317 0.094 14.563);
--accent-foreground: oklch(0.829 0.061 7.339);
--destructive: oklch(0.609 0.243 29.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.111 140.555);
--chart-1: oklch(0.41 0.111 140.555);
--chart-2: oklch(0.281 0.097 270.423);
--chart-3: oklch(0.317 0.094 14.563);
--chart-4: oklch(0.305 0.108 270.202);
--chart-5: oklch(0.414 0.115 140.604);
}