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

37 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-05-13 14:15:43 +00:00
export default {
root: {
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: '{form.field.border.color}',
2024-05-25 09:52:59 +00:00
hoverBorderColor: '{form.field.border.color}',
checkedBorderColor: '{primary.color}',
checkedHoverBorderColor: '{primary.color}',
2024-05-14 22:26:11 +00:00
invalidBorderColor: '{form.field.invalid.border.color}',
background: '{form.field.background}',
hoverBackground: '{form.field.background}',
checkedBackground: '{primary.color}',
checkedHoverBackground: '{primary.color}',
2024-05-25 09:05:29 +00:00
transitionDuration: '{form.field.transition.duration}',
slideDuration: '0.1s'
},
handle: {
borderRadius: '50%',
size: '1rem',
background: '{form.field.border.color}',
hoverBackground: '{form.field.border.color}',
checkedBackground: '{primary.contrast.color}',
checkedHoverBackground: '{primary.contrast.color}'
2024-05-13 14:15:43 +00:00
}
};