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

59 lines
1.8 KiB
JavaScript
Raw Normal View History

export default {
2024-05-05 16:03:43 +00:00
root: {
2024-05-08 10:51:06 +00:00
width: '2.5rem',
height: '1.5rem',
borderRadius: '30px',
gap: '0.25rem',
shadow: '{form.field.shadow}',
focusRing: {
width: '{focus.ring.width}',
style: '{focus.ring.style}',
color: '{focus.ring.color}',
offset: '{focus.ring.offset}',
shadow: '{focus.ring.shadow}'
2024-05-14 22:26:11 +00:00
},
borderWidth: '1px',
borderColor: 'transparent',
2024-05-25 09:52:59 +00:00
hoverBorderColor: 'transparent',
checkedBorderColor: 'transparent',
checkedHoverBorderColor: '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: '1rem'
2024-05-05 16:03:43 +00:00
},
2024-02-20 20:46:42 +00:00
colorScheme: {
light: {
root: {
background: '{surface.300}',
2024-03-13 18:50:24 +00:00
hoverBackground: '{surface.400}',
2024-05-08 11:04:46 +00:00
checkedBackground: '{primary.color}',
checkedHoverBackground: '{primary.hover.color}'
},
2024-02-20 20:46:42 +00:00
handle: {
background: '{surface.0}',
2024-03-13 18:50:24 +00:00
hoverBackground: '{surface.0}',
checkedBackground: '{surface.0}',
2024-05-14 22:26:11 +00:00
checkedHoverBackground: '{surface.0}'
2024-02-20 20:46:42 +00:00
}
},
dark: {
root: {
background: '{surface.700}',
2024-03-13 18:50:24 +00:00
hoverBackground: '{surface.600}',
2024-05-08 11:04:46 +00:00
checkedBackground: '{primary.color}',
checkedHoverBackground: '{primary.hover.color}'
2024-02-20 20:46:42 +00:00
},
handle: {
background: '{surface.400}',
2024-03-13 18:50:24 +00:00
hoverBackground: '{surface.300}',
checkedBackground: '{surface.900}',
2024-05-14 22:26:11 +00:00
checkedHoverBackground: '{surface.900}'
}
}
}
};