@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
13 lines (11 loc) • 352 B
JavaScript
/**
* @file Themes.
* @copyright IBM Security 2019 - 2021
*/
import { formatTokenName, g100 } from '@carbon/themes';
var theme = {};
// Rewrites the theme using CSS custom properties.
Object.keys(g100).forEach(function (token) {
theme[token] = "var(--cds-".concat(formatTokenName(token), ", ").concat(g100[token], ")");
});
export default theme;