@figkit/themes
v0.1.0
Published
Design system themes with multi-brand and multi-theme CSS variables
Maintainers
Readme
@figkit/themes
Design system themes with multi-brand and multi-theme CSS variables.
Installation
npm install @figkit/themes
# or
pnpm add @figkit/themes
# or
yarn add @figkit/themesUsage
Import the CSS file in your application entry point:
import '@figkit/themes/tokens.css';Then set the brand and theme attributes on your root element:
document.documentElement.setAttribute('data-brand', 'default');
document.documentElement.setAttribute('data-theme', 'light');Available Brands
default- Default brandfigjam- FigJam branddevmode- DevMode brandslides- Slides brand
Available Themes
light- Light color modedark- Dark color mode
CSS Variables
The package provides CSS variables for:
- Colors:
--color-text-*,--color-bg-*,--color-border-*,--color-icon-* - Spacing:
--space-0through--space-6 - Radius:
--radius-sm,--radius-md,--radius-lg,--radius-none,--radius-full - Typography:
--body-*-fontFamily,--body-*-fontSize,--body-*-fontWeight, etc.
Example
.my-component {
background: var(--color-bg-default);
color: var(--color-text-default);
padding: var(--space-3);
border-radius: var(--radius-sm);
font-family: var(--body-medium-fontFamily);
font-size: var(--body-medium-fontSize);
}License
ISC
