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-scss

v2.14.2

Published

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

Readme

@times-design-system/theme-scss

Times Design System SCSS theme package with pre-compiled palette files and utility functions for designing themed SCSS applications. Pending review

Installation

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

Usage

Import SCSS Files

// Import typography (font-size custom properties, mixins and the typography
// classes used by components, e.g. .utility-button-medium)
@import '@times-design-system/theme-scss/tds-typography.scss';

// Or import only the typography variables and mixins, without emitting any CSS
// (the mixins reference --font-size* custom properties, so tds-typography.scss
// must still be imported once at the application root)
@import '@times-design-system/theme-scss/_tds-typography-tokens.scss';

// Import layout utilities (variables, mixin and the .tds-grid class)
@import '@times-design-system/theme-scss/tds-layout.scss';

// Or import only the layout variables and mixin, without emitting any CSS
@import '@times-design-system/theme-scss/_tds-layout-tokens.scss';

// Import a specific theme palette
@import '@times-design-system/theme-scss/palettes/core-light.scss';
@import '@times-design-system/theme-scss/palettes/core-dark.scss';

Output Only the Themes You Need

theme-classes.scss emits a .theme-* class for every theme in both light and dark mode. If you only use some themes, use the generate-theme-class mixin from _theme-generator.scss (which emits no CSS on its own) with the palettes you need:

@use '@times-design-system/theme-scss/_theme-generator.scss' as tds;
@use '@times-design-system/theme-scss/palettes/core-light' as core;
@use '@times-design-system/theme-scss/palettes/core-dark' as coreDark;

@include tds.generate-theme-class(core.$palette, 'core');
// Optional dark mode: outputs `.theme-core.theme-dark, .theme-dark .theme-core`
@include tds.generate-theme-class(coreDark.$palette, 'core', true);

Using Design Tokens in SCSS

// Access color variables
body {
  background-color: $dark-core-surface-canvas;
  color: $dark-core-text-primary;
}

// Use typography mixins located in _tds-typography-tokens.scss (also available via tds-typography.scss)
h1 {
  @include brand-heading-fluid-light-xlarge;
  margin-bottom: $spacing-200;
}

// Use spacing tokens
.component {
  padding: $spacing-100;
  margin: $spacing-050;
  border-radius: $radius-100;
}

Palette Files

All channel and brand palettes are included:

dist/palettes/
├── core-light.scss             # Core theme (light mode)
├── core-dark.scss              # Core theme (dark mode)
├── business-light.scss         # Business theme (light mode)
├── business-dark.scss          # Business theme (dark mode)
├── culture-light.scss          # Culture theme (light mode)
├── culture-dark.scss           # Culture theme (dark mode)
├── home-light.scss             # Home theme (light mode)
├── home-dark.scss              # Home theme (dark mode)
├── sport-light.scss            # Sport theme (light mode)
├── sport-dark.scss             # Sport theme (dark mode)
└── ... (14 additional theme variants)

Package Contents

dist/
├── _tds-layout-tokens.scss # Layout variables and grid mixin (no CSS output)
├── tds-layout.scss         # Layout and grid utilities
├── _tds-typography-tokens.scss # Typography variables and mixins (no CSS output)
├── tds-typography.scss     # Typography custom properties, mixins and classes
├── _theme-generator.scss   # generate-theme-class mixin (no CSS output)
├── theme-classes.scss      # .theme-* classes for every theme × mode
└── palettes/               # Theme-specific SCSS palette files
    ├── business-light.scss
    ├── business-dark.scss
    ├── core-light.scss
    ├── core-dark.scss
    └── ... (24 total theme variants)

Available Tokens

Color Tokens

All tokens follow a consistent naming pattern of $[MODE]-[THEME]-[TOKEN]. Colour tokens have been published in both light and dark mode files for each theme, where the client will be responsible for resolving dynamic references to tokens for the associated theme/channel.

// Semantic colors
$[MODE-THEME]-text-primary
$[MODE-THEME]-text-secondary
$[MODE-THEME]-text-tertiary
$[MODE-THEME]-surface-canvas
$[MODE-THEME]-surface-level-1
$[MODE-THEME]-border-primary

// Dark mode variants
// Use the palette files or CSS custom properties with light-dark()

Spacing Tokens

$spacing-025    // 0.25rem
$spacing-050    // 0.5rem
$spacing-100    // 1rem
$spacing-200    // 1.5rem
// ... scales up to $spacing-400

Typography

// Use typography mixins
@include brand-heading-fluid-light-large;
@include utility-body-regular-medium;
@include utility-label-small;

Dark Mode Support

The package includes dedicated dark mode palettes that can be referenced where applicable.

Compatibility

  • Sass/SCSS: ≥ 1.3.0
  • Node: ≥ 14.0.0
  • Browsers: All modern browsers supporting CSS custom properties

Building

To rebuild the package after modifying tokens:

yarn build

This will compile SCSS files with asset distribution.

License

ISC