Welcome is a shadcn/ui theme built around a violet primary color (#503d7f) with green accents (#6d7f3d). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the violet primary (#503d7f) on a violet-tinted background (#08060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #08060eblack |
| Foreground | #05030dblack | #fcfcfdwhite |
| Card | #f9f8fcghostwhite | #08060eblack |
| Card foreground | #05030dblack | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #08060eblack |
| Popover foreground | #05030dblack | #fcfcfdwhite |
| Primary | #503d7fdarkslateblue | #503d7fdarkslateblue |
| Primary foreground | #f6f5fawhitesmoke | #f6f5fawhitesmoke |
| Secondary | #6d7f3dolivedrab | #6d7f3dolivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dadbd6gainsboro | #272924darkslategray |
| Muted foreground | #535946darkolivegreen | #b4b9a6darkgray |
| Accent | #6d7f3dolivedrab | #6d7f3dolivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #772f08saddlebrown | #ef6115chocolate |
| Destructive foreground | #facfb7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #503d7fdarkslateblue | #503d7fdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 4.40:1 | AA Large |
| Muted text | 5.22:1 | AA |
| Accent | 4.40:1 | AA Large |
| Destructive | 6.67:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 4.40:1 | AA Large |
| Muted text | 7.32:1 | AAA |
| Accent | 4.40:1 | AA Large |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Welcome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 299.215);
--foreground: oklch(0.11 0.029 299.04);
--muted: oklch(0.889 0.006 119.427);
--muted-foreground: oklch(0.452 0.031 120.483);
--popover: oklch(0.981 0.005 299.215);
--popover-foreground: oklch(0.11 0.029 299.04);
--card: oklch(0.981 0.005 299.215);
--card-foreground: oklch(0.11 0.029 299.04);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.415 0.107 294.288);
--primary-foreground: oklch(0.972 0.007 299.176);
--secondary: oklch(0.567 0.094 122.487);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.567 0.094 122.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.403 0.111 43.652);
--destructive-foreground: oklch(0.885 0.058 49.882);
--ring: oklch(0.415 0.107 294.288);
--chart-1: oklch(0.415 0.107 294.288);
--chart-2: oklch(0.567 0.094 122.487);
--chart-3: oklch(0.567 0.094 122.487);
--chart-4: oklch(0.6 0.1 122.515);
--chart-5: oklch(0.41 0.116 293.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.019 298.45);
--foreground: oklch(0.991 0.003 299.26);
--muted: oklch(0.276 0.008 119.832);
--muted-foreground: oklch(0.778 0.027 119.902);
--popover: oklch(0.132 0.019 298.45);
--popover-foreground: oklch(0.991 0.003 299.26);
--card: oklch(0.132 0.019 298.45);
--card-foreground: oklch(0.991 0.003 299.26);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.415 0.107 294.288);
--primary-foreground: oklch(0.972 0.007 299.176);
--secondary: oklch(0.567 0.094 122.487);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.567 0.094 122.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.666 0.19 42.808);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.415 0.107 294.288);
--chart-1: oklch(0.415 0.107 294.288);
--chart-2: oklch(0.567 0.094 122.487);
--chart-3: oklch(0.567 0.094 122.487);
--chart-4: oklch(0.6 0.1 122.515);
--chart-5: oklch(0.41 0.116 293.707);
}