The Open Standard for Generative UI
@use "../../../cssUtils" as cssUtils;
@use "../shared/cartesian/chartBase" as base;
@use "../prefix" as brand;
@include base.centered-container("pie-chart");
@include base.centered-svg-wrapper("pie-chart");
// The donut's inner wedges, under the thin colored band.
.#{brand.$prefix}-pie-chart-track {
fill: cssUtils.$sunk;
}
// Entrances are decorative: gate the whole rule (pre-state included) behind
// reduced-motion so users who opt out get the natural static state immediately
// — gating only the animation would strand elements at the opacity: 0 start.
@media (prefers-reduced-motion: no-preference) {
.#{brand.$prefix}-pie-chart-slice--animated {
opacity: 0;
transform-origin: center center;
animation: #{brand.$prefix}-pie-appear 0.6s ease-out forwards;
}
}
@keyframes #{brand.$prefix}-pie-appear {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}