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.

css
:root {
  --ll-marker: #4a7bd9; /* primary fill */
  --ll-desk: #cfd8e6; /* page background */
}

The main variables

VariableUsed for
--ll-deskThe page background
--ll-paperSheets and cards
--ll-slipPopovers and small slips
--ll-inkText and outlines
--ll-ink-softSecondary text
--ll-markerPrimary fills, such as the default button
--ll-hiHighlighter: hover, selection, secondary fills
--ll-redDestructive actions and errors
--ll-greenSuccess and check marks
--ll-focusThe focus ring
--ll-pencil-markLight 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.

VariableRoleTailwind class
--font-handInterface textfont-sans
--font-scriptTitlesfont-script
--font-typeSmall labels and stampsfont-type
--font-monoCodefont-mono

Kevin Sans has Latin letters only. For another script, put a fallback in the stack:

css
: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.