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

token-core

v1.0.4

Published

Shared Nuxt UI theme config and CSS tokens.

Readme

token-core

Shared Nuxt UI config, Tailwind CSS v4 theme tokens, typography utilities, and Lato font files.

Install

pnpm add token-core @nuxt/ui tailwindcss

@nuxt/ui and tailwindcss are peer dependencies, so the consuming app must install them.

Recommended CSS Import

Use this when the app does not need to customize the import order:

@import 'token-core/main.css';

token-core/main.css already imports:

@import url('./fonts/font.css');
@import 'tailwindcss';
@import '@nuxt/ui';
@import './theme.css';

@source './index.js';

Do not also import tailwindcss, @nuxt/ui, or token-core/theme.css in the same app stylesheet when using token-core/main.css, otherwise the generated CSS can be duplicated.

Manual CSS Import

Use this when the app wants to control imports itself:

@import 'token-core/fonts/font.css';
@import 'tailwindcss';
@import '@nuxt/ui';
@import 'token-core/theme.css';

@source '../../../node_modules/token-core/index.js';

The @source path is relative to the stylesheet where you write it. Adjust it if your app stylesheet is at a different depth.

Example for src/app/assets/main.css:

@import 'token-core/fonts/font.css';
@import 'tailwindcss';
@import '@nuxt/ui';
@import 'token-core/theme.css';

@source '../../../node_modules/token-core/index.js';

Nuxt UI Config

Pass the package config directly to @nuxt/ui/vite:

import ui from '@nuxt/ui/vite';
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
import { UIConfig } from 'token-core';

export default defineConfig({
  plugins: [
    vue(),
    ui({
      ...UIConfig,
    }),
  ],
});

If you keep the config in a separate file:

import type { NuxtUIOptions } from '@nuxt/ui/vite';
import { UIConfig as tokenCoreUIConfig } from 'token-core';

export const UIConfig: NuxtUIOptions = tokenCoreUIConfig;

Do not wrap appConfig like this:

// Wrong: creates ui.ui and Nuxt UI will not read the component config correctly.
export const UIConfig = {
  ui: appConfig,
};

Available Exports

import appConfig, { AppConfig, UIConfig, appConfig as namedAppConfig, uiConfig } from 'token-core';
@import 'token-core/main.css';
@import 'token-core/theme.css';
@import 'token-core/fonts/font.css';

Development

Run the smoke test:

pnpm test

Publish:

pnpm publish:npm

Notes

This package targets Tailwind CSS v4 and uses CSS directives such as @theme, @utility, @apply, and @source. The consuming application must compile CSS with Tailwind CSS v4.