View is a shadcn/ui theme built around a vivid light blue primary color (#97cdfc) with vivid light green accents (#cdfc97). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#97cdfc) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #010509black | #f4f8fawhitesmoke |
| Card | #fcfcfcsnow | #020508black |
| Card foreground | #010305black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #010509black | #f4f8fawhitesmoke |
| Primary | #97cdfclightskyblue | #97cdfclightskyblue |
| Primary foreground | #02345emidnightblue | #02345emidnightblue |
| Secondary | #fc97cdlightpink | #fc97cdlightpink |
| Secondary foreground | #5e0234maroon | #5e0234maroon |
| Muted | #e4d3dcgainsboro | #2c1b24black |
| Muted foreground | #55444ddarkslategray | #bbaab3darkgray |
| Accent | #cdfc97khaki | #cdfc97khaki |
| Accent foreground | #345e02darkgreen | #345e02darkgreen |
| Destructive | #940500darkred | #ff170fred |
| Destructive foreground | #ffc9c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97cdfclightskyblue | #97cdfclightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.33:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use View in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.018 233.191);
--muted: oklch(0.883 0.022 344.071);
--muted-foreground: oklch(0.408 0.027 345.028);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.018 233.191);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.089 0.014 233.191);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.827 0.088 245.536);
--primary-foreground: oklch(0.319 0.09 251.043);
--secondary: oklch(0.796 0.137 347.455);
--secondary-foreground: oklch(0.317 0.127 356.457);
--accent: oklch(0.936 0.138 129.166);
--accent-foreground: oklch(0.435 0.122 133.437);
--destructive: oklch(0.42 0.17 29.742);
--destructive-foreground: oklch(0.882 0.062 20.693);
--ring: oklch(0.827 0.088 245.536);
--chart-1: oklch(0.827 0.088 245.536);
--chart-2: oklch(0.796 0.137 347.455);
--chart-3: oklch(0.936 0.138 129.166);
--chart-4: oklch(0.823 0.117 346.765);
--chart-5: oklch(0.827 0.09 245.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.01 236.131);
--foreground: oklch(0.976 0.005 244.155);
--muted: oklch(0.248 0.031 346.373);
--muted-foreground: oklch(0.755 0.023 344.191);
--popover: oklch(0.09 0.01 236.131);
--popover-foreground: oklch(0.976 0.005 244.155);
--card: oklch(0.113 0.013 236.131);
--card-foreground: oklch(0.984 0.003 244.133);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.827 0.088 245.536);
--primary-foreground: oklch(0.319 0.09 251.043);
--secondary: oklch(0.796 0.137 347.455);
--secondary-foreground: oklch(0.317 0.127 356.457);
--accent: oklch(0.936 0.138 129.166);
--accent-foreground: oklch(0.435 0.122 133.437);
--destructive: oklch(0.633 0.252 29.23);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.827 0.088 245.536);
--chart-1: oklch(0.827 0.088 245.536);
--chart-2: oklch(0.796 0.137 347.455);
--chart-3: oklch(0.936 0.138 129.166);
--chart-4: oklch(0.823 0.117 346.765);
--chart-5: oklch(0.827 0.09 245.591);
}