@wordpress/style-engine
Version:
A suite of parsers and compilers for WordPress styles.
20 lines (17 loc) • 365 B
text/typescript
/**
* Internal dependencies
*/
import type { Style, StyleOptions } from '../../types';
import { generateRule } from '../utils';
const background = {
name: 'background',
generate: ( style: Style, options: StyleOptions ) => {
return generateRule(
style,
options,
[ 'color', 'background' ],
'backgroundColor'
);
},
};
export default background;