@capra/theme
v1.4.0
Published
Theme resources for the Capra design system
Readme
@capra/theme
Overview
@capra/theme provides the Capra baseline stylesheet, token helpers, and DX token entry points used by consumers and build tooling.
Documentation
Human-readable documentation is available at https://capra.cribl.io.
LLM-readable documentation is available at https://capra.cribl.io/llms.txt.
Install
pnpm add @capra/themeUsage
import '@capra/theme/base.css';
import { token } from '@capra/theme';
const gap = token('spacing.md');Available stylesheet entry points:
@capra/theme/base.cssis the preferred baseline stylesheet. It includes Capra design tokens, font-face declarations, and minimal global defaults.@capra/theme/styles.cssis the legacy variables-only stylesheet for backward compatibility.@capra/theme/fonts.csspublishes the standalone font-face declarations.
Note: Do not import @capra/theme/base.css with @capra/theme/fonts.css or @capra/theme/styles.css. base.css already includes the token styles exposed by styles.css and the fonts declared in fonts.css.
License
This package is proprietary software. See LICENSE.txt.
