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

@candor-design/web-components

v4.2.0

Published

Candor design system — Lit 3 custom elements. Framework-agnostic web components paired with @candor-design/tokens.

Readme

@candor-design/web-components

Framework-agnostic Lit 3 custom elements for the Candor design system — a humanist design system built with OKLCH colors, variable-font typography, and WCAG 2.1 AA accessibility.

Browse components →

Install

npm install @candor-design/web-components @candor-design/tokens

Both packages share a single version number — install the same version of each.

Usage

Load the tokens stylesheet once at the document level and import the components package. CSS custom properties pierce Shadow DOM boundaries, so a single <link> resolves inside every component's shadow root — no per-component injection.

<link rel="stylesheet" href="node_modules/@candor-design/tokens/tokens/candor-tokens.css">
<script type="module" src="node_modules/@candor-design/web-components/dist/candor-web-components.js"></script>

<candor-button variant="primary">Save changes</candor-button>
<candor-input label="Email" type="email" required></candor-input>
<candor-badge variant="success">Active</candor-badge>

Bundler import

import '@candor-design/web-components';
// All 37 custom elements are now registered

Named exports give you typed access to the element classes — useful for programmatic instantiation or TypeScript references. Importing a class still triggers customElements.define(), so the tag is registered as a side effect:

import { CandorButton, CandorInput } from '@candor-design/web-components';

What's included

37 custom elements covering typography, display, navigation, forms, overlays, and data:

| Category | Tags | |---|---| | Typography | candor-heading, candor-text, candor-accessible-text, candor-article, candor-code | | Display | candor-badge, candor-alert, candor-card, candor-stat, candor-progress | | Navigation | candor-button, candor-chip, candor-breadcrumb, candor-pagination, candor-toolbar (+ candor-toolbar-separator), candor-navigation | | Form | candor-input, candor-autocomplete, candor-checkbox, candor-radio, candor-switch, candor-select, candor-slider, candor-listbox, candor-combobox, candor-chat-input | | Overlays | candor-tooltip, candor-modal, candor-drawer, candor-toast (+ candor-toast-container) | | Compound | candor-tabs (+ candor-tab-panel), candor-accordion-item, candor-disclosure, candor-menu | | Data | candor-table, candor-data-grid, candor-tone-picker |

Form participation

Form controls (candor-input, candor-checkbox, candor-radio, candor-switch, candor-select, candor-slider, candor-listbox, candor-combobox) use the ElementInternals API with static formAssociated = true. They participate in native <form> submission — values appear in FormData, validation works, and :disabled styles apply correctly.

Distribution

  • dist/candor-web-components.js — ESM bundle (~170 kB, ~31 kB gzipped). Includes Lit.
  • dist/candor-web-components.umd.cjs — UMD bundle for CDN / legacy environments.
  • dist/index.d.ts + per-component .d.ts — TypeScript declarations.

License

ISC