Theming
Colors, pens and fonts are CSS variables you can change.
The theme is one stylesheet that the CLI merges into your Tailwind CSS file. Every color is a CSS variable that starts with --ll-. The shadcn variables (--background, --primary, --border and the rest) point at those, so shadcn utility classes such as bg-background and text-muted-foreground keep working.
Change a color
Override the --ll- variable after the theme, not the shadcn alias. The drawings read the --ll- values.
:root {
--ll-marker: #4a7bd9; /* primary fill */
--ll-desk: #cfd8e6; /* page background */
}The main variables
| Variable | Used for |
|---|---|
--ll-desk | The page background |
--ll-paper | Sheets and cards |
--ll-slip | Popovers and small slips |
--ll-ink | Text and outlines |
--ll-ink-soft | Secondary text |
--ll-marker | Primary fills, such as the default button |
--ll-hi | Highlighter: hover, selection, secondary fills |
--ll-red | Destructive actions and errors |
--ll-green | Success and check marks |
--ll-focus | The focus ring |
--ll-pencil-mark | Light borders and rules |
Check contrast when you change --ll-ink, --ll-paper, --ll-desk or --ll-marker. Text is ink on paper, ink on desk and ink on marker.
Fonts
Wobko uses one hand-drawn typeface, Kevin Sans, in three roles, and IBM Plex Mono for code.
| Variable | Role | Tailwind class |
|---|---|---|
--font-hand | Interface text | font-sans |
--font-script | Titles | font-script |
--font-type | Small labels and stamps | font-type |
--font-mono | Code | font-mono |
Kevin Sans has Latin letters only. For another script, put a fallback in the stack:
:root {
--font-hand: "Kevin Sans Hand", "Kevin Sans", "KaiTi", cursive;
--font-script: "Kevin Sans Script", "Kevin Sans", "KaiTi", cursive;
}Dark mode
There is no dark theme yet. The palette is drawn for light paper. CodeBlock has a dark tone you can use on its own.