UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

25 lines 723 B
/** * @license * Copyright 2025 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ import { CSSResult } from 'lit'; /** * A record object used to convert a component definition into a CSS-usable one. * * ``` * { * // Before: * `container-color`: `red` * } * { * // After: * [`--_container-color`]: unsafeCSS(`var(--md-filled-button-container-color, red)`) * } * ``` */ export declare function createWrappedTokens<T extends Record<PropertyKey, any>>(prefix: string, tokens: T): { [P in keyof T as `--_${string & P}`]: CSSResult; }; export declare function createTokenObject<T extends Record<PropertyKey, string>>(tokens: T): void; //# sourceMappingURL=create-wrapped-tokens.d.ts.map