Update token build script for figma

- Use syntax tokens instead of manually adding token content
- Add solarized to output
- Add ramp step value to the token description in Figma Tokens

Co-Authored-By: Keith Simmons <keith@the-simmons.net>
This commit is contained in:
Nate Butler
2022-04-28 14:08:59 -04:00
co-authored by Keith Simmons
parent 607719ed26
commit 425473d296
8 changed files with 2153 additions and 955 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import chroma, { Scale } from "chroma-js";
import { ColorToken } from "../tokens";
export type Color = string;
export type ColorRampStep = { value: Color; type: "color"; step: number };
export type ColorRampStep = { value: Color; type: "color"; description: string };
export type ColorRamp = {
[index: number]: ColorRampStep;
};
@@ -36,7 +36,7 @@ export function colorRamp(
const step = ix * increment;
ramp[step] = {
value: color,
step,
description: `Step: ${step}`,
type: "color",
};
});