@scalar/types
Version:
Types to work with Scalar packages
10 lines • 575 B
TypeScript
/** The legacy -> updated CSS variable prefix pairs */
export declare const PREFIX_MIGRATIONS: readonly [readonly ["--theme-", "--scalar-"], readonly ["--sidebar-", "--scalar-sidebar-"]];
export declare const LEGACY_PREFIXES: ("--theme-" | "--sidebar-")[];
/**
* Checks a style string for legacy theme variables and updated them to the new theme variables
*
* @param styles the style string to be checked for legacy theme variables and updated
*/
export declare function migrateThemeVariables(styles: string): string;
//# sourceMappingURL=migrate-theme-variables.d.ts.map