Problem: Indeterminate and determinate.
Solution#
<div class="h-2 w-full overflow-hidden rounded-full bg-slate-200">
<div class="h-full w-2/3 rounded-full bg-blue-600"></div>
</div>Why this works#
Track + fill; width fraction = percentage.
Variants#
- Responsive: add screen prefixes to the core classes
- Dark: pair each color utility with its dark: twin
- Animated: add
transition+ a state variant for motion
Related recipes#
cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns
