Native HTML elements, CSS tokens, and light and dark themes.
A CSS library for native HTML elements. No JavaScript required.
Find the latest installation guides, usage examples, and theme customization reference.
- Native HTML styling with optional class-based extensions.
- Light and dark themes with customizable CSS tokens.
- Global and container-scoped builds.
Install with your preferred package manager:
# npm
npm install trace-css
# pnpm
pnpm add trace-css
# Yarn
yarn add trace-css
# Bun
bun add trace-cssImport the stylesheet in your application:
import "trace-css";For classless styling, use trace-css/dist/trace.classless.css instead.
Add one stylesheet to your HTML <head>:
jsDelivr
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/trace-css@0.1.2/dist/trace.min.css"
/>UNPKG
<link
rel="stylesheet"
href="https://unpkg.com/trace-css@0.1.2/dist/trace.min.css"
/>Replace the filename to use another build.
Choose one build from dist/:
| Build | Includes | Scope | CSS file |
|---|---|---|---|
| Full | Native elements + class extensions | Document | trace.css |
| Classless | Native elements | Document | trace.classless.css |
| Full Conditional | Native elements + class extensions | .trace-css container |
trace.conditional.css |
| Classless Conditional | Native elements | .trace-css container |
trace.classless.conditional.css |
All builds include theme tokens. Minified versions use .min.css.
Conditional builds require browser support for @scope.
The Trace CSS skill helps coding agents use the library. Install it in your project:
npx skills add tracecss/trace --skill trace-cssAdd -g to install globally. Invoke with $trace-css.
Chrome / Edge 123+, Firefox 146+, Safari / iOS Safari 17.5+. These are build targets, not polyfills.
MIT.