@aegisjsproject/styles
Version:
Pre-made and reusable styles for `@aegisjsproject/core`
16 lines (12 loc) • 539 B
JavaScript
import { css } from '@aegisjsproject/parsers/css.js';
import { customProperties } from './consts.js';
export const properties = css`${Object.entries(customProperties).map(
([name, { initialValue, inherits = true, syntax = '*' }]) => `@property --aegis-${name} {
syntax: "${syntax}";
inherits: ${inherits};
initial-value: ${initialValue};
}`
).join('\n\n')}`;
export const propertiesLegacy = css`:root {
${Object.entries(customProperties).map(([name, { initialValue }]) => `--aegis-${name}: ${initialValue};\n`).join('\n')}
}`;