Theme Development Questions

I was starting to work on my own theme today and I’m currently a little confused as to the best way to conduct theme development. Several things don’t seem to work how I’d expect so I wanted to just get out a few questions:

  1. What’s the best way to see all of the available selectors, other than the starter template or an existing theme? Is there any way to “inspect” the app to see what the selector of things is?
  2. I’m having some trouble visualizing how my style changes will take effect. They don’t seem to take effect immediately (more on this in a second) and so far it’s been really hard to just riff on the styles like I would in the browser.
  3. I made a new theme today, activated the project as an extension and it wasn’t showing as an available new theme. I remember this working just fine before, but on the latest version of the app, it doesn’t seem to be working, even after a restart or restarting the app itself.
  4. Are there any options to do special styles for a given language? I saw another forum post that seemed to suggest you could do something like <Language>.tag.attribute.name { ... }.

Just an observation…support for JSX syntax highlighting is super weak. While these types of things are largely up to the theme author, even the default themes just have terrible JSX support. Here’s a quick visual comparison of Nova (on the left) and Visual Studio Code (running basically stock Night Owl) on the right.

Nova Palette Theme

Nova Night Owl (Dark) Theme port

Any clarification or advice on the above would be most appreciated.

Hey @iansvo, can’t answer all your questions, but for the first one you can enable the inspector toggle and hover over an element in the interface to get its selector and active styles.

6 Likes

I am having the same problems as described in the OP.

@iansvo have you found a way to solve these?
@ktch thanks for that invaluable tip!

Update: I was able to find my development themes in the theme selector. I got thrown off, because they don’t seemed to be sorted alphabetically, but rather first Nova themes, then all other themes in alphabetical order.