Everything is set in JetBrains Mono by default. Two optional attributes on <html>:
<html data-sn-mode="powder" data-sn-accent="glacier">data-sn-mode:frost(default, all JetBrains Mono) orpowder(Geist, with Geist Mono for labels, numbers and code).data-sn-accent:ice(default, blue),glacier(turquoise) orneutral(no color). Hover and soft shades are derived.
CSS is the contract. The same sn-* classes power the React build, vanilla HTML pages, and any future Vue/Svelte/Solid wrapper. Pick the package that matches your stack.
pnpm add @snowztech/uiimport "@snowztech/ui/styles.css";
import { MarkSnowflake } from "@snowztech/ui";
<MarkSnowflake size={32} /><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@snowztech/[email protected]/dist/fonts.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@snowztech/[email protected]/dist/snowztech-ui.min.css">
<script type="module"
src="https://cdn.jsdelivr.net/npm/@snowztech/[email protected]/dist/snowztech-ui.esm.js"></script>
<button class="sn-btn sn-btn--primary">Ship it</button>The JS file is optional. Only needed for stateful bits (copy button, theme toggle). Plain styling needs no JS.
| Package | What it is | When to use |
|---|---|---|
@snowztech/ui-css |
Tokens + component classes | Static HTML, Vue, Svelte, anything non-React |
@snowztech/ui-js |
Vanilla bindings for data-sn-* |
Static HTML that needs interactivity |
@snowztech/ui |
React components | React, Next.js, Remix, Vite |
Full docs and live examples: see apps/docs or run pnpm dev:docs.
packages/
ui-css/ # @snowztech/ui-css tokens + component classes (CSS)
ui-js/ # @snowztech/ui-js vanilla bindings (TS)
ui/ # @snowztech/ui React components
apps/
docs/ # Next.js docs site
pnpm install
pnpm dev # all packages + docs in watch mode
pnpm dev:docs # just the docs
pnpm build # build everything
pnpm typecheck
pnpm lint:css # components use tokens, never raw radius, timing or color
pnpm test # design rules on every docs page: heights, radii, contrast, phone widthSee CONTRIBUTING.md for how changes get into the system.
The docs site dogfoods all three packages, including a /demo.html page proving the no-bundler path works.
Changesets for versioning.
pnpm changeset
pnpm changeset version
pnpm -r publishMIT · Lucas Neves Pereira