Wear is a shadcn/ui theme built around a vivid light purple primary color (#fec2ff) with vivid light teal accents (#c2fffe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#fec2ff) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150515black | #f9f6f9whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #150515black | #f9f6f9whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150515black | #f9f6f9whitesmoke |
| Primary | #fec2fflavender | #fec2fflavender |
| Primary foreground | #280029black | #280029black |
| Secondary | #fffec2lemonchiffon | #fffec2lemonchiffon |
| Secondary foreground | #292800black | #292800black |
| Muted | #eeeee7linen | #181811black |
| Muted foreground | #525242darkolivegreen | #bdbdadsilver |
| Accent | #c2fffelightcyan | #c2fffelightcyan |
| Accent foreground | #002928black | #002928black |
| Destructive | #8f110fdarkred | #eb4542tomato |
| Destructive foreground | #fbd6d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fec2fflavender | #fec2fflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 12.80:1 | AAA |
| Secondary button | 14.42:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 14.08:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 12.80:1 | AAA |
| Secondary button | 14.42:1 | AAA |
| Muted text | 9.39:1 | AAA |
| Accent | 14.08:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Wear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.044 326.89);
--muted: oklch(0.947 0.009 105.786);
--muted-foreground: oklch(0.433 0.025 106.61);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.044 326.89);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.044 326.89);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.887 0.103 325.868);
--primary-foreground: oklch(0.195 0.089 327.633);
--secondary: oklch(0.983 0.076 106.909);
--secondary-foreground: oklch(0.268 0.058 108.764);
--accent: oklch(0.958 0.061 194.905);
--accent-foreground: oklch(0.253 0.043 193.083);
--destructive: oklch(0.417 0.159 28.272);
--destructive-foreground: oklch(0.907 0.041 19.087);
--ring: oklch(0.887 0.103 325.868);
--chart-1: oklch(0.887 0.103 325.868);
--chart-2: oklch(0.983 0.076 106.909);
--chart-3: oklch(0.958 0.061 194.905);
--chart-4: oklch(0.987 0.058 106.609);
--chart-5: oklch(0.886 0.107 325.89);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 325.132);
--muted: oklch(0.206 0.013 106.685);
--muted-foreground: oklch(0.794 0.022 106.102);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 325.132);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.004 325.132);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.887 0.103 325.868);
--primary-foreground: oklch(0.195 0.089 327.633);
--secondary: oklch(0.983 0.076 106.909);
--secondary-foreground: oklch(0.268 0.058 108.764);
--accent: oklch(0.958 0.061 194.905);
--accent-foreground: oklch(0.253 0.043 193.083);
--destructive: oklch(0.631 0.204 26.013);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.103 325.868);
--chart-1: oklch(0.887 0.103 325.868);
--chart-2: oklch(0.983 0.076 106.909);
--chart-3: oklch(0.958 0.061 194.905);
--chart-4: oklch(0.987 0.058 106.609);
--chart-5: oklch(0.886 0.107 325.89);
}