@ozen-ui/kit
Version:
React component library
15 lines (14 loc) • 440 B
JavaScript
import { __read } from "tslib";
import { useTheme } from '../useTheme';
export function useThemeVariables() {
var theme = useTheme();
var tokens = theme.tokens;
var variables = {};
Object.entries(tokens).forEach(function (_a) {
var _b = __read(_a, 2), _tokenName = _b[0], token = _b[1];
var tokenName = _tokenName;
variables[tokenName] =
token.properties;
});
return variables;
}