ident
All repositories: gitoria
2.5 KB
// tokens.hl — THE WorldAPI design tokens (ticket antcolony#3, mission 021). Hand-written; this is// the one source. Every Hybriel app carries a verbatim copy as `shared/tokens.hl` (vendored like// plugins/; source: loreana /media/STORAGE/projects/worldapi-tokens/tokens.hl — edit THERE, then// `cp` it into each app, see that folder's README.md).//// A token is a css variable declared as a VALUE (hl:web/css `var()`): the stylesheet walker names// it after its member (`blueDark` → `--blue-dark`), writes it into the sheet's one `:root`, and turns// every use into `var(--blue-dark)`. `static` makes it importable. An app's styles.hl imports the// tokens it uses and writes them as members://// import { var } from 'hl:web/css'// import { purple, colorText, colorBackground } from './shared/tokens.hl'// colorAccent = var(purple) // the app's accent — the ONLY token an app sets// body { color = colorText background = colorBackground }//// (hl:web does this itself since hybriel#39; the local patch of mission 021 is gone)import { var } from 'hl:web/css'// ---- the palette (VS Code Dark+) ----------------------------------------------------------static dark = var('rgb(25, 30, 35)')static darker = var('rgb(15, 20, 25)')static light = var('rgb(195, 200, 205)')static lighter = var('rgb(245, 250, 255)')static blueDark = var('#569bd4')static greenDark = var('#4ec9b0')static yellow = var('#dcdcaa')static orange = var('#ce9178')static red = var('#f44747')static purple = var('#c586c0')static blueLight = var('#9cdcfe')static greenLight = var('#b5cea8')// ---- semantic tokens: components and rules use only these -----------------------------------static colorBackground = var(dark)static colorBackgroundSunken = var(darker)static colorSurface = var('rgb(35, 40, 45)')static colorBorder = var('rgb(70, 75, 80)')static colorText = var(light)static colorTextStrong = var(lighter)static colorTextMuted = var('rgb(145, 150, 155)')static colorAction = var(blueDark)static colorSuccess = var(greenDark)static colorWarning = var(yellow)static colorDanger = var(red)static colorSpecial = var(purple)// the accent: per app (tickets purple, ident orange, tracker greenDark, gitoria blueDark, notes// yellow, calendar blueLight, antcolony greenLight). An app declares its own `colorAccent =// var(<palette token>)` in styles.hl; hl:web writes it after this default, so the app's wins.static colorAccent = var(colorAction)// text ON the accent (buttons, badges, selected filters)static colorAccentText = var(darker)
Branches
- mainmain branch
Latest commits
- fe183516ident mission 009 (3/4): let only where reassigned — 293 never-reassigned lets are plain declarations; kept: reassigned, loop bodies, names of a file member, a name declared twice in one function; same outputmre
- d2e7f91bident mission 009 (2/4): one lib file per topic (login, accounts, identities, apps, invites, selector, notify + helpers, util), function routes as thin wrappers in lib/api.hl, project.hl = the map; same outputmre
- 91017164ident mission 009 (1/4): file moves — the root .hl files into lib/ (api.hl → lib/api-helpers.hl), styles.hl → components/styles.hl; imports adjusted, no other changemre
- f8bdcbc2ident: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); all gates greenmre
- ff78726cident: Hybriel master 190aa11d (fc838894 GC correctness, #127, #126 closure scopes); gates all greenmre
- a3a7d21aident: Hybriel master 8efba065 (#126 GC by bytes, #48 lambda params copy); session-writing lambdas take &sessionmre
- 98226b41antcolony#40: mission references point to the moved missionsmre
- ff805b9aantcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
- 51a7bcdfident: Hybriel master 73267707 (#122); /code uses the new page() signature; pending address passed as parameter; once-checksmre
- 836f644fident#24: installable app (manifest, service worker, data-free offline /start), own iconmre
- 8bebbbf2deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- cc063ea2deploy.sh: never send .git or .gitignore to Byrodinmre
- 81b15b7bState of 2026-09-27, before the move to gitoriamre