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:
co-authored by
Keith Simmons
parent
607719ed26
commit
425473d296
@@ -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",
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user