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

216 lines
6.8 KiB
JavaScript
Raw Normal View History

2024-05-13 14:15:43 +00:00
export default {
root: {
width: '25rem',
borderRadius: '{content.border.radius}',
borderWidth: '0 0 0 6px',
transitionDuration: '{transition.duration}'
2024-05-13 14:15:43 +00:00
},
icon: {
size: '1.125rem'
},
content: {
padding: '{overlay.popover.padding}',
gap: '0.5rem'
},
text: {
gap: '0.5rem'
},
summary: {
2024-05-14 22:14:43 +00:00
fontWeight: '700',
2024-05-13 14:15:43 +00:00
fontSize: '1rem'
},
detail: {
fontWeight: '500',
fontSize: '0.875rem'
},
closeButton: {
width: '1.75rem',
height: '1.75rem',
borderRadius: '50%',
focusRing: {
width: '{focus.ring.width}',
style: '{focus.ring.style}',
offset: '{focus.ring.offset}'
}
},
closeIcon: {
size: '1rem'
},
colorScheme: {
light: {
blur: '1.5px',
info: {
2024-05-14 22:14:43 +00:00
background: '{blue.800}',
borderColor: '{blue.800}',
color: '{blue.50}',
detailColor: '{blue.50}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{blue.600}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{blue.50}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
success: {
2024-05-14 22:14:43 +00:00
background: '{green.800}',
borderColor: '{green.800}',
color: '{green.50}',
detailColor: '{green.50}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{green.600}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{green.50}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
warn: {
2024-05-14 22:14:43 +00:00
background: '{yellow.600}',
borderColor: '{yellow.600}',
color: '{yellow.50}',
detailColor: '{yellow.50}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{yellow.400}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{yellow.50}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
error: {
2024-05-14 22:14:43 +00:00
background: '{red.800}',
borderColor: '{red.800}',
color: '{red.50}',
detailColor: '{red.50}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{red.600}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{red.50}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
secondary: {
2024-05-14 22:14:43 +00:00
background: '{surface.200}',
2024-05-13 14:15:43 +00:00
borderColor: '{surface.200}',
2024-05-14 22:14:43 +00:00
color: '{surface.700}',
2024-05-13 14:15:43 +00:00
detailColor: '{surface.700}',
2024-05-14 22:14:43 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{surface.50}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{surface.700}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
contrast: {
background: '{surface.900}',
2024-05-14 22:14:43 +00:00
borderColor: '{surface.900}',
2024-05-13 14:15:43 +00:00
color: '{surface.50}',
detailColor: '{surface.0}',
shadow: '0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)',
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{surface.700}',
2024-05-13 14:15:43 +00:00
focusRing: {
color: '{surface.50}',
shadow: 'none'
}
}
}
},
dark: {
blur: '10px',
info: {
2024-05-14 22:14:43 +00:00
background: '{blue.200}',
borderColor: '{blue.200}',
color: '{blue.950}',
detailColor: '{blue.950}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{blue.50}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{blue.950}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
success: {
2024-05-14 22:14:43 +00:00
background: '{green.200}',
borderColor: '{green.200}',
color: '{green.950}',
detailColor: '{green.950}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{green.50}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{green.950}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
warn: {
2024-05-14 22:14:43 +00:00
background: '{yellow.200}',
borderColor: '{yellow.200}',
color: '{yellow.950}',
detailColor: '{yellow.950}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{yellow.50}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{yellow.950}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
error: {
2024-05-14 22:14:43 +00:00
background: '{red.200}',
borderColor: '{red.200}',
color: '{red.950}',
detailColor: '{red.950}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{red.50}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{red.950}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
secondary: {
2024-05-14 22:14:43 +00:00
background: '{surface.700}',
2024-05-13 14:15:43 +00:00
borderColor: '{surface.700}',
2024-05-14 22:14:43 +00:00
color: '{surface.200}',
detailColor: '{surface.200}',
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{surface.500}',
2024-05-13 14:15:43 +00:00
focusRing: {
2024-05-14 22:14:43 +00:00
color: '{surface.200}',
2024-05-13 14:15:43 +00:00
shadow: 'none'
}
}
},
contrast: {
background: '{surface.0}',
2024-05-14 22:14:43 +00:00
borderColor: '{surface.0}',
2024-05-13 14:15:43 +00:00
color: '{surface.950}',
detailColor: '{surface.950}',
2024-05-14 22:14:43 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-13 14:15:43 +00:00
closeButton: {
2024-05-14 22:14:43 +00:00
hoverBackground: '{surface.200}',
2024-05-13 14:15:43 +00:00
focusRing: {
color: '{surface.950}',
shadow: 'none'
}
}
}
}
}
};