docs: README styleguide section — rules, live URL, app usage

This commit is contained in:
James 2026-03-02 04:17:04 -05:00
parent d9e5b03e3d
commit 9d2c39f1a8
2 changed files with 17 additions and 0 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
## Styleguide
**vault1984.css** is the single global stylesheet for all vault1984 web surfaces — marketing site (`vault1984-web`) and the app UI (`vault1984`).
- Live: https://vault1984.com/styleguide.html
- Source: `vault1984-web/vault1984.css`
### Rules (no exceptions)
1. **One stylesheet.** `vault1984.css` only. No Tailwind, no inline styles, no `<style>` blocks.
2. **One rule per class.** If you need a variant, add a modifier class (e.g. `.card.gold`), not a new inline style.
3. **One width.** `--width: 1280px` via `.container`. Never hardcode a max-width anywhere else.
4. **One padding.** `--pad: 2rem` via `.container`. Never hardcode horizontal padding.
5. **CSS variables for everything.** Colors, spacing, radius, fonts — all via `var(--*)`.
### To use in vault1984 app
Copy or symlink `vault1984.css` into `vault1984/web/` and embed it. The token set (colors, fonts, radius) is shared — app UI should feel identical to the marketing site.

Binary file not shown.