LexiLearner is a shadcn/ui theme built around a vivid yellow primary color (#ffd42a) with muted light yellow accents (#d2d2c6). The light mode uses a neutral background (#fcfcfc). Dark mode switches to a yellow primary (#93944c) on a yellow-tinted background (#0a0a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfcsnow | #0a0a05black |
| Foreground | #301b44midnightblue | #ffffffwhite |
| Card | #fcfcfcsnow | #0e0e07black |
| Card foreground | #301b44midnightblue | #ffffffwhite |
| Popover | #fcfcfcsnow | #0a0a05black |
| Popover foreground | #301b44midnightblue | #ffffffwhite |
| Primary | #ffd42agold | #93944colivedrab |
| Primary foreground | #301b44midnightblue | #0d0d07black |
| Secondary | #8383ffmediumslateblue | #2d2d2adarkslategray |
| Secondary foreground | #fcfcfcsnow | #c6c6c3silver |
| Muted | #ffe9admoccasin | #272716black |
| Muted foreground | #453751darkslategray | #9a9a98darkgray |
| Accent | #d2d2c6lightgrey | #444536darkslategray |
| Accent foreground | #39392ddarkslategray | #dbdbd1gainsboro |
| Destructive | #ff6740tomato | #ea7b43coral |
| Destructive foreground | #f8f8f8whitesmoke | #000000black |
| Border | #e5ddeagainsboro | #1f1f19black |
| Input | #e5ddeagainsboro | #1f1f19black |
| Ring | #453751darkslategray | #93944colivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.03:1 | AAA |
| Text on card | 14.98:1 | AAA |
| Primary button | 10.76:1 | AAA |
| Secondary button | 3.07:1 | AA Large |
| Muted text | 9.12:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 2.72:1 | Fail |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 7.39:1 | AAA |
Paste this into your globals.css to use LexiLearner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0 180);
--foreground: oklch(0.272 0.076 305.575);
--muted: oklch(0.938 0.08 90.264);
--muted-foreground: oklch(0.363 0.047 308.705);
--popover: oklch(0.991 0 180);
--popover-foreground: oklch(0.272 0.076 305.575);
--card: oklch(0.991 0 180);
--card-foreground: oklch(0.272 0.076 305.575);
--border: oklch(0.908 0.019 312.788);
--input: oklch(0.908 0.019 312.788);
--primary: oklch(0.882 0.172 93.093);
--primary-foreground: oklch(0.272 0.076 305.575);
--secondary: oklch(0.669 0.179 280.404);
--secondary-foreground: oklch(0.991 0 180);
--accent: oklch(0.861 0.017 107.518);
--accent-foreground: oklch(0.341 0.021 108.23);
--destructive: oklch(0.7 0.193 35.403);
--destructive-foreground: oklch(0.979 0 173.29);
--ring: oklch(0.363 0.047 308.705);
--chart-1: oklch(0.363 0.047 308.705);
--chart-2: oklch(0.526 0.093 308.217);
--chart-3: oklch(0.908 0.019 312.788);
--chart-4: oklch(0.938 0.08 90.264);
--chart-5: oklch(0.272 0.076 305.575);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.013 108.598);
--foreground: oklch(1 0 180);
--muted: oklch(0.269 0.03 109.098);
--muted-foreground: oklch(0.686 0.003 107.248);
--popover: oklch(0.144 0.013 108.598);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.015 108.742);
--card-foreground: oklch(1 0 180);
--border: oklch(0.239 0.012 108.089);
--input: oklch(0.239 0.012 108.089);
--primary: oklch(0.65 0.095 109.619);
--primary-foreground: oklch(0.159 0.014 108.628);
--secondary: oklch(0.295 0.005 107.453);
--secondary-foreground: oklch(0.826 0.005 107.276);
--accent: oklch(0.384 0.024 108.264);
--accent-foreground: oklch(0.889 0.013 107.438);
--destructive: oklch(0.698 0.154 45.463);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.65 0.095 109.619);
--chart-1: oklch(0.65 0.095 109.619);
--chart-2: oklch(0.295 0.005 107.453);
--chart-3: oklch(0.384 0.024 108.264);
--chart-4: oklch(0.326 0.005 107.463);
--chart-5: oklch(0.66 0.102 109.754);
}