primevue-mirror/components/lib/themes/lara/toggleswitch/index.js

55 lines
1.7 KiB
JavaScript
Raw Normal View History

2024-05-05 20:35:38 +00:00
export default {
handle: {
2024-05-08 10:51:06 +00:00
borderRadius: '50%',
size: '1.25rem'
2024-05-05 20:35:38 +00:00
},
root: {
2024-05-08 10:51:06 +00:00
width: '3rem',
height: '1.75rem',
borderRadius: '30px',
gap: '0.25rem',
shadow: '{form.field.shadow}',
focusRing: {
width: '{form.field.focus.ring.width}',
style: '{form.field.focus.ring.style}',
color: '{form.field.focus.ring.color}',
offset: '{form.field.focus.ring.offset}',
shadow: '{form.field.focus.ring.shadow}'
}
2024-05-05 20:35:38 +00:00
},
colorScheme: {
light: {
root: {
background: '{surface.300}',
invalidBackground: '{red.400}',
hoverBackground: '{surface.400}',
checkedBackground: '{primary.500}',
checkedHoverBackground: '{primary.600}'
},
handle: {
background: '{surface.0}',
hoverBackground: '{surface.0}',
checkedBackground: '{surface.0}',
checkedHoverBackground: '{surface.0}',
invalidBackground: '{surface.0}'
}
},
dark: {
root: {
background: '{surface.700}',
invalidBackground: '{red.300}',
hoverBackground: '{surface.600}',
checkedBackground: '{primary.400}',
checkedHoverBackground: '{primary.300}'
},
handle: {
background: '{surface.400}',
hoverBackground: '{surface.300}',
checkedBackground: '{surface.900}',
checkedHoverBackground: '{surface.900}',
invalidBackground: '{surface.900}'
}
}
}
};