@vitral/styles
v0.2.0
Published
Framework-agnostic component CSS and class maps for Vitral, written against theme tokens.
Maintainers
Readme
@vitral/styles
Every Vitral component's CSS and class map, written against theme tokens.
A style is plain data: the stylesheet, and which class each part carries in which state. The Vue components read it, and a React or Angular adapter reads the same object, so the markup contract is written once.
import { buttonStyle, classOf } from '@vitral/styles';
classOf(buttonStyle, 'root', { severity: 'primary', variant: 'filled' });The whole thing is also shipped as one stylesheet, for a page that wants the look without the JavaScript:
<link rel="stylesheet" href="/node_modules/@vitral/styles/dist/vitral.css" />LGPL-3.0-or-later. Part of the Vitral monorepo.
