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

@aziontech/theme

v5.2.2

Published

Azion's design-token system, compiled into a single **Tailwind CSS v4** stylesheet: primitive palettes, brand colors, light/dark semantic tokens, the full text-style scale, motion utilities and `@keyframes`, and the `@font-face` set — plus the raw token d

Readme

@aziontech/theme

Azion's design-token system, compiled into a single Tailwind CSS v4 stylesheet: primitive palettes, brand colors, light/dark semantic tokens, the full text-style scale, motion utilities and @keyframes, and the @font-face set — plus the raw token data as importable JavaScript.

The package ships one prebuilt artifact (dist/v4/globals.css) and four small JS entry points. There is no Tailwind preset, plugin, or tailwind.config.js step — v4 reads the @theme / @utility definitions directly from the imported CSS.

Installation

npm install @aziontech/theme
# or
pnpm add @aziontech/theme
# or
yarn add @aziontech/theme

Tailwind CSS v4 must be present in the consuming build — the stylesheet begins with @import "tailwindcss".

Quick start

1. Import the stylesheet

In your app's root CSS:

@import '@aziontech/theme';

or from JavaScript (Vite and friends):

import '@aziontech/theme'

That single import provides:

  • the @font-face declarations for the Azion type system (no separate font imports needed);
  • every primitive CSS variable (colors, spacing, shape, typography, effects, breakpoints);
  • the semantic light/dark variables (--primary, --text-default, --surface-0…);
  • text-style utilities (text-heading-2xl, text-big-number-md, …) with responsive sizes;
  • animation utilities and their @keyframes (consumers pair every motion class with a motion-reduce: fallback).

2. Switch themes

Light is the default (:root). Dark mode activates on any of these hooks:

<html data-theme="dark">
  <!-- or -->
  <body class="dark">
    <!-- or the legacy pair -->
    <div class="azion azion-dark"></div>
  </body>
</html>
// Toggle at runtime
document.documentElement.dataset.theme = 'dark' // or 'light'

Light-mode selectors: :root, [data-theme='light'], .azion.azion-light. Dark-mode selectors: [data-theme='dark'], .dark, .azion.azion-dark.

Exports

The entire public surface, from package.json#exports:

| Path | What it is | | ------------------------------- | -------------------------------------------------------------------------- | | @aziontech/theme | the compiled stylesheet (dist/v4/globals.css) | | @aziontech/theme/colors | color primitives: primitives, brandPrimitives, surfacePrimitives | | @aziontech/theme/animations | motion primitives: animate, curve, duration, useWhen | | @aziontech/theme/texts | textsData — font-size/line-height/weight bundles per text style | | @aziontech/theme/theme-colors | semantic compiler: compileThemeVars, compileThemeCss, injectThemeCss |

JavaScript token access

Color primitives

import { primitives, brandPrimitives, surfacePrimitives } from '@aziontech/theme/colors'

primitives.orange[500] // '#F3652B' — primary brand
primitives.blue[500] // '#0072F5' — accent
primitives.violet[500] // '#8A84EC' — brand.accent palette
primitives.gray[900] // '#141414'

brandPrimitives.primary[500] // '#F3652B'
brandPrimitives.absolute.white // '#FFFFFF'

surfacePrimitives.surface[0] // '#FFFFFF'
surfacePrimitives.surface[950] // '#0A0A0A'

Available palettes: base, blue, gray, slate, orange, violet, yellow, green, red — plus the brand, surface, and alpha groups.

Motion primitives

import { curve, duration, animate } from '@aziontech/theme/animations'

curve['productive-exit'] // easing cubic-bezier
duration['fast-02'] // ms value
animate.shimmer // keyframe-backed animation definition

Text styles

import { textsData } from '@aziontech/theme/texts'

textsData['text-heading-2xl']
// { fontSize: { _: '1.875rem', sm: '3rem', md: '3.5rem' }, lineHeight: 1.25, fontWeight: 400 }

Responsive fontSize keys (_, sm, md, …) become @media (min-width: …) overrides in the compiled utilities.

Semantic variables as JS (Node / build steps / runtime)

import { compileThemeVars, compileThemeCss, injectThemeCss } from '@aziontech/theme/theme-colors'

compileThemeVars()
// → { light: { '--primary': '#F3652B', '--text-default': '#141414', … }, dark: { … } }

compileThemeCss()
// → ':root, [data-theme=light], .azion.azion-light { … }\n\n[data-theme=dark], .dark, … { … }'

injectThemeCss() // appends a <style data-azion-theme> element to <head>

Only useful when you can't precompile — production usage should prefer the static stylesheet.

CSS variables

The semantic layer flips automatically between modes:

:root,
[data-theme='light'],
.azion.azion-light {
  --primary: #f3652b;
  --text-default: #141414;
  /* … */
}

[data-theme='dark'],
.dark,
.azion.azion-dark {
  --text-default: #fafafa;
  /* … */
}

Use them directly:

.custom-component {
  color: var(--text-default);
  border-color: var(--primary);
}

Utility equivalents are generated in the same stylesheet (e.g. @utility text-default), so class="text-default" works wherever Tailwind runs.

Token resolution

Tokens use a reference system for maintainability:

// Define token reference
const textColor = tokenRef('primitives.gray.900')

// The compilers (scripts/compile-primitives.js, scripts/compile-theme.js)
// resolve refs to literal values at build time — and throw, listing every
// miss, if a ref does not resolve.
compileThemeVars()
// Output: { light: { '--text-default': '#141414', … }, dark: { … } }

The full reference — supported tokenRef prefixes, the build pipeline, how to add a token — lives in src/tokens/README.md.

Development

pnpm build:tokens # node src/scripts/build-tokens.mjs → dist/v4/globals.{css,scss}
pnpm build:dts    # vue-tsc --declaration (emit .d.ts next to sources)
pnpm format       # prettier over scripts/ and src/
pnpm pack:dry     # inspect the tarball contents

dist/ is committed, and prepack reruns build:tokens + build:dts — every publish rebuilds the artifact from source, so a stale or hand-edited dist/ can never ship.

Project structure

packages/theme/
├── tokens.js                    # in-repo JS barrel (not shipped — use the subpath exports)
├── src/
│   ├── tokens/
│   │   ├── primitives/          # colors (brand/surface/alpha), typography, shape, effects, animations, …
│   │   ├── semantic/            # texts/containers/spacings/z-indices data + semantic color refs
│   │   ├── theme/               # light/dark semantic groups (primary, background, text, ring, feedback/…)
│   │   └── README.md            # in-depth token documentation
│   └── scripts/
│       ├── refs.js              # tokenRef + isTokenRef + assertResolvedRefs
│       ├── compile-primitives.js
│       ├── compile-theme.js     # exported as ./theme-colors
│       └── build-tokens.mjs     # main entrypoint: emits dist/v4
├── dist/v4/globals.css          # the shipped stylesheet (committed; rebuilt on publish)
└── package.json

Browser support

Modern evergreen browsers with CSS custom-properties support (Chrome, Firefox, Safari, Edge).

Versioning

This package follows Semantic Versioning. Versions are managed by release-please: merges to main update a Release PR, and merging that Release PR cuts the version and publishes.

Contributing

This package is part of the Azion WebKit monorepo. Please see the main repository for contribution guidelines.

License

MIT © Azion Technologies

Links

Changelog

See CHANGELOG.md for release history.