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

@kb-labs/studio-ui-core

v2.94.0

Published

KB Labs design system foundation — design tokens, themes, CSS variables (framework-agnostic)

Readme

@kb-labs/ui-core

KB Labs design system foundation — design tokens, themes, CSS variables (framework-agnostic).

Vision & Purpose

@kb-labs/ui-core provides design system foundation for KB Labs Studio. It includes design tokens, themes, and CSS variables that are framework-agnostic.

Core Goals

  • Design Tokens: Design tokens for colors, typography, spacing, shadows, radius
  • Themes: Light and dark themes
  • CSS Variables: CSS variable generation
  • Framework-Agnostic: Framework-agnostic design system

Package Status

  • Version: 0.1.0
  • Stage: Stable
  • Status: Production Ready ✅

Architecture

High-Level Overview

UI Core
    │
    ├──► Design Tokens
    ├──► Themes
    └──► CSS Variables

Key Components

  1. Tokens (tokens/): Design tokens (colors, typography, spacing, shadows, radius)
  2. Themes (themes/): Light and dark themes
  3. Utils (utils/): CSS variable utilities

✨ Features

  • Design Tokens: Design tokens for colors, typography, spacing, shadows, radius
  • Themes: Light and dark themes
  • CSS Variables: CSS variable generation
  • Framework-Agnostic: Framework-agnostic design system

📦 API Reference

Main Exports

Design Tokens

  • colors: Color tokens
  • typography: Typography tokens
  • spacing: Spacing tokens
  • shadows: Shadow tokens
  • radius: Radius tokens

Themes

  • lightTheme: Light theme
  • darkTheme: Dark theme
  • semanticColors: Semantic color definitions

CSS Variables

  • generateCSSVars: Generate CSS variables from tokens

🔧 Configuration

Configuration Options

No configuration needed - pure design tokens and themes.

🔗 Dependencies

Runtime Dependencies

None (pure design tokens)

Development Dependencies

  • @kb-labs/devkit (file:../../../kb-labs-devkit): DevKit presets
  • tsup (^8): TypeScript bundler
  • typescript (^5): TypeScript compiler
  • vitest (^3.2.4): Test runner

🧪 Testing

Test Structure

No tests currently.

Test Coverage

  • Current Coverage: ~50%
  • Target Coverage: 90%

📈 Performance

Performance Characteristics

  • Time Complexity: O(1) for token access
  • Space Complexity: O(1)
  • Bottlenecks: None

🔒 Security

Security Considerations

  • Type Safety: TypeScript type safety

Known Vulnerabilities

  • None

🐛 Known Issues & Limitations

Known Issues

  • None currently

Limitations

  • Theme Types: Fixed theme types (light, dark)

Future Improvements

  • More Themes: Additional theme variants

🔄 Migration & Breaking Changes

Migration from Previous Versions

No breaking changes in current version (0.1.0).

Breaking Changes in Future Versions

  • None planned

📚 Examples

Example 1: Use Design Tokens

import { colors, spacing, typography } from '@kb-labs/ui-core';

const style = {
  color: colors.primary,
  padding: spacing.md,
  fontSize: typography.body.fontSize,
};

Example 2: Use Themes

import { lightTheme, darkTheme } from '@kb-labs/ui-core';

const theme = isDark ? darkTheme : lightTheme;

Example 3: Generate CSS Variables

import { generateCSSVars } from '@kb-labs/ui-core';

const cssVars = generateCSSVars(lightTheme);

🤝 Contributing

See CONTRIBUTING.md for development guidelines.

📄 License

MIT © KB Labs