Integer is a shadcn/ui theme built around a muted light blue primary color (#cad2dd) with muted light orange accents (#ddd5ca). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#cad2dd) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030507black |
| Foreground | #02070eblack | #f8fafcghostwhite |
| Card | #f7f9fdghostwhite | #05070bblack |
| Card foreground | #010509black | #fcfcfdwhite |
| Popover | #fbfcfewhite | #030507black |
| Popover foreground | #02070eblack | #f8fafcghostwhite |
| Primary | #cad2ddlightgrey | #cad2ddlightgrey |
| Primary foreground | #2e3948darkslategray | #2e3948darkslategray |
| Secondary | #ddd5calightgrey | #ddd5calightgrey |
| Secondary foreground | #483c2edarkslategray | #483c2edarkslategray |
| Muted | #e0dad1gainsboro | #2e271fdarkslategray |
| Muted foreground | #64615edimgray | #a19e9bdarkgray |
| Accent | #ddd5calightgrey | #ddd5calightgrey |
| Accent foreground | #483c2edarkslategray | #483c2edarkslategray |
| Destructive | #740202maroon | #fb1313red |
| Destructive foreground | #feaaaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cad2ddlightgrey | #cad2ddlightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 4.42:1 | AA Large |
| Accent | 7.36:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Integer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 254.968);
--foreground: oklch(0.123 0.021 244.402);
--muted: oklch(0.89 0.013 74.86);
--muted-foreground: oklch(0.495 0.006 74.877);
--popover: oklch(0.991 0.003 254.968);
--popover-foreground: oklch(0.123 0.021 244.402);
--card: oklch(0.983 0.005 254.983);
--card-foreground: oklch(0.108 0.018 243.21);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.017 255.055);
--primary-foreground: oklch(0.34 0.03 255.279);
--secondary: oklch(0.876 0.017 74.825);
--secondary-foreground: oklch(0.365 0.028 74.156);
--accent: oklch(0.876 0.017 74.825);
--accent-foreground: oklch(0.365 0.028 74.156);
--destructive: oklch(0.351 0.142 28.984);
--destructive-foreground: oklch(0.819 0.1 19.431);
--ring: oklch(0.862 0.017 255.055);
--chart-1: oklch(0.862 0.017 255.055);
--chart-2: oklch(0.876 0.017 74.825);
--chart-3: oklch(0.876 0.017 74.825);
--chart-4: oklch(0.898 0.014 74.853);
--chart-5: oklch(0.861 0.02 255.067);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.009 249.542);
--foreground: oklch(0.984 0.003 254.971);
--muted: oklch(0.278 0.017 74.393);
--muted-foreground: oklch(0.702 0.006 74.905);
--popover: oklch(0.112 0.009 249.542);
--popover-foreground: oklch(0.984 0.003 254.971);
--card: oklch(0.128 0.01 249.584);
--card-foreground: oklch(0.992 0.002 254.962);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.017 255.055);
--primary-foreground: oklch(0.34 0.03 255.279);
--secondary: oklch(0.876 0.017 74.825);
--secondary-foreground: oklch(0.365 0.028 74.156);
--accent: oklch(0.876 0.017 74.825);
--accent-foreground: oklch(0.365 0.028 74.156);
--destructive: oklch(0.626 0.251 28.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.017 255.055);
--chart-1: oklch(0.862 0.017 255.055);
--chart-2: oklch(0.876 0.017 74.825);
--chart-3: oklch(0.876 0.017 74.825);
--chart-4: oklch(0.898 0.014 74.853);
--chart-5: oklch(0.861 0.02 255.067);
}