@insidiouss/sprout
v1.0.4
Published
Sprout design tokens built with Style Dictionary for CSS, JSON, React Native, SwiftUI, and Jetpack Compose.
Maintainers
Readme
Sprout Design Tokens
Design tokens for Sprout, authored in the Design Tokens Community Group 2025.10 format and built with Style Dictionary.
Install
npm install @insidiouss/sproutUsage
Import CSS custom properties:
import "@insidiouss/sprout/css/variables.css";Import generated JSON tokens:
import tokens from "@insidiouss/sprout/tokens.json" with { type: "json" };Import the React Native theme:
import { theme } from "@insidiouss/sprout/react-native";Native platform outputs are included in the package:
@insidiouss/sprout/swiftui
@insidiouss/sprout/composeSource
tokens/core.jsonis the source of truth.- Color tokens are grouped by
colors.lightandcolors.dark. - Color token values use
colorSpace,components,alpha, andhex. - Dimension tokens use
{ "value": number, "unit": "px" }. - Motion duration tokens use
{ "value": number, "unit": "ms" }. - Z-index, spring, and opacity tokens are unitless numbers.
Outputs
build/css/variables.cssexports CSS custom properties.build/json/tokens.jsonexports nested JSON with units preserved.build/react-native/theme.tsexports a typed React Native theme object.build/swiftui/SproutTheme.swiftexports a SwiftUI theme enum.build/compose/SproutTheme.ktexports a Jetpack Compose theme object.
Development
Build generated outputs:
npm run buildCheck formatting:
npm run lint