Skip to content

Instantly share code, notes, and snippets.

deathau /
Last active Feb 23, 2021
Obsidian scss

Obsidian SASS theme switching tools

I was building up a small library of css snippets, and mixing and matching via copy-paste was getting tiresome.
So, I knocked myself up a little solution using
To use this solution, you need to follow the instructions on the website to install the SASS command line utility.


For my purposes, I created a subfolder in my Obsidian vault called ./.themes where my obsidian.scss file lives. I also created a subfolder for mixins (./.themes/mixins) containing small snippets like "Andy Matuschak" mode and collapsing sidebars (and my preferred custom colours for my Base2Tone theme)

deathau / darkTheme.css
Last active Sep 13, 2018
Slack Dark theme
View darkTheme.css
/* Scrollbar Chrome*/
*::-webkit-scrollbar {
width: 10px !important;
height: 10px !important;
background: #1e1e1e !important;
border: 1px solid #252525 !important;
*::-webkit-scrollbar-button {
display: none !important;
View PrimaryViewController.m
- (void)viewDidLoad
[super viewDidLoad];
[indicator startAnimating];
//setup secondary view controller and move to near the bottom of the view
self.secondaryViewController = [[SecondaryViewController alloc] initWithNibName:@"SecondaryViewController" bundle:nil]; = CGPointMake(, 555.0F);
self.secondaryViewController.pageSize = 3;