Trusting is a shadcn/ui theme built around a blue primary color (#1f66b2) with indigo accents (#221fb2). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#1f66b2) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #010304black |
| Foreground | #03080cblack | #f8fafbghostwhite |
| Card | #fbfcfewhite | #010304black |
| Card foreground | #03080cblack | #f8fafbghostwhite |
| Popover | #fbfcfewhite | #010304black |
| Popover foreground | #03080cblack | #f8fafbghostwhite |
| Primary | #1f66b2steelblue | #1f66b2steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1fafb2lightseagreen | #1fafb2lightseagreen |
| Secondary foreground | #010404black | #010404black |
| Muted | #d6dbdbgainsboro | #242829darkslategray |
| Muted foreground | #494b4bdarkslategray | #b4b6b6silver |
| Accent | #221fb2mediumblue | #221fb2mediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bc1206firebrick | #f82f20orangered |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f66b2steelblue | #1f66b2steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 11.00:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 11.00:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Trusting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 249.676);
--foreground: oklch(0.128 0.015 242.086);
--muted: oklch(0.888 0.005 198.279);
--muted-foreground: oklch(0.41 0.002 198.292);
--popover: oklch(0.992 0.003 249.676);
--popover-foreground: oklch(0.128 0.015 242.086);
--card: oklch(0.992 0.003 249.676);
--card-foreground: oklch(0.128 0.015 242.086);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.508 0.138 253.575);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.687 0.112 196.711);
--secondary-foreground: oklch(0.101 0.013 196.289);
--accent: oklch(0.379 0.216 270.319);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.505 0.199 29.809);
--destructive-foreground: oklch(0.979 0.01 22.326);
--ring: oklch(0.508 0.138 253.575);
--chart-1: oklch(0.508 0.138 253.575);
--chart-2: oklch(0.687 0.112 196.711);
--chart-3: oklch(0.379 0.216 270.319);
--chart-4: oklch(0.724 0.118 196.714);
--chart-5: oklch(0.509 0.143 253.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.01 241.339);
--foreground: oklch(0.984 0.003 249.675);
--muted: oklch(0.274 0.006 198.017);
--muted-foreground: oklch(0.774 0.002 198.33);
--popover: oklch(0.088 0.01 241.339);
--popover-foreground: oklch(0.984 0.003 249.675);
--card: oklch(0.088 0.01 241.339);
--card-foreground: oklch(0.984 0.003 249.675);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.508 0.138 253.575);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.687 0.112 196.711);
--secondary-foreground: oklch(0.101 0.013 196.289);
--accent: oklch(0.379 0.216 270.319);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.235 29.531);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.508 0.138 253.575);
--chart-1: oklch(0.508 0.138 253.575);
--chart-2: oklch(0.687 0.112 196.711);
--chart-3: oklch(0.379 0.216 270.319);
--chart-4: oklch(0.724 0.118 196.714);
--chart-5: oklch(0.509 0.143 253.878);
}