@khaos-systems/helm
v0.3.1
Published
This package contains the Helm design system.
Downloads
106
Readme
Helm (Matter Design System)
https://www.npmjs.com/package/@khaos-systems/helm
This package contains the Matter design system and Storybook site extracted from anchor.
Command Cheat Sheet
npm installnpm run storybook- run Storybook locallynpm run build-storybook- static Storybook buildnpm run build- build library output todist/npm run gen:tokens- regeneratesrc/tokens.cssfromtokens/tokens.dark.json
To publish a new version:
npm version patch # or minor/major
npm run prepare
npm run publishUsage in another app
Install from workspace and import:
import { MtButton } from '@khaos-systems/helm';
import '@khaos-systems/helm/styles.css';Tailwind-native consumption (recommended)
For apps that already compile Tailwind, consume Helm through Tailwind so client
builds generate only the utilities they use (including token-based classes like
bg-surface-panel).
In your app stylesheet (compiled by Tailwind):
@import "tailwindcss";
@import "@khaos-systems/helm/tailwind.css";Notes:
@khaos-systems/helm/tailwind.cssincludes Helm tokens and@sourcerules that point to Helm component source files.- Keep
tailwind.cssimport in the app pipeline so utilities likebg-...,text-..., andborder-...are generated from Helm color tokens when used by the app.
Precompiled CSS consumption
If you are not compiling Tailwind in the client app, continue importing:
import '@khaos-systems/helm/styles.css';