Skip to content
style-hub v1.0.0 / 465d1c4aedd1

Shared styles for zhous08.me

One stylesheet for every hub. Tokens and components follow the sh- prefix. The default theme is neutral and supports a dark color scheme; the donate theme is a warm light palette used only on donate.zhous08.me.

Include

<link rel="stylesheet"
      href="https://style.zhous08.me/v1/index.css">

<!-- donate only -->
<link rel="stylesheet"
      href="https://style.zhous08.me/v1/themes/donate.css">
<html data-theme="donate">

Keep a small inline fallback in each consuming project so login pages stay readable when this host is unreachable. Pin the immutable copy in /releases/1.0.0/index.css if you need a frozen snapshot.

Dark mode Omit data-theme on hub pages to follow the operating system preference. Setting data-theme="donate" always forces the light warm palette.

Color tokens

Hover a swatch to read its value. Every pair used by a component passes WCAG AA, verified by npm run check:contrast.

--sh-backgroundpage background
--sh-surfacecards, inputs
--sh-surface-althover, table head
--sh-textbody text
--sh-text-mutedsecondary text
--sh-borderhairlines
--sh-border-stronginput borders
--sh-primarysolid fill
--sh-primary-hoverfill hover
--sh-linktext links
--sh-successsuccess
--sh-warningwarning
--sh-dangerdanger
--sh-focusfocus ring

Typography

System font stack, eight steps from 12px to 32px. Line height is tight for headings and normal for body text.

h1 / 28px / 600

Build at the edge

h2 / 22px / 600

Build at the edge

h3 / 18px / 600

Build at the edge

body / 16px / 400

Regular body text keeps a comfortable measure and a 1.5 line height. Links are underlined and use the link token.

small / 14px

Secondary paragraph used inside cards and forms.

caption / 12px muted

Metadata line for timestamps and identifiers.

monospace

link:cv 2026-11-18T13:43Z 1,204

Buttons

One filled action per view. Secondary is a bordered surface button, danger is reserved for destructive confirmation.

Variants
Sizes and states
Block button

Form controls

Inputs use the stronger border token so the control boundary reaches 3:1 against the surface. Errors never move the layout: help and error text share the same slot height.

Shown in the directory and on invoices.
This slug is reserved.
Amounts are always recalculated on the server.
Enter a whole number of euros.

Data display

Cards group related content; tables and badges carry status without icons.

Cumulative amount

2,410.00 EUR

Gross basis, calendar year 2026

Orders

37

4 refunded, 2 pending

Webhook health

VerifiedLast event 3m ago

Signature checked with the standard webhook scheme.

Reference Project Status Amount Created
ord_8f2c donate Paid 15.00 2026-11-18 09:14
ord_8f2b donate Pending 50.00 2026-11-18 08:02
ord_8f29 notes Refunded 5.00 2026-11-17 21:40
Badges
Neutral Info Success Warning Danger
Alerts
Sandbox modeNo real charges are created while PAYMENTS_MODE is sandbox.
Signature verifiedThe webhook payload matched the configured secret.
Exchange rate pendingThe order is recorded and will be converted on the next cron run.
RejectedThe amount is below the configured minimum.
Tabs
Pagination

Utilities

Stacks, clusters, grids and the visually hidden helper cover most layout needs without a framework.

.sh-stack--3
OneTwoThree
.sh-cluster
alphabetagamma
.sh-truncate

https://zhous08.me/a-very-long-slug-that-would-otherwise-wrap