♻️(tokens) improve tokens generation algo

This way the code is more readable, it makes easier the future
maintenability.
This commit is contained in:
Nathan Panchout
2025-09-17 13:12:49 +02:00
committed by NathanVss
parent a420bcb1ab
commit e24845b427
5 changed files with 1316 additions and 197 deletions

View File

@@ -2,9 +2,8 @@ import { tokens } from "./cunningham-tokens";
export type Configuration = typeof tokens;
export type DefaultTokens = (typeof tokens)["themes"]["default"];
export type DarkTokens = (typeof tokens)["themes"]["dark"];
export const defaultTokens = tokens.themes.default;
export const darkTokens = tokens.themes.dark;
export const defaultThemes = tokens.themes;
/**