@gouvfr-lasuite/ui-tokens
v3.1.0
Published
The UI Kit design-token engine, now maintained in the La Suite numérique UI monorepo. Existing runtime conventions remain stable:
Keywords
Readme
@gouvfr-lasuite/ui-tokens
The UI Kit design-token engine, now maintained in the La Suite numérique UI monorepo. Existing runtime conventions remain stable:
- the binary is still named
cunningham; - generated files are still named
cunningham-tokens.*; - generated CSS custom properties still use the
--c--prefix; buildRefs,getThemesFromGlobalsand the default tokens remain public.
CLI
yarn add --dev @gouvfr-lasuite/ui-tokens
cunningham -g css,scss,js,ts -o srcThe CLI reads cunningham.ts, cunningham.js or cunningham.cjs from the
working directory. The default CSS tokens are also available through:
@use "@gouvfr-lasuite/ui-tokens/default-tokens";import {
buildRefs,
defaultTokenRefs,
getThemesFromGlobals,
} from "@gouvfr-lasuite/ui-tokens";