UNPKG

@ygor-ui/presets

Version:

Panda CSS presets for Ark UI components

63 lines (61 loc) 1.5 kB
import { colorPickerAnatomy } from '@ark-ui/react' import { defineSlotRecipe } from '@pandacss/dev' export const colorPicker = defineSlotRecipe({ className: 'colorPicker', description: 'A color picker style', slots: colorPickerAnatomy.keys(), base: { content: { borderRadius: 'l3', borderWidth: '1px', boxShadow: 'lg', padding: '4', maxW: '264px', }, area: { height: '36', borderRadius: 'l2', overflow: 'hidden', }, areaGradient: { height: '100%', }, channelSliderTrack: { height: '2', borderRadius: 'full', }, channelSliderTrackBackground: { overflow: 'hidden', borderRadius: 'full', }, swatchGroup: { display: 'grid', gridTemplateColumns: 'repeat(7, 1fr)', gap: '2', background: 'bg.default', }, swatch: { height: '6', width: '6', borderRadius: 'full', boxShadow: '0 0 0 1px var(--colors-border-emphasized), 0 0 0 2px var(--colors-bg-default) inset', }, areaThumb: { borderRadius: 'full', height: '2.5', width: '2.5', boxShadow: 'white 0px 0px 0px 2px, black 0px 0px 2px 1px', outline: 'none', }, channelSliderThumb: { borderRadius: 'full', height: '2.5', width: '2.5', boxShadow: 'white 0px 0px 0px 2px, black 0px 0px 2px 1px', transform: 'translate(-50%, -50%)', zIndex: '1', outline: 'none', }, }, })