UNPKG

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.

26 lines (25 loc) 673 B
import merge from 'lodash/merge.js'; export const rules = { '.uk-placeholder': { marginBottom: '20px', padding: '30px 30px', background: 'transparent', border: '1px dashed #e5e5e5' }, '* + .uk-placeholder': { marginTop: '20px' }, '.uk-placeholder > :last-child': { marginBottom: '0' } }; export const addHooks = (args) => { const { hooks } = args; const defaultHooks = { 'hook-placeholder': {}, 'hook-misc': {} }; const _hooks = merge(defaultHooks, hooks); return { '.uk-placeholder': { ..._hooks['hook-placeholder'] }, ..._hooks['hook-misc'] }; };