theme-vir
Version:
Create an entire web theme.
14 lines (13 loc) • 412 B
JavaScript
import { css } from 'element-vir';
/**
* Creates foreground and background CSS code. The foreground color is applied to the CSS `color`
* property and the background color is applied to the CSS `background-color` property.
*
* @category Color Theme
*/
export function colorCss(color) {
return css `
color: ${color.foreground.value};
background-color: ${color.background.value};
`;
}