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

@rcarls/rc-theme-material

v0.2.0

Published

Optional Material 3 design-token bridge for rc-webcomponents.

Readme

@rcarls/rc-theme-material

Optional Material 3 design-token bridge and full CSS style layer for rc-webcomponents.

The package maps Material system and component CSS custom properties into RC's public --rc-* styling contracts. It changes presentation only; it does not claim behavioral or structural conformance with Material components.

Installation

yarn add @rcarls/rc-theme-material

Use an application's existing Material token environment:

@import '@rcarls/rc-theme-material/bridge.css';
<main class="rc-theme-material">
  <!-- rc components -->
</main>

For a standalone baseline that includes representative light and dark Material system tokens and the full component style layer:

@import '@rcarls/rc-theme-material/theme.css';

Import defaults.css separately when only the baseline Material system tokens are needed. Import components.css with bridge.css when an application provides its own Material system tokens but wants the full RC component styling. bridge.css never defines --md-sys-*, so branded or dynamically generated application tokens remain authoritative.

Selective component styles are also exported:

@import '@rcarls/rc-theme-material/bridge.css';
@import '@rcarls/rc-theme-material/components/select.css';
@import '@rcarls/rc-theme-material/components/menu.css';

Package rules use ordered cascade layers:

@layer rc-theme-material.defaults, rc-theme-material.bridge, rc-theme-material.components;

Unlayered application CSS and application layers declared after these layers can override the theme normally.

Supported mappings

The initial bridge and style layer cover:

  • rc-select and rc-combobox
  • rc-slider and rc-range-slider
  • rc-search-bar
  • rc-app-bar
  • rc-menu, rc-menu-button, and rc-menubar
  • rc-toolbar
  • rc-listbox, rc-textarea, rc-markdown-editor, and rc-transfer-list
  • rc-dialog, rc-disclosure, and rc-accordion
  • rc-splitter and rc-virtual-canvas

Material Web token names are used where a corresponding component exists. Search bar and top app bar mappings follow Material 3 token terminology and fall back through Material system roles.

The initial mapping targets Material Web's v0_192 component-token generation and the public token names documented at material-web.dev. Material Web token changes are not adopted silently; mapping updates are versioned package API.

Consumer-provided native controls remain consumer-owned. The bridge does not style arbitrary buttons or infer filled, tonal, text, or icon-button intent. Menu-button mappings provide trigger geometry only; applications choose trigger colors and button variants.

The full style layer does style native controls when their intent is established by an RC composition, including menu items, menu triggers, toolbar controls, app-bar actions, transfer-list actions, disclosure summaries, and dialog actions. It never styles unrelated application controls.

Fidelity

| Surface | Fidelity | Notes | | --- | --- | --- | | Select, combobox, listbox, menus, search, app bar, sliders | Strong | Existing parts and states support recognizable M3 treatments. | | Toolbar, transfer list, textarea, splitter, dialog, disclosure | Approximate | Material styling is applied to RC's existing structure. | | Markdown editor and virtual canvas | Foundational | Surface, state, and contextual-control styling only. |

Floating labels, supporting/error text structures, ripples, Material button variants, and richer component-specific compositions require future styling hooks or structural variants. Fonts and icons are not bundled; applications may provide Roboto and Material Symbols through their normal asset pipeline.

Token precedence

Component tokens override system tokens, which override RC's platform fallback:

--rc-slider-progress-background:
  var(--md-slider-active-track-color, var(--md-sys-color-primary, Highlight));

The bridge's Material token mapping is a versioned public contract. Review release notes before upgrading when an application overrides Material component tokens directly.