This is a simple plugin for Obsidian to add Google's material symbols outlined.
This plugin adds 2 commands to easily add symbols to the current document.
- Hit
Ctrl + P
and search forsymbol
.
You can find 2 options to add the icons:Add Symbol
adds<span class="mso"></span>
Add Symbol (class single-quoted)
to add<span class='mso'></span>
as it could be needed in nested elements.
- After inserting the icon html, the cursor will be set into the tag.
- Add the icon name as expected from Google Material Symbols
<span class="mso">dashboard</span>
should render
this icon:
The following font settings will be applied by default:
Setting | Description |
---|---|
fill | 0 |
weight | 200 |
grade | -25 |
For easier changes you can use one of the following classes to activate other font settings:
Class | Change |
---|---|
fill1 | activates font filling |
weight100 | sets the font-weight to 100 |
weight300 | sets the font-weight to 300 |
weight400 | sets the font-weight to 400 |
weight500 | sets the font-weight to 500 |
weight600 | sets the font-weight to 600 |
weight700 | sets the font-weight to 700 |
grade0 | sets the grade to 0 |
grade200 | sets the grade to 200 |
<span class="mso">dashboard</span>
will render the dashboard icon with weight 200 (default!)<span class="mso weight400 grade200">dashboard</span>
will render the dashboard icon with weight 400 and grade 200