Private
Public Access
1
0
Files

19 lines
428 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "themeToTokensObject", {
enumerable: true,
get: function() {
return themeToTokensObject;
}
});
function themeToTokensObject(theme) {
const tokens = {};
const keys = Object.keys(theme);
for (const key of keys){
tokens[key] = `var(--${String(key)})`;
}
return tokens;
}