@hypoth-ui/css
v1.0.2
Published
CSS layers and base styles for the hypoth-ui design system
Downloads
697
Maintainers
Readme
@hypoth-ui/css
CSS layers and base styles for the hypoth-ui design system. Provides a structured CSS foundation using native @layer for reset, tokens, base styles, component styles, utilities, and overrides.
Installation
npm install @hypoth-ui/cssUsage
Full Bundle
import '@hypoth-ui/css';Or in HTML:
<link rel="stylesheet" href="node_modules/@hypoth-ui/css/dist/index.css">Individual Layers
import '@hypoth-ui/css/layers/reset';
import '@hypoth-ui/css/layers/tokens';
import '@hypoth-ui/css/layers/base';
import '@hypoth-ui/css/layers/components';
import '@hypoth-ui/css/layers/utilities';
import '@hypoth-ui/css/layers/overrides';CSS Layer Order
The layers are ordered from lowest to highest specificity:
reset-- Browser reset / normalizetokens-- Design token custom propertiesbase-- Base element stylescomponents-- Component stylesutilities-- Utility classesoverrides-- Consumer overrides (highest priority)
Documentation
See the main README for full documentation and architecture overview.
License
MIT
