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

@times-design-system/theme-css

v2.11.3

Published

Times Design System theme package - pre-resolved color tokens for CSS

Readme

@times-design-system/theme-css

Times Design System CSS theme package with 2,748+ pre-compiled CSS custom properties (variables) for building themed applications.

Installation

yarn add @times-design-system/theme-css

Usage

Link CSS File

<!-- Every theme (light + dark) in one file -->
<link
  rel="stylesheet"
  href="node_modules/@times-design-system/theme-css/dist/variables.css"
/>

<!-- Via CDN with cachable version reference -->
<link
  rel="stylesheet"
  href="https://unpkg.com/@times-design-system/theme-css@[VERSION_NUMBER]/dist/variables.css"
/>

Load only the themes you use

variables.css (~170 KB) contains every channel theme. To ship less CSS, load the shared core plus the [data-theme] channels your pages use (~6 KB each):

import '@times-design-system/theme-css/core.css'; // tokens, dark mode, typography utilities (~54 KB)
import '@times-design-system/theme-css/themes/sport.css';
import '@times-design-system/theme-css/themes/culture.css';

core.css plus every file in themes/ is equivalent to variables.css.

Use CSS Variables in Your Stylesheet

/* Color tokens - prescoped within media queries for both mode (light/dark) and theme (e.g. [data-theme="sport"])*/
body {
  background-color: var(surface-canvas);
  color: var(text-primary);
}

/* Spacing tokens */
.component {
  padding: var(spacing-100);
  margin: var(spacing-050);
  gap: var(spacing-200);
}

/* Shadows/Elevation */
.elevated {
  box-shadow: var(elevation-100);
}

Use Typographic classes in markup

/* Typography */
/* Typographic styling should be adopted through typographic classes */
<h1 className="brand-heading-fluid-bold-xlarge">Styled Heading</h1>

<Text typographyStyle="brand-heading-fluid-bold-xlarge">Styled Text Component</Text>

Alternative Import in JavaScript

// If bundling CSS
import '@times-design-system/theme-css/variables.css';

// Then use in JS
const element = document.querySelector('.component');
const spacing = getComputedStyle(element).getPropertyValue('spacing-100');

Package Contents

dist/
└── variables.css         # 2,748+ CSS custom properties

Available Token Categories

Color Tokens

All semantic and brand colors:

/* Semantic colors */
text-primary
text-secondary
text-tertiary
surface-canvas
surface-level-1
surface-level-2
border-primary
border-secondary

/* Brand/Channel colors (e.g.) */
brand-home-500
brand-business-500
channel-sport-500
channel-money-500

Spacing Tokens

spacing-025    /* 0.25rem */
spacing-050    /* 0.5rem */
spacing-100    /* 1rem */
spacing-200    /* 1.5rem */
spacing-300    /* 2rem */
spacing-400    /* 2.5rem */

Typography Tokens

font-size-025  /* 0.75rem */
font-size-050  /* 1rem */
font-size-100  /* 2.25rem */
font-family-sans
font-family-serif
font-weight-regular  /* 400 */
font-weight-bold     /* 700 */
line-height-tight
line-height-normal
letter-spacing-tight

Other Tokens

radius-100      /* Border radius */
radius-200
elevation-100   /* Box shadows */
elevation-200
transition-normal
transition-smooth

Browser Support

  • Modern browsers: Full support with scoped CSS
  • All other modern browsers (Chrome, Firefox, Safari, Edge): CSS custom properties supported
  • Fallback: Provide fallback values for older browsers
.component {
  /* Fallback for older browsers */
  padding: 1rem;
  /* Override if CSS variables supported */
  padding: var(spacing-100, 1rem);
}

File Size

  • variables.css: ~314KB (uncompressed)
  • variables.css (gzipped): ~20KB
  • CSS custom properties: 2,748+

Compatibility

  • Node: ≥ 14.0.0
  • Browsers: All modern browsers (IE not supported, use fallbacks)
  • CSS: CSS Custom Properties Level 1

Building

To rebuild the package after modifying tokens:

yarn build

License

ISC