About this set
Bars that show more than one value, or show a value as a count of blocks. Stacked storage splits 74 GB of 100 GB into photos, videos, documents and apps, with a 2 pixel white gap between the coloured segments and a legend underneath; the coloured bar is decorative and the total and the legend carry the numbers as text. Quota with native meter uses the meter element, which is the right one for a measurement inside a known range such as seats, storage or API calls. Its low, high and optimum attributes let the browser pick the band, so the same CSS paints 12 of 25 seats green, 82 GB of 100 amber and 9,640 of 10,000 API calls red, and the status is also written out in words. Segmented count draws one block per unit, for 3 of 5 setup tasks or 4 of 7 workout days, inside a single role=”progressbar” with the count in aria-valuetext. The meter is styled through ::-webkit-meter-bar and its three value pseudo-elements for Chrome, Edge and Safari, and ::-moz-meter-bar with the sub-optimum pseudo-classes for Firefox.
What’s included
- Stacked storage bar with a legend
- Native meter that changes colour from its low, high and optimum attributes
- Meter styled for WebKit, Blink and Firefox
- Segmented block count for tasks and streaks
- Status written in words as well as colour
- Bootstrap version uses .progress-stacked for the storage bar
Accessibility
The quota meters are native meter elements labelled with label for, so screen readers announce them with their value. The segmented counts are role="progressbar" elements with aria-valuetext such as 3 of 5 tasks done. The stacked storage bar is marked aria-hidden because its heading and legend already give every number as text. Colour is never the only signal: each quota has a status word next to it.
Customise it
Change --sg-track and --sg-accent on .sg, the --c colour on each stacked segment, and --ok, --warn and --bad on the meter in the plain CSS and Bootstrap versions; the meter bands come from its low, high and optimum attributes. In Tailwind edit the sg- theme colours and the sg-meter utility.






