UNPKG

franken-ui

Version:

Franken UI is an HTML-first UI component library built on UIkit 3 and extended with LitElement, inspired by shadcn/ui.

95 lines (94 loc) 4.88 kB
export default { '.uk-theme-switcher': { display: 'flex', // Removed variable - fundamental layout flex: '1 1 auto', // Removed variable - fundamental layout flexDirection: 'column', // Removed variable - fundamental layout gap: 'var(--uk-theme-switcher-gap, 1rem)' }, '.uk-theme-switcher-key': { gap: 'var(--uk-theme-switcher-key-gap, 0.5rem)', display: 'flex', // Removed variable - fundamental layout flexDirection: 'column', // Removed variable - fundamental layout margin: 'var(--uk-theme-switcher-key-margin, 1rem 0 0 0)' }, '.uk-theme-switcher-value': { display: 'grid', // Removed variable - fundamental layout gridTemplateColumns: 'var(--uk-theme-switcher-columns, repeat(3, minmax(0, 1fr)))', gap: 'var(--uk-theme-switcher-value-gap, 0.5rem)' }, '.uk-theme-switcher-value button': { // Layout display: 'inline-flex', // Removed variable - fundamental layout height: 'var(--uk-theme-switcher-button-height, 2rem)', alignItems: 'center', // Removed variable - fundamental layout justifyContent: 'start', // Removed variable - fundamental layout padding: 'var(--uk-theme-switcher-button-padding, 0 0.75rem)', // Typography fontSize: 'var(--uk-theme-switcher-button-font-size, var(--uk-global-font-size-s))', lineHeight: 'var(--uk-theme-switcher-button-leading, var(--uk-global-leading-s))', fontWeight: 'var(--uk-theme-switcher-button-font-weight, 500)', // Visual borderRadius: 'var(--uk-theme-switcher-button-radius, var(--uk-global-radius))', boxShadow: 'var(--uk-theme-switcher-button-shadow, var(--uk-global-shadow-s))', border: 'var(--uk-theme-switcher-button-border, 1px solid hsl(var(--input) / var(--input-alpha, 1)))', backgroundColor: 'var(--uk-theme-switcher-button-bg, hsl(var(--background)))', color: 'var(--uk-theme-switcher-button-color, hsl(var(--foreground)))' }, '.uk-theme-switcher-value button:hover': { transitionProperty: 'background-color', // Removed variable - fundamental transition transitionDuration: 'var(--uk-theme-switcher-button-hover-duration, 150ms)', transitionTimingFunction: 'ease-in-out', // Removed variable - fundamental timing backgroundColor: 'var(--uk-theme-switcher-button-hover-bg, hsl(var(--accent)))', color: 'var(--uk-theme-switcher-button-hover-color, hsl(var(--accent-foreground)))' }, '.uk-theme-switcher-value button.uk-active': { border: 'var(--uk-theme-switcher-button-active-border, 1px solid hsl(var(--primary)))', outline: 'var(--uk-theme-switcher-button-active-outline, 1px solid hsl(var(--primary)))' }, '.uk-theme-switcher-hex': { display: 'flex', // Removed variable - fundamental layout height: 'var(--uk-theme-switcher-hex-size, 1rem)', width: 'var(--uk-theme-switcher-hex-size, 1rem)', // Combined into single size variable flexShrink: '0', // Removed variable - fundamental layout transform: 'var(--uk-theme-switcher-hex-transform, translateX(-0.25rem))', alignItems: 'center', // Removed variable - fundamental layout justifyContent: 'center', // Removed variable - fundamental layout borderRadius: '9999px', // Removed variable - fundamental shape for color preview color: 'var(--uk-theme-switcher-hex-color, white)' }, '.uk-theme-switcher-text:not(:first-child)': { overflow: 'hidden', // Removed variable - fundamental text behavior textOverflow: 'ellipsis', // Removed variable - fundamental text behavior marginLeft: 'var(--uk-theme-switcher-text-margin, 0.5rem)' }, '.uk-radii-none': { '--uk-global-radius-s': '0', '--uk-global-radius': '0' }, '.uk-radii-sm': { '--uk-global-radius-s': '0.25rem', '--uk-global-radius': '0.125rem' }, '.uk-radii-lg': { '--uk-global-radius-s': '0.375rem', '--uk-global-radius': '0.5rem' }, '.uk-shadows-none': { '--uk-global-shadow-s': '0 0 0 0', '--uk-global-shadow': '0 0 0 0' }, '.uk-shadows-md': { '--uk-global-shadow-s': '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)', '--uk-global-shadow': '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)' }, '.uk-shadows-lg': { '--uk-global-shadow-s': '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)', '--uk-global-shadow': '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)' }, '.uk-font-sm': { '--uk-global-font-size': '0.875rem', '--uk-global-leading': '1.25rem', '--uk-global-font-size-s': '0.75rem', '--uk-global-leading-s': '1rem' } };