alouette
Version:
A modern, customizable design system built on top of NativeWind v5 with configurable defaults
41 lines (39 loc) • 1.38 kB
text/typescript
/* eslint-disable import-x/extensions */
// Public entry for `alouette/theme-generator`: generate a coherent theme (CSS +
// runtime themeVariables) for the alouette accents from hue params, staying on
// the OKLCH ramp. Node-only, imported from an app's build script — `writeTheme`
// writes the palette CSS and the themeVariables module to disk the way
// scripts/build-css.ts does for the default palette; `generateTheme` returns
// them if the app writes the files itself.
export type {
AccentName,
PaletteSpec,
} from "./theme-generator/paletteSpecs.ts";
export { defaultPaletteSpecs } from "./theme-generator/paletteSpecs.ts";
export type {
ColorScale,
Gamut,
OklchColor,
OklchScale,
} from "./theme-generator/createColorScale.ts";
export {
createColorScale,
createOklchScale,
maxChroma,
} from "./theme-generator/createColorScale.ts";
export type {
ColorFormatName,
ThemeScales,
} from "./theme-generator/buildTheme.ts";
export {
buildOklchPaletteCss,
buildPaletteCss,
buildThemeVariables,
} from "./theme-generator/buildTheme.ts";
export type { GenerateThemeResult } from "./theme-generator/generateTheme.ts";
export { generateTheme } from "./theme-generator/generateTheme.ts";
export type {
WriteThemeParams,
WriteThemeResult,
} from "./theme-generator/writeTheme.ts";
export { writeTheme } from "./theme-generator/writeTheme.ts";