Square is a shadcn/ui theme built around a light blue primary color (#a0cae9) with light orange accents (#e9bea0). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light blue primary (#a0cae9) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #04080cblack | #f5f8fawhitesmoke |
| Card | #f7fafdghostwhite | #04080cblack |
| Card foreground | #020608black | #f8fafbghostwhite |
| Popover | #f7fafdghostwhite | #04080cblack |
| Popover foreground | #020608black | #f8fafbghostwhite |
| Primary | #a0cae9lightblue | #a0cae9lightblue |
| Primary foreground | #103046darkslategray | #103046darkslategray |
| Secondary | #e9bea0burlywood | #e9bea0burlywood |
| Secondary foreground | #462710maroon | #462710maroon |
| Muted | #f6efealinen | #150e09black |
| Muted foreground | #5f5e5ddimgray | #a2a0a0darkgray |
| Accent | #e9bea0burlywood | #e9bea0burlywood |
| Accent foreground | #462710maroon | #462710maroon |
| Destructive | #771b09maroon | #f05233tomato |
| Destructive foreground | #fac3b8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a0cae9lightblue | #a0cae9lightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Square in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 238.398);
--foreground: oklch(0.131 0.013 232.265);
--muted: oklch(0.955 0.01 58.22);
--muted-foreground: oklch(0.483 0.002 58.308);
--popover: oklch(0.984 0.005 238.433);
--popover-foreground: oklch(0.115 0.011 231.773);
--card: oklch(0.984 0.005 238.433);
--card-foreground: oklch(0.115 0.011 231.773);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.062 239.577);
--primary-foreground: oklch(0.297 0.055 242.863);
--secondary: oklch(0.832 0.064 57.247);
--secondary-foreground: oklch(0.308 0.058 54.102);
--accent: oklch(0.832 0.064 57.247);
--accent-foreground: oklch(0.308 0.058 54.102);
--destructive: oklch(0.376 0.129 32.924);
--destructive-foreground: oklch(0.863 0.065 31.385);
--ring: oklch(0.82 0.062 239.577);
--chart-1: oklch(0.82 0.062 239.577);
--chart-2: oklch(0.832 0.064 57.247);
--chart-3: oklch(0.832 0.064 57.247);
--chart-4: oklch(0.854 0.055 57.441);
--chart-5: oklch(0.82 0.065 239.646);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 231.651);
--foreground: oklch(0.977 0.004 238.42);
--muted: oklch(0.173 0.015 57.094);
--muted-foreground: oklch(0.708 0.002 58.329);
--popover: oklch(0.131 0.013 232.184);
--popover-foreground: oklch(0.985 0.003 238.4);
--card: oklch(0.131 0.013 232.184);
--card-foreground: oklch(0.985 0.003 238.4);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.062 239.577);
--primary-foreground: oklch(0.297 0.055 242.863);
--secondary: oklch(0.832 0.064 57.247);
--secondary-foreground: oklch(0.308 0.058 54.102);
--accent: oklch(0.832 0.064 57.247);
--accent-foreground: oklch(0.308 0.058 54.102);
--destructive: oklch(0.651 0.199 33.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.062 239.577);
--chart-1: oklch(0.82 0.062 239.577);
--chart-2: oklch(0.832 0.064 57.247);
--chart-3: oklch(0.832 0.064 57.247);
--chart-4: oklch(0.854 0.055 57.441);
--chart-5: oklch(0.82 0.065 239.646);
}