View is a shadcn/ui theme built around a light teal primary color (#9decdf) with light red accents (#ec9daa). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#9decdf) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010403black |
| Foreground | #061411black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #030707black |
| Card foreground | #05100eblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #030707black |
| Popover foreground | #05100eblack | #ffffffwhite |
| Primary | #9decdfpaleturquoise | #9decdfpaleturquoise |
| Primary foreground | #0e483fdarkslategray | #0e483fdarkslategray |
| Secondary | #ec9daalightpink | #ec9daalightpink |
| Secondary foreground | #480e18maroon | #480e18maroon |
| Muted | #f3e8e9linen | #170c0eblack |
| Muted foreground | #4f4042darkslategray | #bfb0b2silver |
| Accent | #ec9daalightpink | #ec9daalightpink |
| Accent foreground | #480e18maroon | #480e18maroon |
| Destructive | #b2370afirebrick | #f25921chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9decdfpaleturquoise | #9decdfpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 9.17:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.22:1 | AA |
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.176 0.021 182.296);
--muted: oklch(0.939 0.012 5.785);
--muted-foreground: oklch(0.387 0.022 6.909);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.16 0.018 183.159);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.16 0.018 183.159);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.887 0.079 182.843);
--primary-foreground: oklch(0.364 0.06 178.938);
--secondary: oklch(0.777 0.095 8.592);
--secondary-foreground: oklch(0.272 0.087 15.842);
--accent: oklch(0.777 0.095 8.592);
--accent-foreground: oklch(0.272 0.087 15.842);
--destructive: oklch(0.515 0.167 37.03);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.079 182.843);
--chart-1: oklch(0.887 0.079 182.843);
--chart-2: oklch(0.777 0.095 8.592);
--chart-3: oklch(0.777 0.095 8.592);
--chart-4: oklch(0.805 0.082 8.037);
--chart-5: oklch(0.891 0.083 182.735);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 185.186);
--foreground: oklch(0.993 0.001 185.417);
--muted: oklch(0.172 0.019 8.346);
--muted-foreground: oklch(0.77 0.018 6.062);
--popover: oklch(0.123 0.011 185.186);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.011 185.186);
--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.887 0.079 182.843);
--primary-foreground: oklch(0.364 0.06 178.938);
--secondary: oklch(0.777 0.095 8.592);
--secondary-foreground: oklch(0.272 0.087 15.842);
--accent: oklch(0.777 0.095 8.592);
--accent-foreground: oklch(0.272 0.087 15.842);
--destructive: oklch(0.661 0.199 38.217);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.887 0.079 182.843);
--chart-1: oklch(0.887 0.079 182.843);
--chart-2: oklch(0.777 0.095 8.592);
--chart-3: oklch(0.777 0.095 8.592);
--chart-4: oklch(0.805 0.082 8.037);
--chart-5: oklch(0.891 0.083 182.735);
}