# Looking for CSS Script to style tags

**URL:** <https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326>\
**Category:** Devs: Theme Design & Custom CSS\
**Created:** [September 5, 2025, 11:27pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326 "2025-09-05T23:27:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 5, 2025, 11:27pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/1 "2025-09-05T23:27:04Z")

</div>

Good afternoon. I am looking for an updated CSS snippet that allows me to style tags (change the color, font, weight, border, fill color, etc.) for inline tags and frontmatter tags (as well as frontmatter aliases) in both editing and reading modes. Even better if it integrates into Style Settings plugin! I have searched Obsidian forums and Reddit and found lots of somewhat helpful hits but either the formatting is only for a specific view mode or only works in early versions of Obsidian. Alternatively a plugin would work as well but there seem to be limited choices. Colorful Tags is really what I am after but the GitHub repo is abanondoned, the plugin is way out of date and is buggy. Don’t know if it has been forked and updated. Colored Tag Wrangler is newer but only changes tag color.

Thanks!

---

<div class="post-metadata">

**Author:** ![ninja\_turtle](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/977dab/32.png) [@ninja\_turtle](https://forum.obsidian.md/u/ninja_turtle)\
**Post date:** [September 6, 2025, 6:56am UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/2 "2025-09-06T06:56:48Z")

</div>

You should try this - Colored Tags (by Pavel Frankov)

---

<div class="post-metadata">

**Author:** ![allervoiretregarder](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@allervoiretregarder](https://forum.obsidian.md/u/allervoiretregarder)\
**Post date:** [September 6, 2025, 1:27pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/3 "2025-09-06T13:27:46Z")

</div>

You can explore this [snippets collection](https://github.com/r-u-s-h-i-k-e-s-h/Obsidian-CSS-Snippets/tree/Collection/Snippets).  
You’ll find snippets for tags and many more.

---

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 6, 2025, 4:37pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/5 "2025-09-06T16:37:26Z")

</div>

@ninja_turtle Thank you for the suggestion. I am looking to color and style individual tags as well which is out of the scope of the plugin.

---

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 6, 2025, 4:39pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/6 "2025-09-06T16:39:00Z")

</div>

@allervoiretregarder Thank you! These snippets are exactly what I am looking for. Do you know how to style frontmatter tags and aliases as well as incorporate the CSS into Style Settings plugin?

---

<div class="post-metadata">

**Author:** ![reaty](https://forum.obsidian.md/user_avatar/forum.obsidian.md/reaty/32/44331_2.png) [@reaty](https://forum.obsidian.md/u/reaty)\
**Post date:** [September 6, 2025, 9:56pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/7 "2025-09-06T21:56:49Z")

</div>

I am afraid it is not possible to style tags or other properties in frontmatter individually without a plugin. They have no classes or other indicators that will allow CSS to distinguish between them.

My [plugin](https://github.com/anareaty/pretty-properties) can add colors to the frontmatter tags, but if you want to use pure CSS, there is no way to do this.

---

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 8, 2025, 12:42am UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/8 "2025-09-08T00:42:29Z")

</div>

@reaty thank you for the reply. Can your plugin style frontmatter properties other than color? I don’t necessarily need to use exclusively CSS to style frontmatter properties. How else could I do it? Using HTML?

---

<div class="post-metadata">

**Author:** ![reaty](https://forum.obsidian.md/user_avatar/forum.obsidian.md/reaty/32/44331_2.png) [@reaty](https://forum.obsidian.md/u/reaty)\
**Post date:** [September 8, 2025, 4:47am UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/9 "2025-09-08T04:47:51Z")

</div>

My plugin only adds colors, but it also adds data-attributes to HTML, which allows you to use your own CSS for any custom styles.

The thing is, to change some things you need to change HTML, but the only way to change HTML is to use JavaScript, which mean you need a plugin or at least a custom script. There is no way around that.

---

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 9, 2025, 12:32am UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/10 "2025-09-09T00:32:26Z")

</div>

Your plugin is really slick! Is it possible to change the background shape/color, font size, style, etc. of tags in frontmatter as well? Might be useful options to make tags and aliases and other frontmatter stand out more.

---

<div class="post-metadata">

**Author:** ![reaty](https://forum.obsidian.md/user_avatar/forum.obsidian.md/reaty/32/44331_2.png) [@reaty](https://forum.obsidian.md/u/reaty)\
**Post date:** [September 9, 2025, 7:59am UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/11 "2025-09-09T07:59:48Z")

</div>

This can be done with css.  
For example if you want you frontmatter tags to be bold, you can use something like this:

```auto
.metadata-property[data-property-key="tags"] .multi-select-pill {
font-weight: bold;
}

```

---

<div class="post-metadata">

**Author:** ![bamajon1974](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/a87d85/32.png) [@bamajon1974](https://forum.obsidian.md/u/bamajon1974)\
**Post date:** [September 15, 2025, 5:53pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/12 "2025-09-15T17:53:10Z")

</div>

Great. I actually submitted a post in the plugins section of the forums asking questions on using CSS to format tags. Please take a look if you have a minute.

> [@Questions about custom tag styling using CSS](https://forum.obsidian.md/t/questions-about-custom-tag-styling-using-css/105697):
>
> Good morning. I want to apply custom stlyles to tags using CSS snippets and am requesting help from the coding/CSS experts. I have searched Obsidian forums and Obsidian sub-Redit for custom styles and found the best, simplest snippet to start and build from is from r-u-s-h-i-k-e-s-h - [tag-style](https://github.com/r-u-s-h-i-k-e-s-h/Obsidian-CSS-Snippets/blob/Collection/Snippets/Tag%20styling%2001.md). Please note that I am not a coder and have tried editing and modifying the snippets based on trial and error. To globally style unfocused tags in reading mode: a.tag { color: ; background-color: fo…

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [December 14, 2025, 5:53pm UTC](https://forum.obsidian.md/t/looking-for-css-script-to-style-tags/105326/13 "2025-12-14T17:53:41Z")

</div>

Closed on December 14, 2025, 5:53pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
