Skip to content
tracecssPublic

About

🍃 Lightweight CSS library for native HTML elements.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Trace CSS logo

Trace CSS

Native HTML elements, CSS tokens, and light and dark themes.

npm version CI on main MIT license

A CSS library for native HTML elements. No JavaScript required.

Find the latest installation guides, usage examples, and theme customization reference.

Features

  • Native HTML styling with optional class-based extensions.
  • Light and dark themes with customizable CSS tokens.
  • Global and container-scoped builds.

Installation

Via a package manager

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-css

Import the stylesheet in your application:

import "trace-css";

For classless styling, use trace-css/dist/trace.classless.css instead.

Via CDN

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.

Builds

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.

Agent skill

The Trace CSS skill helps coding agents use the library. Install it in your project:

npx skills add tracecss/trace --skill trace-css

Add -g to install globally. Invoke with $trace-css.

Browser targets

Chrome / Edge 123+, Firefox 146+, Safari / iOS Safari 17.5+. These are build targets, not polyfills.

License

MIT.

About

🍃 Lightweight CSS library for native HTML elements.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages