@andrewjypark/subatomic-design-tokens-all
v1.0.0
Published
All Subatomic design token themes (core, chocolate, strawberry) bundled together, scoped by [data-theme] for runtime theme switching
Downloads
19
Readme
@andrewjypark/subatomic-design-tokens-all
All Subatomic design token themes (core, chocolate, strawberry) bundled into one package, scoped by [data-theme] so they can coexist for runtime theme switching.
Install
npm install @andrewjypark/subatomic-design-tokens-allUsage
Import the CSS once:
@import "@andrewjypark/subatomic-design-tokens-all/css/_variables.css";
@import "@andrewjypark/subatomic-design-tokens-all/css/abstracts.css";core tokens apply by default via :root. To activate a theme, set
data-theme on <html> or any container element:
<html data-theme="chocolate">// Switch themes at runtime
document.documentElement.setAttribute("data-theme", "strawberry");Available themes: core, chocolate, strawberry
License
MIT
