@authress/component-library
Version:
Authress component library - Provides full featured web components to provide easy and direct integration with Authress.
9 lines (8 loc) • 695 B
JavaScript
;
exports.__esModule = true;
exports.default = setTheme;
var _lit = require("lit");
function setTheme() {
const defaultColors = [`--primary: ${getComputedStyle(this).getPropertyValue('--primary').trim() || '#1D2F3B'}`, `--dark: ${getComputedStyle(this).getPropertyValue('--dark').trim() || '#000515'}`, `--light: ${getComputedStyle(this).getPropertyValue('--light').trim() || '#FFFFFF'}`, `--gray: ${getComputedStyle(this).getPropertyValue('--gray').trim() || '#465865'}`, `--info: ${getComputedStyle(this).getPropertyValue('--info').trim() || '#FFFFFF'}`, ''];
return (0, _lit.html)` <style>*,:after,:before{box-sizing:border-box}:host{${defaultColors.join(';\n')}}</style>`;
}