Publish the docs site at style.lvl0.xyz #3
Labels
No labels
bug
ci
docs
enhancement
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
Reference: lvl0/ui#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The package (#2) is the source of truth for machines; this is the source of truth for people.
The point of the repo is to stop having to read three other projects and guess which one
applies the style correctly — that only works if there is a page to look at.
Scope
A static page showing the system as rendered output, not as a values table:
charts 1–5 — each labelled with its token name and oklch value, and copyable
.glow-red,.glow-red-text,.glow-bordeaux,.glow-bordeaux-line. These are the hardest part to get right from a values list, sincethe reason
.glow-bordeauxemits primary light is invisible until you see it against blackbordeaux for dividers, resting borders, recessed chrome
of the whole system in one screen
The page should be built with the package it documents, so it breaks visibly if the package does.
Hosting
style.lvl0.xyz. Static output; the existinglvl0-websitedeploy approach is the obviousmodel to follow.
Depends on
Acceptance
@lvl0/uirather than duplicating its CSSDone — live at https://style.lvl0.xyz
All acceptance criteria met:
colours, values click-to-copy
that contrast is full red against bordeaux, never two brightnesses of red
@lvl0/uirather than duplicating its CSS —docs/styles.cssimports../src/index.css; verified in the compiled outputcontaining all six utilities, the
@font-face, and both palette tokensShipped as an nginx image (
forge.lvl0.xyz/lvl0/ui), built by.forgejo/workflows/build.ymlon push to main and onv*tags. Running in Arcane behindPangolin.
Deployment bug found and fixed (v0.1.1)
The first deploy served the HTML but 404'd on the stylesheet, so the page rendered unstyled.
Cause: the regex
locationblock for static assets had norootdirective. Regex locationstake priority over the prefix
location /, so every.cssrequest matched it and nginx fellback to its compiled-in default path rather than
/usr/share/nginx/html.The block was copied from
lvl0-website, which carries the same latent flaw — worthchecking there before it surfaces.
Also relaxed
server_namefromstyle.lvl0.xyzto_, since behind a reverse proxy aforwarded
Hostthat does not match would otherwise fall through to nginx's default server.