Parameters
- tokens: Record<string, any>
- options: {
formatKey?: (key: string, kebabCase: boolean) => string;
important?: boolean;
kebabCase?: boolean;
prefix?: string;
target?: HTMLElement;
} = {}
Returns {
apply: (obj: Record<string, any>, currentPrefix?: string) => void;
getAppliedVariables: () => string[];
remove: () => void;
update: (newTokens: Record<string, any>, basePrefix?: string) => void;
}
Object containing apply, update, and remove methods
Adds JSS tokens to the browser as CSS variables Uses the fromTokens function for token processing