Unable to style taskbar elements in TaskPaper

Heya!

trying to color the sidebar items

my code

run[tagname] {
   color: blue;
 }

run[tag="data-priority"] {
   color: red;
 }

This works for content but has not effect on the sidebar.

In the manual StyleSheets · GitBook
it says: Target the sidebar element to style the project list sidebar.

my code:

.sidebar run[tagname] {
  color: blue;
}

.sidebar run[tag="data-priority"] {
  color: red;
}

What am i missing? An example in the manual would really help me out

Ziggy

Hi, glad to see you are messing with stylesheets.

Sidebar styling is very limited, your options are either light or dark. Here’s an example of how to force dark styling on the sidebar:

sidebar {
	appearance: NSAppearanceNameVibrantDark
}

Generally TaskPaper stylesheets follow some CSS syntax, but the actual set of attributes that you can style is much smaller. I think the best source (though sidebar example isn’t in there) for learning what you can do is to look at base set of stylesheet rules TaskPaper’s which you can find in:

TaskPaper.app/Contents/Resources/base-stylesheet.less

That’s fine Jesse :slight_smile:

Many thanks for your reply! TaskPaper is nothing short of epic

1 Like