Skip to main content
Version: 1.x

@microsoft/fast-foundation > CSSDesignToken

CSSDesignToken interface

A that emits a CSS custom property.

Signature:
export interface CSSDesignToken<T extends string | number | boolean | BigInteger | null | Array<any> | symbol | ({
createCSS?(): string;
} & Record<PropertyKey, any>)> extends DesignToken<T>, CSSDirective

Properties

PropertyTypeDescription
cssCustomPropertystringThe formatted as a CSS custom property if the token is configured to write a CSS custom property.

Methods

MethodDescription
createCSS()