@superduperui/tokens
v2.0.0-rc.1
Published
SuperDuper Design System v2 tokens, generated from DTCG 2025.10 + Resolver: CSS variables, Tailwind v4 theme, TypeScript, agent docs.
Readme
@superduperui/tokens
Design tokens for the SuperDuper Design System v2, for two brands (superduper and handle), five themes (light, dark, high-contrast light, high-contrast dark and wireframe) and two densities (Comfortable and Compact). Every text and surface pair the tokens allow is proven 7:1 (AAA) and APCA Lc 75, and 11:1 in the high-contrast themes.
This is an alpha. Token names can still change before 2.0.0.
Install
npm install @superduperui/tokensWhat's in it
Each brand folder (superduper/, handle/) holds:
tokens.css: the CSS custom properties (--sd-*) for every theme and density;tailwind.css: a Tailwind v4 theme that maps the tokens to utility classes and removes the default palette;tokens.jswithtokens.d.ts(import@superduperui/tokens/superduper/tokens): the same values for JavaScript, with types;TOKENS.md: every token with the surfaces its text is allowed on;tokens.docs.json: the same table as data, for tools and agents.
Use
@import "@superduperui/tokens/superduper/tokens.css";In a Tailwind v4 app, add the theme after @import "tailwindcss";:
@import "@superduperui/tokens/superduper/tokens.css";
@import "@superduperui/tokens/superduper/tailwind.css";Themes switch with data-theme on any element, density with data-density, and motion with data-motion="reduced".
Licence
MIT. See LICENSE. The changes in each version are in CHANGELOG.md.
