Progress Bars
Primary offers styled Progress Bars out of the box, which you can use inside your notes.
This isn’t a markdown feature so implementing it will be via using HTML tags.
Here’s the code you can use to start:
progress
activates the progress bar element. Don’t forget the closing tag</progress>
— or else it won’t show!max
is the maximum value of the progress bar.value
is the current value of the progress bar. If you set the value to 5, it will cover only 5% of the progress bar.
Customization
Customization for this feature is available from Primary 2.9.0 and above. Make sure to have Style Settings installed and turned on. Here are the steps to customize them:
- In your Obsidian vault, open up Settings.
- Under Community Plugins, click on Style Settings. Optionally, if you prefer to customize outside of the Settings modal, you can open up Style Settings through the Command Palette and looking for
Style Settings: Show style settings view
. - On the Style Settings tab, navigate to Primary Theme Settings -> Components -> Progress
- Under Progress, you’ll find the all customization options such as width, height, and colors.