SNIPPETjorins

Css Snippets

Personal repository of CSS snippets for Obsidian

CSSAny theme
Personal set of Obsidian snippets.

# Installation

Symlink snippets into your vault:

```sh
$ ln -s /path/to/obsidian-css-snippets/snippets /path/to/obsidian-vault/.obsidian/snippets
```

# Snippets

## `colours.css`

Definition of a personal palette of colours. Obsidian has [a set of predefined
colours](https://docs.obsidian.md/Reference/CSS+variables/Foundations/Colors)
but I didn't quite like these so I made my own set.

## `image-opts.css`

Modifiers that can be applied to images using pipes e.g.

```md
![[path/to/image.png|center]]
```

### Available modifiers

| CSS class      | Effect |
| -------------- | ------ |
| `center`       | Center image |
| `invert-dark`  | Invert image and rotate hue by 180 degrees on dark theme |
| `invert-light` | Invert image and rotate hue by 180 degrees on light theme |

## `sidebar.css`

Sidebar customisation. Based on
[Obsidian-Colored-Sidebar](https://github.com/CyanVoxel/Obsidian-Colored-Sidebar)
by CyanVoxel (MIT license).

How to Install

  1. Download the CSS file below
  2. Move it to your vault's .obsidian/snippets/ folder
  3. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it
Download snippet.css

Stats

Stars

1

Forks

0

License

MIT

Last updated 17mo ago