Snippets
SNIPPET
doctorfree

Snippets

CSS snippets for Obsidian

Obsidian-Snippets

This repository contains various CSS snippets written for Obsidian.

Snippets included here have been gathered and curated by Doctorfree and include freely redistributable snippets from:

Some of these snippets were initially collected by Klaas and further curated by Erica.

Table of Contents

Usage

The Obsidian CSS snippets in this repository are embedded as code blocks in markdown for ease of viewing. To create a CSS snippet use the Copy button in the upper right hand corner of the CSS code block when viewing the markdown in Obsidian. This will copy the CSS snippet to the clipboard. Paste the contents of the clipboard into a file, typically named the same as the markdown but with a .css filename extension rather than .md. Alternatively, copy the markdown file to a new file with .css extension rather than .md and delete all lines up to and including the line beginning with ```css and all lines after and including the line beginning with ```.

To use an Obsidian CSS snippet in an Obsidian vault, copy the snippet to the folder /path/to/vault/.obsidian/snippets/. For example, to use a snippet named MySnippet.css in an Obsidian vault located at /home/ronnie/Documents/MyVault/:

mkdir -p /home/ronnie/Documents/MyVault/.obsidian/snippets
cp /path/to/MySnippet.css /home/ronnie/Documents/MyVault/.obsidian/snippets`

After the snippet is placed in the Obsidian snippets folder, enable it in Obsidian by opening the MyVault vault in Obsidian and navigating to Settings -> Appearance -> CSS snippets. The MySnippet CSS snippet should show up there as a disabled snippet. Click the slider toggle to the right of the snippet to enable it. The MySnippet CSS styling will immediately be applied to your vault documents.

Obsidian

Any markdown viewer can be used to view this knowledge base. You can simply browse the repository and click on the individual markdown files at https://github.com/doctorfree/Obsidian-Snippets.git in any web browser. However, to view the inter-relationships between the many components, categories, and technologies documented here, we recommend using the Obsidian knowledge base engine.

The repository contains the Obsidian theme Doctorfree. To use this theme with Obsidian:

  • Clone or download the repository
    • git clone https://github.com/doctorfree/Obsidian-Snippets.git
  • Create a new Obsidian vault from the folder created above
  • Select the Doctorfree Obsidian theme
    • Go to Settings -> Appearance -> Themes in Obsidian
    • Select Doctorfree from the drop down menu of available themes

[Note:] Obsidian is free for personal non-commercial use but must be purchased in revenue generating operations (see the note on Obsidian license restrictions below).

Markdown_viewers

Recommended markdown viewers, available for all platforms and with many features:

If Obsidian does not suit your needs, there are many free an open source markdown editors and viewers available for all platforms. Doctorfree uses the nb command line and local web note-taking, bookmarking, archiving, and knowledge base application. Obsidian and nb work well together to provide a rich markdown editing, viewing, and management system. See the Obsidian plus NB section below for details.

Several excellent resources exist that provide lists and reviews of popular markdown editors and viewers:

Obsidian is pretty cool though, so try it out.

Clone_and_view_locally

To explore this repository locally or to integrate it into a service, first clone the repository:

git clone https://github.com/doctorfree/Obsidian-Snippets.git

This will result in a local folder, Obsidian-Snippets, containing all of the markdown and supporting file assets. Import these into your markdown viewer. The import method varies from viewer to viewer. To import into Obsidian:

  • Open another vault (or create new vault if first time)
  • Open folder as vault (click "Open")
  • Navigate to the Obsidian-Snippets folder created by git clone ...
  • Click "Open" to create the new Obsidian vault

Included_snippets

The default theme full CSS:

Written by Doctorfree:

Dmytro-Shulha

Included from Dmytro Shulha and elsewhere:

Center TablesDracula SkinText BoxAnimation
Block quote inlineBlock quoteButtons - stylizedCheck box
Clutter removeCommand paletteCountry flag hashtagEdge on left
EmbedsExport to PDFFile explorer - ObsidianFolding arrows
FontFootnotesGraph nodesGutter line numbers
HeadersHTMLHyphenation-JustificationImages
Lines - horizontalLinksLists - (un)orderedMarkers
MermaidNote title in paneOutliner panePanes
Popover-PopupProgress bar vault launchResizable MermaidRibbons
Scroll barSearchSentencesSettings
SidebarSidenotesSpecial effectsStatus bar
TableTag pillsTitle barTooltip
URLsVim Static CaretWYSIWYGYaml

Awesome_Obsidian

Included from Knut Magnus Aasrud:

Autofading uiBetter bullet points in edit modeBigger link popup previewBullet point relationship lines
Collapsing sidebarCustom icons differing files and foldersCustom icons for frontmatter tagsCustom icons for specific folders
Enlarge image on hoverHyphenation and justificationImage cardsMedia grid
Nicer checkboxesOutliner for the outline and file explorerSmaller scrollbarStylish blockquotes
Subtler folding gutter arrowsTag pills

ScottKillen

Included from Scott Killen:

Calendar emojiCalendar starredCalendar weekendsCustom checkboxes
Jesus wordsLabeled navMinimal tweaksPrint
TablesTabular numbersTypography

DustinKnopoff

Included from Dustin Knopoff:

Active file pathAdding cssBigger popup previewBirthdays
Block cursorBuiltin iconsBullet relationsChanging fonts
Collapsible side notesCollapsible sidebarsCustom hrDataview table as cards
Display tags asideEnlarge image on hoverFade controlsFolder file icons
Lined headingList obsidian commandsMaintain line height footnotesNaked embeds
Outliner treePane controls hoverPDF export tweaksPeople nearby
Read fileResponsive typeRetrieve frontmatterSet embed height
Status bar borderStylish quotesTag colorsVim mode line focus

Support

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it

Stats

Stars

42

Forks

0

License

MIT

Last updated 43mo ago

Categories