|
5 | 5 | * `bun run tokens:generate` rather than approximated, so the |
6 | 6 | * window someone sets up in looks like the product it turns into: Figtree, OpenBot's lavender frame |
7 | 7 | * with a white card on it, its near-black primary button, its periwinkle focus ring, its 10px radius |
8 | | - * and its type scale (on a 15px base, as the app sets text). The app's shadcn names are kept as |
| 8 | + * and its type scale (Tailwind's, in whole pixels, as the app's). The app's shadcn names are kept as |
9 | 9 | * written (`--background`, `--card`, `--muted-foreground`, ...) and the names these screens were |
10 | 10 | * first written against are mapped onto them below, so every rule still reads one vocabulary. |
11 | 11 | * |
|
46 | 46 | --radius-lg: var(--radius); |
47 | 47 | --radius-xl: calc(var(--radius) * 1.4); |
48 | 48 |
|
49 | | - /* OpenBot's type scale: Tailwind's sizes times 15/16 (theme.css `@theme`). */ |
50 | | - --text-xs: 0.703125rem; /* 11.25px */ |
51 | | - --text-sm: 0.8203125rem; /* 13.125px */ |
52 | | - --text-base: 0.9375rem; /* 15px */ |
53 | | - --text-lg: 1.0546875rem; /* 16.875px */ |
54 | | - --text-2xl: 1.40625rem; /* 22.5px */ |
55 | | - --text-3xl: 1.7578125rem; /* 28.125px */ |
| 49 | + /* OpenBot's type scale: Tailwind's own, in whole pixels, as the app's (theme.css). */ |
| 50 | + --text-xs: 0.75rem; /* 12px */ |
| 51 | + --text-sm: 0.875rem; /* 14px */ |
| 52 | + --text-base: 1rem; /* 16px */ |
| 53 | + --text-lg: 1.125rem; /* 18px */ |
| 54 | + --text-2xl: 1.5rem; /* 24px */ |
| 55 | + --text-3xl: 1.875rem; /* 30px */ |
56 | 56 |
|
57 | 57 | /* Tailwind's shadows, which the app's cards and popovers use. */ |
58 | 58 | --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05); |
|
0 commit comments