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

215 lines
7.8 KiB
JavaScript
Raw Normal View History

2024-05-05 20:35:38 +00:00
export default {
2024-05-09 15:22:29 +00:00
root: {
width: '25rem',
2024-05-09 15:48:00 +00:00
borderRadius: '{content.border.radius}',
borderWidth: '0 0 0 6px'
2024-05-09 15:22:29 +00:00
},
icon: {
size: '1.25rem'
},
content: {
padding: '{overlay.popover.padding}',
gap: '0.5rem'
},
text: {
gap: '0.5rem'
},
summary: {
fontWeight: '500',
fontSize: '1rem'
},
detail: {
fontWeight: '500',
fontSize: '0.875rem'
},
closeButton: {
width: '2rem',
height: '2rem',
borderRadius: '50%',
focusRing: {
width: '{focus.ring.width}',
style: '{focus.ring.style}',
offset: '{focus.ring.offset}'
}
},
closeIcon: {
size: '1rem'
},
2024-05-05 20:35:38 +00:00
colorScheme: {
light: {
blur: '1.5px',
info: {
background: 'color-mix(in srgb, {blue.50}, transparent 5%)',
2024-05-09 15:48:00 +00:00
borderColor: '{blue.500}',
2024-05-05 20:35:38 +00:00
color: '{blue.600}',
detailColor: '{surface.700}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{blue.100}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {blue.200}'
}
2024-05-05 20:35:38 +00:00
}
},
success: {
background: 'color-mix(in srgb, {green.50}, transparent 5%)',
2024-05-09 15:48:00 +00:00
borderColor: '{green.500}',
2024-05-05 20:35:38 +00:00
color: '{green.600}',
detailColor: '{surface.700}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{green.100}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {green.200}'
}
2024-05-05 20:35:38 +00:00
}
},
warn: {
background: 'color-mix(in srgb,{yellow.50}, transparent 5%)',
2024-05-09 15:48:00 +00:00
borderColor: '{yellow.500}',
2024-05-05 20:35:38 +00:00
color: '{yellow.600}',
detailColor: '{surface.700}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{yellow.100}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {yellow.200}'
}
2024-05-05 20:35:38 +00:00
}
},
error: {
background: 'color-mix(in srgb, {red.50}, transparent 5%)',
2024-05-09 15:48:00 +00:00
borderColor: '{red.500}',
2024-05-05 20:35:38 +00:00
color: '{red.600}',
detailColor: '{surface.700}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{red.100}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {red.200}'
}
2024-05-05 20:35:38 +00:00
}
},
secondary: {
background: '{surface.100}',
2024-05-09 15:48:00 +00:00
borderColor: '{surface.500}',
2024-05-05 20:35:38 +00:00
color: '{surface.600}',
detailColor: '{surface.700}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{surface.200}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {surface.200}'
}
2024-05-05 20:35:38 +00:00
}
},
contrast: {
background: '{surface.900}',
2024-05-09 15:48:00 +00:00
borderColor: '{primary.color}',
2024-05-05 20:35:38 +00:00
color: '{surface.50}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{surface.800}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem {surface.400}'
}
2024-05-05 20:35:38 +00:00
}
}
},
dark: {
blur: '10px',
info: {
background: 'color-mix(in srgb, {blue.500}, transparent 84%)',
borderColor: 'color-mix(in srgb, {blue.700}, transparent 64%)',
color: '{blue.500}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: 'rgba(255, 255, 255, 0.05)',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
},
success: {
background: 'color-mix(in srgb, {green.500}, transparent 84%)',
borderColor: 'color-mix(in srgb, {green.700}, transparent 64%)',
color: '{green.500}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: 'rgba(255, 255, 255, 0.05)',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
},
warn: {
background: 'color-mix(in srgb, {yellow.500}, transparent 84%)',
borderColor: 'color-mix(in srgb, {yellow.700}, transparent 64%)',
color: '{yellow.500}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: 'rgba(255, 255, 255, 0.05)',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
},
error: {
background: 'color-mix(in srgb, {red.500}, transparent 84%)',
borderColor: 'color-mix(in srgb, {red.700}, transparent 64%)',
color: '{red.500}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: 'rgba(255, 255, 255, 0.05)',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
},
secondary: {
background: '{surface.800}',
borderColor: '{surface.700}',
color: '{surface.300}',
detailColor: '{surface.0}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{surface.700}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
},
contrast: {
background: '{surface.0}',
borderColor: '{surface.100}',
color: '{surface.950}',
detailColor: '{surface.950}',
2024-05-09 15:35:57 +00:00
shadow: '{overlay.popover.shadow}',
2024-05-05 20:35:38 +00:00
closeButton: {
2024-05-09 15:22:29 +00:00
hoverBackground: '{surface.100}',
focusRing: {
color: '{focus.ring.color}',
shadow: '0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)'
}
2024-05-05 20:35:38 +00:00
}
}
}
}
};