mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* UI customizations: new features Fixes #2905 * colors for graphs * introduce env variable * colors for topbar, stats, selected state and tabs * fix build * fix validator * refactor link.primary.hover color token * refactor selected colors * update styles for switch and fix some color tokens * change color for selectable controls * icon color tokens refactoring * UI customizations: new features Fixes #2905 * test for common components * tweaks * migrate from color-mode-hex cookie to color-theme cookie * clean up * update screenshots * more screenshot updates * update default color of chart line * update envs for mega eth
74 lines
1.6 KiB
TypeScript
74 lines
1.6 KiB
TypeScript
import { defineRecipe } from '@chakra-ui/react';
|
|
|
|
export const recipe = defineRecipe({
|
|
className: 'chakra-checkmark',
|
|
base: {
|
|
display: 'inline-flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
flexShrink: '0',
|
|
color: 'white',
|
|
borderWidth: '2px',
|
|
borderColor: 'transparent',
|
|
focusVisibleRing: 'outside',
|
|
_icon: {
|
|
boxSize: 'full',
|
|
},
|
|
_disabled: {
|
|
opacity: 'control.disabled',
|
|
},
|
|
},
|
|
variants: {
|
|
size: {
|
|
xs: {
|
|
boxSize: '3',
|
|
borderRadius: '2px',
|
|
},
|
|
sm: {
|
|
boxSize: '4',
|
|
borderRadius: '2px',
|
|
},
|
|
md: {
|
|
boxSize: '5',
|
|
borderRadius: 'sm',
|
|
},
|
|
},
|
|
|
|
variant: {
|
|
solid: {
|
|
borderColor: 'checkbox.control.border',
|
|
_hover: {
|
|
borderColor: 'checkbox.control.border.hover',
|
|
},
|
|
_readOnly: {
|
|
borderColor: 'checkbox.control.border.readOnly',
|
|
_hover: {
|
|
borderColor: 'checkbox.control.border.readOnly',
|
|
},
|
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
|
bg: 'checkbox.control.border.readOnly',
|
|
color: 'gray.500',
|
|
_hover: {
|
|
bg: 'checkbox.control.border.readOnly',
|
|
},
|
|
},
|
|
},
|
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
|
bg: 'selected.option.bg',
|
|
color: 'white',
|
|
borderColor: 'selected.option.bg',
|
|
_hover: {
|
|
bg: 'hover',
|
|
borderColor: 'hover',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
defaultVariants: {
|
|
variant: 'solid',
|
|
size: 'md',
|
|
},
|
|
});
|