carbon-react
Version:
A library of reusable React components for easily building user interfaces.
12 lines (11 loc) • 481 B
TypeScript
import type { ThemeObject } from "../themes/theme.types";
/**
*
* Converts theme properties to the string in form of css variable definitions.
* Then this string can be used as variable definitions in global or local
* scope, which allows for achieving compatibility when using design tokens in
* form of CSS variables along with styled-components ThemeProvider.
*
*/
declare const _default: (theme: ThemeObject | Record<string, string>) => string;
export default _default;