franken-ui
Version:
Franken UI is an HTML-first, open-source library of UI components based on the utility-first Tailwind CSS with UIkit 3 compatibility. The design is based on shadcn/ui ported to be framework-agnostic.
21 lines (20 loc) • 549 B
JavaScript
import merge from 'lodash/merge.js';
export const rules = {
".uk-svg, .uk-svg:not(.uk-preserve) [fill*='#']:not(.uk-preserve)": {
fill: 'currentcolor'
},
".uk-svg:not(.uk-preserve) [stroke*='#']:not(.uk-preserve)": {
stroke: 'currentcolor'
},
'.uk-svg': { transform: 'translate(0, 0)' }
};
export const addHooks = (args) => {
const { hooks } = args;
const defaultHooks = {
'hook-misc': {}
};
const _hooks = merge(defaultHooks, hooks);
return {
..._hooks['hook-misc']
};
};