Get started

Install the package once, then use the output that fits your stack. Every output carries the same values.

Install

Flint is a private package on GitHub. Install it with a semver range so npm update picks up new minor and patch releases and never jumps a major.

Terminal
npm install "github:InnerSpark/flint#semver:^1.13.0"

iOS apps add the same repository as a Swift package instead. See iOS and SwiftUI.

Pick your platform

What you get

ImportWhat it is
@innerspark/flint/tokens.cssEvery token as a CSS variable. Dark mode with data-theme="dark".
@innerspark/flint/tokens.media.cssThe same, with dark mode following the system setting.
@innerspark/flintTyped JS exports of every resolved value.
@innerspark/flint/muiThe MUI theme factory, createFlintTheme.
@innerspark/flint/shadcn.cssThe bridge from shadcn/ui variables to Flint.
@innerspark/flint/tokens.jsonResolved values as JSON, for tools like Style Dictionary.
@innerspark/flint/tokens.dtcg.jsonW3C design token format, with references kept, for Tokens Studio.
@innerspark/flint/contrast.jsonEvery contrast pairing the build measured, with its ratio.