@surstromming/design
v0.1.1
Published
Everything related to design system, including colors, typography, and spacing.
Maintainers
Readme
@surstromming/design
Design values (colors, fonts, screens, spacing) exposed as SCSS getters, plus
the app-shell layout() mixin and the one CSS-emitting stylesheet, reset.scss.
Dependency graph
graph LR
design["@surstromming/design"]Usage
@use '@surstromming/design' as design;
.root {
background-color: design.color(primary); // var(--primary, <light value>)
padding: design.spacing(2); // calc(var(--spacing, 0.25rem) * 2)
font-family: design.font(sans); // plain stack, not themable
@include design.screen(md) { /* md and up */ }
}An unknown token name fails the build. Theming overrides the custom
properties under data-theme on the root.
reset.scss— modern reset; loads the font, putsfont/background/foregroundonbody. The app imports it once inmain.ts; component styles must never@useit (or anything CSS-emitting — every SFC style block compiles separately and would duplicate it).layout($selector, $sidebarInset)—grid-template-areasapp shell over semantic direct childrenaside/header/main.
