@factorialco/f0-core
v1.42.0
Published
Core tokens and utilities for F0 Design System
Readme
F0 Core
Core tokens and utilities for the F0 Design System.
Installation
npm install @factorialco/f0-core
# or
yarn add @factorialco/f0-core
# or
pnpm add @factorialco/f0-coreUsage
import { semanticColors, spacing, fontSizes } from "@factorialco/f0-core"
// Use tokens in your styles
const styles = {
container: {
padding: spacing[4],
backgroundColor: semanticColors.background.default.light,
},
text: {
fontSize: fontSizes.base,
color: semanticColors.foreground.default.light,
},
}Available Tokens
semanticColors: Semantic color tokens for light and dark themesbaseColors: Raw color valuesspacing: Spacing scalefontSizes: Font size scalefontWeights: Font weight valueslineHeights: Line height valuesletterSpacings: Letter spacing valuesborderRadius: Border radius values
Development
Building
pnpm buildTesting
pnpm testLicense
MIT
