gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5e090ffd5e090ffdRecord IC28 review evidence and gate resultsmre5e090ffd/shared/base.hl

1.4 KB

  1. // base.hl — THE BASE LOOK of components.hybriel (ticket #15): black, white and four greys for nuances. The one place where they
  2. // are named. The library is generic: every component renders in these by default (light: white background, black text), with no
  3. // palette of any app and no decorative frames; an app's own look comes from a theme on top (WorldAPI: layouts.worldapi.org).
  4. //
  5. // A component's browser module cannot import this file, so each component writes the VALUE as the fallback of a semantic token,
  6. // `var(--color-text, #000)`: a bare copy shows the base look, an app that declares the tokens restyles it. tests/browser.mjs checks
  7. // that every colour in a component file is one of these, and that every rendered colour on the demo pages is a grey.
  8. // The site (components/styles.hl, project.hl) imports them like tokens: a member is written as `--<kebab-name>` into `:root`.
  9. import { var } from 'hl:web/css'
  10. static black = var('#000')
  11. static greyDark = var('#555') // muted text, line numbers, focus rings, the dimmed page behind a modal
  12. static grey = var('#999') // functional lines (a drop zone's dashed border)
  13. static greyLight = var('#ddd') // a strip or block on a field (editor toolbar, code), hover on a field, the range between two days
  14. static greyLighter = var('#f2f2f2') // fields and tiles on the white page (inputs, editors, day cells), hover on white
  15. static white = var('#fff')

Branches

Latest commits

  • 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
  • c71a0abePreserve consumer theme specificity with nested tag rulesmre
  • 64a2bc27Document CS23b style formatting proof and review statusmre
  • a72b57cficons: nest Style rules in the language's formmre
  • 927616e2pagination: nest Style rules in the language's formmre
  • aab8ad29code-editor: nest Style rules in the language's formmre
  • ba30727afile-upload: nest Style rules in the language's formmre
  • 42fefa4emodal: nest Style rules in the language's formmre
  • 6fd953e3range-picker: nest Style rules in the language's formmre
  • f661951ddate-picker: nest Style rules in the language's formmre