npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shift3-design-system

v0.1.0

Published

Shift3 design system — design tokens (CSS / SCSS / TS) and Vue 3 components consumed as raw source by a Vue/Vite build.

Readme

@shift3/design-system

Design tokens and Vue 3 components for Shift3 products. Tokens ship as CSS custom properties, SCSS variables, and a TypeScript constant export. Components ship as raw .vue source — consumers need a Vue 3 + Vite (or compatible) build pipeline.

Install

npm install @shift3/design-system vue

vue@^3.5 is a peer dependency.

Use

1. Load a theme

// main.ts
import '@shift3/design-system/css/theme-light.css'
// or: '@shift3/design-system/css/theme-high-contrast-light.css'

A theme defines every CSS custom property (--surface-canvas, --text-default, --brand-primary, …) under :root and a [data-theme="..."] selector. Switch themes by toggling the attribute on <html>.

2. Import a component

<script setup lang="ts">
import ButtonPrimary from '@shift3/design-system/components/ButtonPrimary/ButtonPrimary.vue'
import '@shift3/design-system/components/ButtonPrimary/ButtonPrimary.scss'
</script>

<template>
  <ButtonPrimary label="Save" />
</template>

Component .scss files reference the package's own dist/scss/_tokens.scss and src/scss/mixins/* via relative paths, so they resolve correctly from inside node_modules with no extra configuration.

3. (Optional) Use SCSS tokens directly

@use "@shift3/design-system/scss/tokens" as *;

.my-thing {
  color: $text-default;
  background: $surface-panel;
}

4. (Optional) Read token names in TypeScript

import { tokenNames } from '@shift3/design-system'

Exports

| Specifier | Contents | |-----------|----------| | @shift3/design-system | TS constants (tokenNames, etc.) | | @shift3/design-system/css/theme-light.css | Light theme as CSS custom properties | | @shift3/design-system/css/theme-high-contrast-light.css | High-contrast light theme | | @shift3/design-system/scss/tokens | SCSS variables aliased to the CSS custom properties | | @shift3/design-system/scss/mixins/* | levitation, typography, border, etc. | | @shift3/design-system/components/<Name>/<Name>.vue | Raw Vue 3 SFC | | @shift3/design-system/components/<Name>/<Name>.scss | Per-component styles | | @shift3/design-system/manifest.json | Machine-readable token + component inventory |

Requirements for consumers

  • A Vue 3 toolchain that understands .vue SFCs (Vite, Nuxt, vue-cli).
  • A SCSS compiler if you import any .scss from this package (most Vite setups include sass as a dev dependency).

Design rationale

| Scale | Ratio | Why | |-------|-------|-----| | Spacers | Golden ratio (φ ≈ 1.618) | Fewer steps cover the full range | | Radii | Fibonacci / golden ratio | 6 values cover all rounding needs | | Shadows | 2× progression | Larger jumps for perceptible depth | | Typography | Major third (~1.25) | Finer control for readable text |

All scales use t-shirt sizing (3xs, 2xs, xs, s, m, l, xl, …). For pill shapes use border-radius: 9999px directly.

Development (for contributors to this package)

npm install
npm run build:tokens
npm --prefix server install
npm run dev          # docs site at http://localhost:3000

See BRAND.md for the rebranding workflow and CLAUDE.md for the full architecture overview.

License

MIT — see LICENSE.