@dillingerstaffing/strand
v0.17.4
Published
Strand Design Language tokens - CSS custom properties and JS constants
Maintainers
Readme
@dillingerstaffing/strand
Design tokens for the Strand Design Language. CSS custom properties + typed JavaScript constants. Framework-agnostic. Zero runtime.
Install
npm install @dillingerstaffing/strandCSS Tokens
@import '@dillingerstaffing/strand/css/reset.css';
@import '@dillingerstaffing/strand/css/tokens.css';
@import '@dillingerstaffing/strand/css/base.css';Use tokens in your CSS:
.card {
background: var(--strand-surface-elevated);
border-radius: var(--strand-radius-lg);
box-shadow: var(--strand-elevation-1);
padding: var(--strand-space-6);
color: var(--strand-gray-600);
font-family: var(--strand-font-sans);
}JavaScript Tokens
import { colors, spacing, typography } from '@dillingerstaffing/strand';Bulma Integration
Make Bulma components adopt the Strand aesthetic:
<link rel="stylesheet" href="@dillingerstaffing/strand/bulma/strand-bulma-compat.css">Or in Sass: @use "@dillingerstaffing/strand/bulma/strand-bulma-use". See Using Strand with Bulma.
Links
Created by Dillinger Staffing
