tracker
All repositories: gitoria
2.7 KB
// styles.hl — all of the app's CSS, served as /__hl/app.css. Components carry no Style// blocks: markup is domain tags, this file lays them out.//// TOKENS: the WorldAPI palette + semantic tokens are declared in `shared/tokens.hl` as// hl:web css variables, vendored verbatim from ident.worldapi.org (see that project's// README "Design tokens"). This file imports the tokens it uses and writes them as members;// the app sets only its accent (greenDark, per CONCEPT.md / antcolony README "look and style").//// In a styles file a bare name is a TAG (camelCase -> kebab: `emptyState` is `empty-state`),// a quoted name is a selector written verbatim. MOBILE FIRST: every rule is the phone's; the// one min-width block adds the wide layout.import { var } from 'hl:web/css'import { greenDark, colorText, colorBackground, colorTextStrong, colorBackgroundSunken, colorTextMuted, colorAccentText, colorBorder, colorDanger, colorSurface } from './shared/tokens.hl'colorAccent = var(greenDark) // the app's accent: the only token this app sets'*,*::before,*::after' { boxSizing = 'border-box' }html { colorScheme = 'dark' }body { margin = '0' font = '16px/1.5 system-ui, sans-serif' color = colorText background = colorBackground }a { color = colorAccent textDecoration = 'none' }'a:hover' { textDecoration = 'underline' }h1 { margin = '0' fontSize = '1.3rem' lineHeight = '1.3' color = colorTextStrong }applicationHeader { display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem 1rem' padding = '.6rem 1rem' background = colorBackgroundSunken borderBottom = '1px solid ' + colorBorder }'application-header .brand' { fontWeight = '800' fontSize = '1.15rem' color = colorAccent }main { padding = '1rem' }homeCard { display = 'grid' gap = '1rem' maxWidth = '34rem' margin = '0 auto' padding = '1.2rem 1rem' background = colorSurface border = '1px solid ' + colorBorder borderRadius = '.6rem' }'home-card p' { margin = '0' }accountBar { display = 'flex' flexWrap = 'wrap' alignItems = 'center' justifyContent = 'space-between' gap = '.5rem' }userName { fontSize = '.95rem' color = colorTextMuted overflowWrap = 'anywhere' }'.error' { color = colorDanger }'button,a.button' { display = 'inline-block' font = 'inherit' fontWeight = '600' padding = '.6rem 1.1rem' color = colorAccentText background = colorAccent border = '1px solid ' + colorAccent borderRadius = '.4rem' cursor = 'pointer' justifySelf = 'start' textAlign = 'center' }'button:hover,a.button:hover' { filter = 'brightness(1.1)' textDecoration = 'none' }'button.quiet' { color = colorText background = 'transparent' borderColor = colorBorder }'@media (min-width: 40rem)' = {main = { padding = '3rem 1rem' }'home-card' = { padding = '1.8rem 2rem' }h1 = { fontSize = '1.5rem' }}
Branches
- mainmain branch
Latest commits
- 3691e176tracker#1: empty tracker with the ident login (state of 2026-09-27)mre