@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
31 lines (27 loc) • 880 B
JavaScript
;
var xUtils = require('@empathyco/x-utils');
var colors = require('./colors.js');
var _default = require('./default.js');
var ghost = require('./ghost.js');
var outlined = require('./outlined.js');
var sizes = require('./sizes.js');
/**
* Returns the component `suggestion` CSS.
*
* @param helpers - The {@link TailwindHelpers} to generate CSS.
* @returns The {@link CssStyleOptions} for the component.
*/
function suggestion(helpers) {
return {
'.x-suggestion': {
..._default.suggestionDefault(helpers),
...xUtils.rename({
...colors.suggestionColors(helpers),
...sizes.suggestionSizes(helpers),
...outlined.suggestionOutlined(helpers),
...ghost.suggestionGhost(helpers),
}, { prefix: '&-' }),
},
};
}
exports.suggestion = suggestion;