Skip to content
snowztechPublic

About

Snowztech design system. Tokens, components, and the snowflake mark behind every product.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

snowztech / ui

The snowztech design system. Static HTML, React, anywhere.

npm @snowztech/ui npm @snowztech/ui-css license


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) or powder (Geist, with Geist Mono for labels, numbers and code).
  • data-sn-accent: ice (default, blue), glacier (turquoise) or neutral (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.

React

pnpm add @snowztech/ui
import "@snowztech/ui/styles.css";
import { MarkSnowflake } from "@snowztech/ui";

<MarkSnowflake size={32} />

Static HTML

<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.

Packages

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.

Repo layout

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

Develop

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 width

See 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.

Publish

Changesets for versioning.

pnpm changeset
pnpm changeset version
pnpm -r publish

License

MIT · Lucas Neves Pereira

About

Snowztech design system. Tokens, components, and the snowflake mark behind every product.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages