DEV Community

Cover image for Custom Progressbar - Beer CSS Tips #1
Leonardo Rafael Wehrmeister
Leonardo Rafael Wehrmeister

Posted on • Edited on • Originally published at beercss.com

7 4 2 2 2

Custom Progressbar - Beer CSS Tips #1

Hello,

I want to share a serie of posts containing some tips of Beer CSS. Beer CSS is a new framework around, based on (not restricted to) Material Design 3. Material Design 3 is a design system created by Google. In this post, we will learn about custom progressbar. The logic of progressbar is very simple.

If you don't known the concept of settings, elements and helpers used by Beer CSS, you can read this page.

1) You need to place a progress element inside another element.

<*>
  <progress class="max"></progress>
</*>
Enter fullscreen mode Exit fullscreen mode

2) Do not forget to change the direction helpers like horizontal (default) or vertical.

<*>
  <progress class="max vertical"></progress>
</*>
Enter fullscreen mode Exit fullscreen mode

3) You can apply a color helper too.

<*>
  <progress class="max green-text"></progress>
</*>
Enter fullscreen mode Exit fullscreen mode

The helpers of Beer CSS can be used in any element. This makes the framework very customizable. It has the same logic and names in all ways. This makes the Beer CSS very easy to understand and reuse. I made a codepen here.

Hope you enjoy 🍺

Beer CSS:
https://www.beercss.com

Material Design 3:
https://m3.material.io/

Codepen:
https://codepen.io/leo-bnu/pen/poLeoQa

About settings, elements and helpers used by Beer CSS:
https://github.com/beercss/beercss/blob/main/docs/INDEX.md

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay