The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type DesignTokenLeaf } from './types/DesignTokenLeaf';
export const token = (
value: string | { light: string; dark: string },
options?: { unit?: 'number'; jsValue?: 'cssVariable' },
): DesignTokenLeaf =>
typeof value === 'string'
? { light: value, dark: value, ...options }
: { ...value, ...options };