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.

46 lines (45 loc) 1.25 kB
import merge from 'lodash/merge.js'; export const rules = { '.uk-progress': { verticalAlign: 'baseline', display: 'block', width: '100%', border: '0', backgroundColor: '#f8f8f8', marginBottom: '20px', height: '15px', borderRadius: '500px', overflow: 'hidden' }, '* + .uk-progress': { marginTop: '20px' }, '.uk-progress::-webkit-progress-bar': { backgroundColor: 'transparent' }, '.uk-progress::-webkit-progress-value': { backgroundColor: '#1e87f0', transition: 'width 0.6s ease' }, '.uk-progress::-moz-progress-bar': { backgroundColor: '#1e87f0', transition: 'width 0.6s ease' } }; export const addHooks = (args) => { const { hooks } = args; const defaultHooks = { 'hook-progress': {}, 'hook-bar': {}, 'hook-misc': {} }; const _hooks = merge(defaultHooks, hooks); return { '.uk-progress': { ..._hooks['hook-progress'] }, '.uk-progress::-webkit-progress-value': { ..._hooks['hook-bar'] }, '.uk-progress::-moz-progress-bar': { ..._hooks['hook-bar'] }, ..._hooks['hook-misc'] }; };