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

@sisyphos-ui/core

v1.0.0

Published

Core design system package with theme system and design tokens

Readme

@sisyphos-ui/core

Core design system package containing theme system, design tokens, and SCSS utilities.

Installation

pnpm add @sisyphos-ui/core

What's Included

🎨 Theme System

  • Runtime theme customization with applyTheme()
  • CSS Variables-based theming
  • Dark/Light mode support
  • Preset themes
  • Type-safe theme configuration

🧩 Design Tokens

  • SCSS variables and mixins
  • CSS custom properties
  • Semantic color system
  • Spacing scale
  • Typography scale
  • Border radius scale

Usage

Basic (Minimal)

import '@sisyphos-ui/core/styles';
import { applyTheme } from '@sisyphos-ui/core';

// Apply your brand color
applyTheme({
  colors: { primary: '#007bff' }
});

Using SCSS Tokens in Components

@use "@sisyphos-ui/core/tokens/variables" as *;
@use "@sisyphos-ui/core/tokens/mixins" as *;

.my-component {
  padding: $spacing-md;
  border-radius: $radius-s;
  color: var(--sisyphos-color-primary);
}

Exports

JavaScript/TypeScript

// Theme functions
import { applyTheme, createTheme, mergeThemes, generateThemeCSS } from '@sisyphos-ui/core';

// Theme mode
import { setThemeMode, toggleThemeMode, getThemeMode } from '@sisyphos-ui/core';


// Preset themes
import { themes } from '@sisyphos-ui/core';

// Types
import type { ThemeConfig, ColorShades, SemanticColors } from '@sisyphos-ui/core';

SCSS

// All styles (includes theme + tokens)
@use "@sisyphos-ui/core/styles";

// Just theme (CSS variables)
@use "@sisyphos-ui/core/theme";

// Just tokens
@use "@sisyphos-ui/core/tokens";

// Specific token files
@use "@sisyphos-ui/core/tokens/variables" as *;
@use "@sisyphos-ui/core/tokens/mixins" as *;

// Colors are defined as CSS variables in default-theme.scss
// Use CSS variables directly: var(--sisyphos-color-primary)

API

applyTheme(config)

Apply theme configuration at runtime.

applyTheme({
  colors: {
    primary: '#007bff',
    success: '#28a745',
  },
  spacing: {
    md: 20,
  },
  typography: {
    fontFamily: 'Inter, sans-serif',
  },
});

createTheme(config)

Create a type-safe theme configuration.

const myTheme = createTheme({
  colors: { primary: '#007bff' },
});

mergeThemes(...themes)

Merge multiple theme configurations.

const customTheme = mergeThemes(
  themes.blue,
  { colors: { primary: '#custom' } }
);

setThemeMode(mode)

Set color mode (light/dark).

setThemeMode('dark');
setThemeMode('light');

Design Tokens

Colors

--sisyphos-color-primary
--sisyphos-color-success
--sisyphos-color-error
--sisyphos-color-warning
--sisyphos-color-info
--sisyphos-color-neutral

Each color has shades: -light, -lighter, -dark, -darker, -contained

Spacing

$spacing-xxs  // 4px
$spacing-xs   // 8px
$spacing-s    // 10px
$spacing-md   // 16px
$spacing-lg   // 24px
$spacing-xl   // 32px
$spacing-2xl  // 40px
$spacing-3xl  // 64px

Typography

$font-weight-regular   // 400
$font-weight-medium    // 500
$font-weight-semibold  // 600
$font-weight-bold      // 700

$size-xs    // 10px
$size-sm    // 12px
$size-md    // 14px
$base-size  // 16px
$size-lg    // 18px
$size-xl    // 32px

Border Radius

$radius-xxs   // 4px
$radius-xs    // 6px
$radius-s     // 8px
$radius-md    // 12px
$radius-lg    // 24px
$radius-full  // 9999px

License

MIT