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/components-react-scss

v1.8.1

Published

Times Design System React components with SCSS styling

Readme

@times-design-system/components-react-scss

Times Design System React components with SCSS styling.

This package provides the same React components as @times-design-system/components-react, but uses SCSS styling with @times-design-system/theme-scss instead of CSS variables.

Installation

npm install @times-design-system/components-react-scss @times-design-system/theme-scss

Usage

1. Install Theme Package

Install @times-design-system/theme-scss alongside this package:

npm install @times-design-system/theme-scss

2. Import Theme at Application Root

In your main application stylesheet (once, at the root level):

// app.scss or globals.scss
@import '@times-design-system/theme-scss/theme-classes.scss';
@import '@times-design-system/theme-scss/tds-layout.scss';
@import '@times-design-system/theme-scss/tds-typography.scss';

This generates CSS variables for the current theme and makes typography utilities available.

3. Import the Component Styles and Use Components

Component styles are compiled from SCSS at build time and shipped as one stylesheet. Import it once:

import '@times-design-system/components-react-scss/styles.css';
import { Button } from '@times-design-system/components-react-scss';

export function App() {
  return <Button label="Click me" />;
}

4. Wrap with Theme Class

Wrap your application with a theme class to apply the styling:

import './app.scss';

export function App() {
  return (
    <div className="theme-core">
      <Button label="Click me" />
    </div>
  );
}

Architecture

This package is built from the same component source as @times-design-system/components-react (the reference implementation); only the stylesheets differ. Each src/<Component>/styles.scss replaces the matching components-react/src/<Component>/styles.css at build time, so the two packages always expose identical components, props, exports and class names. scripts/react-components/parity.test.mjs enforces this (npm test).

Component Styling:

  • Components use SCSS variables from theme-scss (e.g., $spacing-03, $border-radius-full) for layout tokens
  • Components define CSS custom properties for semantic tokens (e.g., --tds-button-bg)

Application Styling:

  • Import theme files at app root to generate CSS variables from the current theme
  • Wrap app with theme class (e.g., <div className="theme-core">)
  • CSS variables cascade to all child components

Differences from components-react

  • Styling: Layout tokens are compiled from SCSS instead of read from CSS variables
  • Dependencies: Requires @times-design-system/theme-scss instead of @times-design-system/theme-css
  • Theme Classes: Requires wrapping components with theme classes (e.g., theme-core, theme-sport, etc.)

Everything else — components, props, icon handling (registerIcons, icons-all) and subpath exports — is identical; see the components-react README.

Development

  • Edit component behaviour in packages/components-react/src.
  • Edit styles here in src/<Component>/styles.scss. Every component stylesheet in components-react must have an SCSS counterpart.

License

ISC