True is a shadcn/ui theme built around a deep blue primary color (#0f1c34) with deep green accents (#1c340f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#0f1c34) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020204black |
| Foreground | #060b13black | #f6f7f9whitesmoke |
| Card | #fbfcfewhite | #020204black |
| Card foreground | #060b13black | #f6f7f9whitesmoke |
| Popover | #fbfcfewhite | #020204black |
| Popover foreground | #060b13black | #f6f7f9whitesmoke |
| Primary | #0f1c34midnightblue | #0f1c34midnightblue |
| Primary foreground | #94b0e1skyblue | #94b0e1skyblue |
| Secondary | #340f1cblack | #340f1cblack |
| Secondary foreground | #e194b0palevioletred | #e194b0palevioletred |
| Muted | #efdce3mistyrose | #231017black |
| Muted foreground | #5a494fdarkslategray | #b6a5abdarkgray |
| Accent | #1c340fdarkgreen | #1c340fdarkgreen |
| Accent foreground | #75ca44yellowgreen | #75ca44yellowgreen |
| Destructive | #5c100amaroon | #eb5247tomato |
| Destructive foreground | #f5a9a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f1c34midnightblue | #0f1c34midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 7.24:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use True in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 261.514);
--foreground: oklch(0.149 0.02 259.048);
--muted: oklch(0.912 0.022 353.256);
--muted-foreground: oklch(0.426 0.024 354.127);
--popover: oklch(0.991 0.003 261.514);
--popover-foreground: oklch(0.149 0.02 259.048);
--card: oklch(0.991 0.003 261.514);
--card-foreground: oklch(0.149 0.02 259.048);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.229 0.05 260.672);
--primary-foreground: oklch(0.753 0.077 261.207);
--secondary: oklch(0.233 0.062 0.281);
--secondary-foreground: oklch(0.75 0.099 356.143);
--accent: oklch(0.295 0.067 135.729);
--accent-foreground: oklch(0.759 0.188 136.093);
--destructive: oklch(0.311 0.109 29.112);
--destructive-foreground: oklch(0.806 0.091 23.814);
--ring: oklch(0.229 0.05 260.672);
--chart-1: oklch(0.229 0.05 260.672);
--chart-2: oklch(0.233 0.062 0.281);
--chart-3: oklch(0.295 0.067 135.729);
--chart-4: oklch(0.263 0.073 0.8);
--chart-5: oklch(0.228 0.052 260.631);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.008 255.959);
--foreground: oklch(0.976 0.003 261.513);
--muted: oklch(0.204 0.033 356.916);
--muted-foreground: oklch(0.738 0.021 353.362);
--popover: oklch(0.088 0.008 255.959);
--popover-foreground: oklch(0.976 0.003 261.513);
--card: oklch(0.088 0.008 255.959);
--card-foreground: oklch(0.976 0.003 261.513);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.229 0.05 260.672);
--primary-foreground: oklch(0.753 0.077 261.207);
--secondary: oklch(0.233 0.062 0.281);
--secondary-foreground: oklch(0.75 0.099 356.143);
--accent: oklch(0.295 0.067 135.729);
--accent-foreground: oklch(0.759 0.188 136.093);
--destructive: oklch(0.645 0.19 27.718);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.229 0.05 260.672);
--chart-1: oklch(0.229 0.05 260.672);
--chart-2: oklch(0.233 0.062 0.281);
--chart-3: oklch(0.295 0.067 135.729);
--chart-4: oklch(0.263 0.073 0.8);
--chart-5: oklch(0.228 0.052 260.631);
}