# CSS Snippets

**URL:** <https://forum.obsidian.md/t/css-snippets/76233>\
**Category:** Help\
**Created:** [February 3, 2024, 11:21am UTC](https://forum.obsidian.md/t/css-snippets/76233 "2024-02-03T11:21:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasmoulson](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thomasmoulson/32/45135_2.png) [@thomasmoulson](https://forum.obsidian.md/u/thomasmoulson)\
**Post date:** [February 3, 2024, 11:21am UTC](https://forum.obsidian.md/t/css-snippets/76233/1 "2024-02-03T11:21:45Z")

</div>

### What I’m trying to do

I don’t know anything about CSS snippets, but seems they are a way to unlock some feature that may be useful, so want to try them. The documentation here seems to say it’s simple [CSS snippets - Obsidian Help](https://help.obsidian.md/Extending+Obsidian/CSS+snippets) but I’m on a Mac and have read something about snippets folder being hidden, and thus unable to add snippets in there. The documentation doesn’t mention anything about this and other things I’ve read start mentioning opening a terminal and a load of coding to get it to work. Does anyone know of a non coding way to input snippets easily for a Mac user? Thanks.

### Things I have tried

Just reading, I don’t want to go messing about with things before it at least seems logical..

---

<div class="post-metadata">

**Author:** ![holroy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/holroy/32/77699_2.png) [@holroy](https://forum.obsidian.md/u/holroy)\
**Post date:** [February 3, 2024, 11:44am UTC](https://forum.obsidian.md/t/css-snippets/76233/2 "2024-02-03T11:44:07Z")

</div>

> [@thomasmoulson](#):
>
> The documentation here seems to say it’s simple [CSS snippets - Obsidian Help](https://help.obsidian.md/Extending+Obsidian/CSS+snippets) but I’m on a Mac and have read something about snippets folder being hidden, and thus unable to add snippets in there.

You can edit these files locally with a normal text editor, the way to do so is as follows:

- Open the folder with your vault in _Finder_, and hit `Cmd + Shift + . `, this will reveal the hidden files in that folder
- Continue navigation to `.obsidian/snippets`, and there you’ll see all your snippets, and can choose to edit or create new files at your will

Another way to open this folder from inside _Obsidian_, is to go to _Settings \> Appearance_, and scroll down to _CSS snippets_ and hit the folder icon on the right of that line, which will open this folder in your file explorer. This place is also where you enable/disable your snippets if you desire to do so.

## Use _CSS Editor_ plugin

> [@thomasmoulson](#):
>
> Does anyone know of a non coding way to input snippets easily for a Mac user?

You do need to code the CSS manually, but @Zachatoo has made a plugin which makes this process even easier. You install this plugin, and assign some hotkeys to its command to create, edit or delete CSS snippets. Now you’re allowed to open these within Obsidian, and get proper styling when editing the CSS.

Finally the guide below can also be a good thing to read through to get you started on editing these snippets.

> [@Obsidian CSS Inspector Workflow](https://forum.obsidian.md/t/obsidian-css-quick-guide/58178):
>
> Obsidian CSS Inspector Workflow This was originally called “Obsidian CSS Quick Guide” but it ended up being more focused on the inspector. As a retrospective change to help people use this as a resource, it has been renamed. – FireIsGood Hi friends! CSS in Obsidian can be confusing to get into, so this is a guide to get you started with information on the tools, methods, and some background knowledge! Let’s get started by looking at how you can look behind the curtain of Obsidian’s visuals. …

---

<div class="post-metadata">

**Author:** ![thomasmoulson](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thomasmoulson/32/45135_2.png) [@thomasmoulson](https://forum.obsidian.md/u/thomasmoulson)\
**Post date:** [February 3, 2024, 12:00pm UTC](https://forum.obsidian.md/t/css-snippets/76233/3 "2024-02-03T12:00:32Z")

</div>

Thanks holroy. I think I’m going to leave snippets and CSS for a rainy day… better not try to fix something that isn’t broken I’m thinking, and I know my current limits! I had got as far as finding my hidden snippets folder a couple of days ago, but I’m not sure I can have access for adding anything in there? The folder is faded which I believe shows it is hidden… doesn’t this mean there is no access to it also? Anyhow, I’ve saved the link you send for that rainy day!

 ![Screenshot 2024-02-03 at 11.56.16](https://forum.obsidian.md/uploads/default/original/3X/e/f/efed668149273a3449480673c901fd72a71247cd.png)

---

<div class="post-metadata">

**Author:** ![holroy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/holroy/32/77699_2.png) [@holroy](https://forum.obsidian.md/u/holroy)\
**Post date:** [February 3, 2024, 12:20pm UTC](https://forum.obsidian.md/t/css-snippets/76233/4 "2024-02-03T12:20:40Z")

</div>

It’s hidden because “normally” you don’t need to see it, but it being hidden is not connected to it being unavailable for editing. Of course a little bit of care should be taken when changing stuff in there, but the `.obsidian/snippets` folder is made for editing of these snippets.

And by using the _CSS Editor_ plugin, you can do so without the hassle of file manouvering! 😃

But I can understand the sentiment on not going down this road before you’re ready to do so. You can have loads of fun (and frustration) when starting to edit CSS… 😃

---

<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:** [May 3, 2024, 12:21pm UTC](https://forum.obsidian.md/t/css-snippets/76233/5 "2024-05-03T12:21:01Z")

</div>

Closed on May 3, 2024, 12:21pm UTC

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