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

adac-figma-make-kit

v0.1.2

Published

ADAC web design system components as a Figma Make kit: 10 accessible, production-ready React + TypeScript components with design tokens.

Readme

adac-figma-make-kit

Production-ready React + TypeScript components for the ADAC web design system, packaged as a Figma Make kit. Ten accessible, composable components built directly from the Figma library ADAC_DS_Web_Elements, plus a token system exported as CSS custom properties and typed JS objects.

  • ✅ React 18, TypeScript, Vite-compatible (works in Figma Make)
  • ✅ Accessible semantic HTML, keyboard support, visible focus, ARIA
  • ✅ Tree-shakeable ESM + CJS, .d.ts types, React as a peer dependency
  • ✅ No runtime dependencies

Installation

npm install adac-figma-make-kit

React and React DOM are peer dependencies — they are provided by your app (or by Figma Make) and are not bundled.

Usage

Import the components you need and the stylesheet once at your app root:

import {
  AdacButton,
  AdacGradeBadge, // (see full list below)
  AdacRatingStars,
} from "adac-figma-make-kit";

import "adac-figma-make-kit/styles.css";

The stylesheet ships all design tokens and component styles. If you only want the tokens (e.g. to style your own elements), import adac-figma-make-kit/tokens.css instead.

import {
  AdacButton,
  AdacLink,
  AdacIconButton,
  AdacCheckbox,
  AdacRadio,
  AdacRadioGroup,
  AdacSwitch,
  AdacDivider,
  AdacRatingStars,
  AdacGradeBadge,
  AdacSpinner,
} from "adac-figma-make-kit";
import "adac-figma-make-kit/styles.css";

export default function Example() {
  return (
    <div>
      <AdacButton onClick={() => alert("Hi")}>Get quote</AdacButton>
      <AdacRatingStars value={4} />
      <AdacGradeBadge grade={1} value="1,7" />
    </div>
  );
}

A complete example rendering all ten components lives in examples/ExampleApp.tsx.


Components

| Component | Figma source | Key props | |---|---|---| | AdacButton | Button/Button | variant tone loading fullWidth startIcon endIcon | | AdacLink | Button/Text link | size secondary href startIcon endIcon | | AdacIconButton | Button/Gallery arrow · Video control | icon aria-label* size tone | | AdacCheckbox | Selection/Checkbox | label checked indeterminate error disabled | | AdacRadio / AdacRadioGroup | Selection/Radiobutton | group: name value onChange orientation; item: value label error | | AdacSwitch | Switch | label size checked disabled | | AdacDivider | Divider/Divider | orientation spacing decorative | | AdacRatingStars | Rating/Stars | value max size onChange readOnly label | | AdacGradeBadge | Rating/Grades | value grade size | | AdacSpinner | Loading | size label |

*aria-label is required on AdacIconButton (enforced by the type system).

All components forward refs to their underlying DOM element and spread native HTML attributes.

Figma → React prop mapping (variants)

ButtonButton/Button

| Figma property | React prop | |---|---| | Secondary = false / true | variant="primary" / "secondary" | | Variant = Default / Alternative · OnYellow / Alternative · OnBlack | tone="default" / "onYellow" / "onBlack" | | Loading = true | loading | | State = Hover / Focus | native :hover / :focus-visible |

LinkButton/Text link: Big=false/truesize="small"/"big"; secondary=truesecondary.

CheckboxSelection/Checkbox: State=Empty/Selected/Selected-intermediate → unchecked / checked / indeterminate; Error=trueerror; Focus=true:focus-visible.

RadioSelection/Radiobutton: same state mapping as Checkbox.

SwitchSwitch: active=true/falsechecked; mobile=false/truesize="small"/"large".

DividerDivider/Divider: Verticalorientation; Incl. spacingspacing.

Rating starsRating/Stars: rating=1..5value.

Grade badgeRating/Grades: color=01..05grade={1..5}; Big=false/truesize="small"/"big".


Design tokens

Tokens are available two ways:

  1. CSS custom properties (namespaced --adac-*), shipped in styles.css and tokens.css:

    .my-hero { background: var(--adac-color-brand); color: var(--adac-color-ink-primary); }
  2. Typed JS objects for use in code:

    import { tokens, colors, radii } from "adac-figma-make-kit";
    colors.brand; // "#ffcc00"
    radii.m;      // 6

Token inventory

  • Colors — brand #ffcc00 / brand-hover #ffb700; ink 90/60/42/10/4%; on-black 100/60/42/12%; semantic error #cc3333, error-hover #921100, valid #2e7d32, light-valid #8ac30c, attention #f18700; grade scale 1–5.
  • TypographyADAC Sans (proprietary, not bundled — see Assumptions): Body 1 (20/32), Body 2 (16/20) in regular & bold, Action/Navi (14/16 bold, +0.248px tracking).
  • Spacing — 4px-based scale (2, 4, 8, 12, 16, 24, 32, 48).
  • Sizing — control 36, selection 24, switch 34×20 / 51×31, icon button 40.
  • Radii — S 4 (assumed), M 6, L 8, pill.
  • Borders — 1px / 2px, focus ring 2px @ 2px offset.
  • Shadowssm / md (minimal defaults; none defined in Figma).
  • Motion — fast 120ms, base 180ms, spinner 900ms (inferred).
  • Breakpoints — mobile / desktop @ 768px (assumed threshold).

Accessibility

  • Native elements drive behavior: <button>, <a>, <input type="checkbox|radio">, role="switch", role="radiogroup", role="separator".
  • Keyboard: Space/Enter for buttons, Space toggles checkbox/switch, arrow keys move within a radio group and the interactive star rating.
  • Every interactive component has a visible focus ring (:focus-visible).
  • Icon-only AdacIconButton requires aria-label at the type level.
  • Form controls associate their label; otherwise pass aria-label.
  • AdacSpinner exposes role="status" (unless made decorative with label="").
  • Honors prefers-reduced-motion.

Development

npm install
npm run build       # tsup (ESM+CJS+dts) + CSS bundle -> dist/
npm run typecheck   # tsc --noEmit
npm run lint        # eslint
npm pack            # produce the .tgz

Publishing

See PUBLISHING.md. Do not publish under the @adac scope without confirmed npm org access.

Figma Make

See FIGMA_MAKE.md for the install command, imports, an example page, and a ready-to-paste Make prompt.

Assumptions & open questions

See ASSUMPTIONS.md.

License

MIT (code). "ADAC", the ADAC logo, and the ADAC Sans typeface are trademarks/ assets of ADAC e.V. and are not covered by this license.