Skip to content
HomePagesHomePages template kit

TokenNameSchema

Validates a design-token name: kebab-case, `[a-z0-9]` groups separated by single hyphens.

Validates a design-token name: kebab-case, [a-z0-9] groups separated by single hyphens. A token’s name is emitted verbatim into both its CSS custom property and its Tailwind utility, so there is no camelCase-to-kebab transform to also get right.

Import from @homepages/template-kit.

const TokenNameSchema: z.ZodString