obsidian-workspaces-plus icon indicating copy to clipboard operation
obsidian-workspaces-plus copied to clipboard

What might per workspace CSS look like?

Open jsmorabito opened this issue 3 years ago • 4 comments

  • could a CSS snippet (or multiple) be loaded with a workspace?
  • or maybe a whole theme like the theme picker plugin?

jsmorabito avatar Sep 11 '21 14:09 jsmorabito

Ooh this is something that I'd like! One of the easiest ways of allowing people to style it would be to add slugified name or workspace index to body of the electron document. That would allow users to style each workspace accordingly!

jplattel avatar Sep 22 '21 20:09 jplattel

Interesting. Yeah, adding a class to the body is super simple. Can definitely accommodate that in short order.

The scope of this issue is broader and includes being able to choose distinct themes per workspace and maybe light/dark mode per workspace. Perhaps a simple CSS class on the body and setting light/dark is more useful in the short term though.

nothingislost avatar Sep 23 '21 00:09 nothingislost

As a non-coder, I'd love to have the ability to assign a distinct theme to a workspace. I really need visual reinforcement for contextual guardrails in Obsidian -- when you have an app that can do virtually anything, creating design reinforcements for specific workflows is super helpful.

jebeaudoin avatar Sep 27 '21 20:09 jebeaudoin

With the new data-workspace-name attribute I can now style the status-bar and the workspace selector accordingly, thanks! Here's what an example looks like:

I've used the following css: https://gist.github.com/jplattel/42b57ff52c867e7104bf34f4e925bb94 👍

jplattel avatar Sep 27 '21 21:09 jplattel