Socket
Book a DemoInstallSign in
Socket

@factorialco/f0-core

Package Overview
Dependencies
Maintainers
7
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@factorialco/f0-core

Core tokens and utilities for F0 Design System

latest
npmnpm
Version
1.33.0
Version published
Maintainers
7
Created
Source

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

Usage

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 themes
  • baseColors: Raw color values
  • spacing: Spacing scale
  • fontSizes: Font size scale
  • fontWeights: Font weight values
  • lineHeights: Line height values
  • letterSpacings: Letter spacing values
  • borderRadius: Border radius values

Development

Building

pnpm build

Testing

pnpm test

License

MIT

Keywords

factorial

FAQs

Package last updated on 24 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts