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

56 lines
1.8 KiB
JavaScript
Raw Normal View History

2024-05-05 20:35:38 +00:00
export default {
root: {
2024-05-08 10:51:06 +00:00
width: '3rem',
height: '1.75rem',
2024-05-14 21:42:42 +00:00
borderRadius: '30px',
2024-05-08 10:51:06 +00:00
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-14 22:26:11 +00:00
},
borderWidth: '1px',
borderColor: 'transparent',
invalidBorderColor: '{form.field.invalid.border.color}',
2024-05-25 09:05:29 +00:00
transitionDuration: '{form.field.transition.duration}',
slideDuration: '0.2s'
},
handle: {
borderRadius: '50%',
size: '1.25rem'
2024-05-05 20:35:38 +00:00
},
colorScheme: {
light: {
root: {
background: '{surface.300}',
hoverBackground: '{surface.400}',
2024-05-08 11:04:46 +00:00
checkedBackground: '{primary.color}',
checkedHoverBackground: '{primary.hover.color}'
2024-05-05 20:35:38 +00:00
},
handle: {
background: '{surface.0}',
hoverBackground: '{surface.0}',
checkedBackground: '{surface.0}',
2024-05-14 22:26:11 +00:00
checkedHoverBackground: '{surface.0}'
2024-05-05 20:35:38 +00:00
}
},
dark: {
root: {
background: '{surface.700}',
hoverBackground: '{surface.600}',
2024-05-08 11:04:46 +00:00
checkedBackground: '{primary.color}',
checkedHoverBackground: '{primary.hover.color}'
2024-05-05 20:35:38 +00:00
},
handle: {
background: '{surface.400}',
hoverBackground: '{surface.300}',
checkedBackground: '{surface.900}',
2024-05-14 22:26:11 +00:00
checkedHoverBackground: '{surface.900}'
2024-05-05 20:35:38 +00:00
}
}
}
};