1.15.0 • Published 5 months ago
@factorialco/factorial-one-core v1.15.0
Factorial One Core
Core tokens and utilities for the Factorial One Design System.
Installation
npm install @factorialco/factorial-one-core
# or
yarn add @factorialco/factorial-one-core
# or
pnpm add @factorialco/factorial-one-core
Usage
import { semanticColors, spacing, fontSizes } from '@factorialco/factorial-one-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 build
Testing
pnpm test
License
MIT
1.15.0
5 months ago
1.14.0
5 months ago
1.13.0
5 months ago
1.12.2
5 months ago
1.12.1
5 months ago
1.12.0
5 months ago
1.11.0
5 months ago
1.10.0
5 months ago
1.9.0
5 months ago
1.8.0
5 months ago
1.7.3
5 months ago
1.7.2
5 months ago
1.7.1
5 months ago
1.7.0
5 months ago
1.6.0
5 months ago
1.5.0
5 months ago
1.4.1
5 months ago
1.4.0
6 months ago
1.3.0
6 months ago
1.0.0
6 months ago
1.2.5
6 months ago
1.2.4
6 months ago
1.2.3
6 months ago