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

@torio-luxury/design-tokens

v1.0.0

Published

Torio Luxury design tokens — Style Dictionary v4 source of truth for color, typography, spacing, radius, elevation. Outputs CSS, Tailwind preset, Dart, and flat JSON.

Readme

torio-luxury-design-tokens

Style Dictionary v4 source-of-truth for Torio Luxury design tokens — colors, typography, spacing, radius, elevation. Builds CSS, Tailwind preset, Dart, and flat JSON outputs consumed by all three frontends (web-landing, web-admin, mobile).

Brand values were signed off 2026-04-29 (see planning workspace docs/05). Any change is a brand-version bump.

Layout

tokens/
├── primitive/        raw values — never referenced directly by UI code
│   ├── color.json      gold/charcoal/neutral/feedback scales
│   ├── space.json      4px-based scale + radius
│   └── typography.json font family/size/lineHeight/weight/letterSpacing
└── semantic/         named usage tokens — UI references these
    ├── color.light.json
    └── color.dark.json

build/                generated, committed (drift check in CI)
├── css/tokens.{light,dark}.css
├── ts/tailwind.tokens.{light,dark}.js
├── ts/tailwind.preset.js          (CSS-var-based, theme-agnostic)
├── ts/index.js
└── json/flat.{light,dark}.json    (Figma plugin sync)

dart/                 Flutter package (consumed via path/git URL)
├── lib/torio_tokens.dart
├── lib/src/torio_theme.dart
├── lib/src/generated/tokens_{light,dark}.dart
├── pubspec.yaml
└── analysis_options.yaml

Build

pnpm install
pnpm build         # writes everything under build/ and dart/lib/src/generated/
pnpm build:fresh   # clean + build

Outputs are committed. CI runs pnpm build then git diff --exit-code — drift fails the build.

Consumption

Web (Tailwind + CSS)

// tailwind.config.ts
import preset from '@torio-luxury/design-tokens/tailwind';
export default { presets: [preset], content: [...] };
/* global stylesheet */
@import '@torio-luxury/design-tokens/css/light';
@import '@torio-luxury/design-tokens/css/dark';

Theme switch: toggle data-theme="dark" on <html> (or <body>).

Flutter

# pubspec.yaml
dependencies:
  torio_tokens:
    git:
      url: https://github.com/toneyavuz/torio-luxury-design-tokens
      path: dart
import 'package:torio_tokens/torio_tokens.dart';

MaterialApp(
  theme: TorioTheme.light(),
  darkTheme: TorioTheme.dark(),
);

Figma

Import build/json/flat.{light,dark}.json via your Figma tokens plugin.

Adding / changing tokens

  1. Edit JSON under tokens/primitive/ or tokens/semantic/.
  2. pnpm build to regenerate outputs.
  3. Commit token + generated artifacts together.
  4. Renaming a semantic key is a breaking change — coordinate frontend bumps.

Contracts

  • Token shape: DTCG ($value, $type, optional $description).
  • References: {color.gold.500} resolve at build time.
  • No magic: every consumed value lives in tokens/. Components never hardcode colors or sizes.
  • WCAG: every shipped color pair clears AA (4.5:1 body / 3:1 UI). See docs/05 §3.3 in the planning workspace.

Versioning

Semantic-release on main. Conventional Commits + DCO sign-off (git commit -s).