UNPKG

@ygor-ui/presets

Version:

Panda CSS presets for Ark UI components

91 lines (89 loc) 1.68 kB
import { tabsAnatomy } from '@ark-ui/react' import { defineSlotRecipe } from '@pandacss/dev' export const tabs = defineSlotRecipe({ className: 'tabs', description: 'A tabs style', slots: tabsAnatomy.keys(), base: { list: { display: 'flex', flexDirection: { _horizontal: 'row', _vertical: 'column', }, gap: { _horizontal: '4', _vertical: '1', }, borderBottomWidth: { _horizontal: '1px', }, borderLeftWidth: { _vertical: '1px', }, position: 'relative', }, trigger: { transitionDuration: 'normal', transitionProperty: 'color', transitionTimingFunction: 'default', cursor: 'pointer', color: 'fg.subtle', fontWeight: 'semibold', px: { _horizontal: '1', _vertical: '3', }, pb: { _horizontal: '3', }, py: { _vertical: '1.5', }, _hover: { color: 'fg.muted', }, _selected: { color: 'fg.default', _hover: { color: 'fg.default', }, }, }, indicator: { background: 'accent.default', height: { _horizontal: '2px', }, bottom: { _horizontal: '-1px', }, width: { _vertical: '2px', }, left: { _vertical: '-1px', }, }, content: { mt: '5', }, }, defaultVariants: { size: 'md', }, variants: { size: { sm: { trigger: { textStyle: 'sm', }, }, md: { trigger: { textStyle: 'md', }, }, }, }, })