.root { display: block; width: fit-content; @mixin where-light { --heatmap-level-1: rgba(81, 207, 102, 0.3); --heatmap-level-2: rgba(64, 192, 87, 0.45); --heatmap-level-3: rgba(55, 178, 77, 0.75); --heatmap-level-4: rgba(43, 138, 62, 1); --heatmap-empty-rect-bg: var(--mantine-color-gray-2); } @mixin where-dark { --heatmap-level-1: rgba(43, 138, 62, 0.3); --heatmap-level-2: rgba(47, 158, 68, 0.45); --heatmap-level-3: rgba(55, 178, 77, 0.75); --heatmap-level-4: rgba(81, 207, 102, 1); --heatmap-empty-rect-bg: var(--mantine-color-dark-5); } } .rect { stroke-width: 1px; &:where([data-empty]) { fill: var(--heatmap-empty-rect-bg); } } .monthLabel, .weekdayLabel, .legendLabel { cursor: default; user-select: none; fill: var(--mantine-color-dimmed); } .legendRect { &:where([data-empty]) { fill: var(--heatmap-empty-rect-bg); } }