UNPKG

@ygor-ui/presets

Version:

Panda CSS presets for Ark UI components

69 lines (67 loc) 1.31 kB
import { rangeSliderAnatomy } from '@ark-ui/react' import { defineSlotRecipe } from '@pandacss/dev' export const rangeSlider = defineSlotRecipe({ className: 'range-slider', description: 'A range slider style', slots: rangeSliderAnatomy.keys(), base: { root: { width: 'full', }, control: { position: 'relative', display: 'flex', alignItems: 'center', }, track: { backgroundColor: 'bg.muted', borderRadius: 'l2', flex: '1', }, range: { background: 'accent.default', borderRadius: 'l2', }, thumb: { background: 'bg.default', borderColor: 'border.accent', borderRadius: 'full', borderWidth: '2px', boxShadow: 'sm', outline: 'none', }, label: { color: 'fg.emphasized', fontWeight: 'semibold', }, }, defaultVariants: { size: 'md', }, variants: { size: { md: { control: { py: '2', }, range: { height: '2', }, track: { height: '2', }, thumb: { height: '6', width: '6', }, marker: { mt: '2', textStyle: 'sm', }, label: { textStyle: 'sm', }, }, }, }, })