@dstally/tokens
v1.2.1
Published
Tally design tokens: CSS custom properties, base styles, fonts and brand assets.
Readme
@dstally/tokens
import '@dstally/tokens/styles.css'That one import gives you every --* variable, the element baseline (body, headings, links, focus rings), the .tally-num / .tally-overline / .tally-container helpers, and the webfonts.
Dark is :root. Light is [data-theme="light"] on any ancestor.
Files
tokens/colors.css— indigo / amber / blue / neutral ramps, Okabe-Ito chart palette, semantic aliases for both themes.tokens/typography.css— scale, weights, timer sizes.tokens/spacing.css— 4px grid, layout widths, control heights.tokens/elevation.css— radii, shadows, blur, scrim.tokens/motion.css— durations, easings, reduced-motion.tokens/fonts.css— font stacks. Currently loads Instrument Sans + JetBrains Mono from Google Fonts; swap for local@font-facewhen licensed files exist.tokens/base.css— element defaults.assets/—logo.svg(64px+),logo-small.svg(16/32), PNG exports 16→1024.
Rails
Copy styles.css and tokens/ into app/assets/stylesheets/tally/ (or vendor the package via importmap/jsbundling) and include it before application styles. Reports and emails then use the same variables as the apps.
Rules
Use the semantic alias (--surface-card, --text-body, --action-primary), never the base ramp (--neutral-850). Charts and project colours use --chart-1…8 only.
