Skip to main content
type TokenValue = {
  value: string | number;
  modify?:   | {
     type: "color-alpha";
     value: number | string;
   }
     | {
     type: "color-hsl";
     value: [number, number, number];
   }
     | {
     type: "color-mix";
     value: ReadonlyArray<string | readonly [string, string]>;
   }
     | {
     type: "multiply";
     value: number | string;
   };
};
Represents a single theme value, which can be a direct value or a reference with modifications.

Properties

PropertyType
valuestring | number
modify?| { type: "color-alpha"; value: number | string; } | { type: "color-hsl"; value: [number, number, number]; } | { type: "color-mix"; value: ReadonlyArray<string | readonly [string, string]>; } | { type: "multiply"; value: number | string; }
I