components
All repositories: gitoria
1.4 KB
// base.hl — THE BASE LOOK of components.hybriel (ticket #15): black, white and four greys for nuances. The one place where they// are named. The library is generic: every component renders in these by default (light: white background, black text), with no// palette of any app and no decorative frames; an app's own look comes from a theme on top (WorldAPI: layouts.worldapi.org).//// A component's browser module cannot import this file, so each component writes the VALUE as the fallback of a semantic token,// `var(--color-text, #000)`: a bare copy shows the base look, an app that declares the tokens restyles it. tests/browser.mjs checks// that every colour in a component file is one of these, and that every rendered colour on the demo pages is a grey.// The site (components/styles.hl, project.hl) imports them like tokens: a member is written as `--<kebab-name>` into `:root`.import { var } from 'hl:web/css'static black = var('#000')static greyDark = var('#555') // muted text, line numbers, focus rings, the dimmed page behind a modalstatic grey = var('#999') // functional lines (a drop zone's dashed border)static greyLight = var('#ddd') // a strip or block on a field (editor toolbar, code), hover on a field, the range between two daysstatic greyLighter = var('#f2f2f2') // fields and tiles on the white page (inputs, editors, day cells), hover on whitestatic white = var('#fff')
Branches
Latest commits
- 1b7413beIgnore detached media events and space demo option outputsmre
- ca3b4959Re-vendor complete Hybriel plugins and runtime to day44mre
- df9e7df9Last-item checks run in the browser gate (components#26 fixed on day41); media-player loop is a plain Booleanmre
- 895a5afcRe-vendor complete Hybriel plugins and runtime to day41mre
- 16006bb3Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 88397fc3Re-vendor complete Hybriel plugins and runtime to day39mre
- 9b872cedRecord IC28 deployment and live icon verificationmre
- 46fefaa7Count the icons entry in the offline home-page checkmre
- c7e14cabRecord IC28 rerun and unchanged-main baseline comparisonmre
- 5e090ffdRecord IC28 review evidence and gate resultsmre
- adfe2c4dAdd shuffle, repeat and repeatOne shared iconsmre
- c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre
- bd4aa808Record VL24 deployment and live verificationmre
- e5b98ecfRun virtual-list gate before deploymentmre
- 2e9b4a8evirtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)mre
- 69954249Align all plugin sources with Hybriel day38bmre
- f740f666Re-vendor components to Hybriel set day38bmre
- 8176eb14Record CS23b deployment and live verificationmre
- 84e3ddaaRemove blank line before pagination Style closing bracemre
- a92298ddRecord exact CSS and same-date proof after specificity reviewmre