nordtheme / atom-syntax

An arctic, north-bluish clean and elegant Atom syntax theme.
https://www.nordtheme.com/ports/atom-syntax
MIT License
73 stars 7 forks source link

ReStructuredText language support #37

Closed adrian5 closed 7 years ago

adrian5 commented 7 years ago

I love to work with this theme, but ReStructuredText (a documentation language I use a lot) comes off very monotone, even for my tastes.

If more use could be made of nord-atom's color palette, I think it would improve the readability of ReST documents.

Thanks!

arcticicestudio commented 7 years ago

Thanks for your proposal 👍 I rarely used ReST docs and thought the markup or markdown/gfm selectors would include th scope for these files, but it looks indeed a bit too monotone because some element selectors are language specific.

I've implemented optimized styles for

You can test it by checking out the 🌱 feature/ghi-#37-restructuredtext-language-support branch.

adrian5 commented 7 years ago

Thanks for the quick update!

What do you think about having bold and emphasized spans sharing the color of the asterisks surrounding them? I find it makes them stand out in a good way and could even see one of them taking on the pinkish hue (usually used by numbers I think) from the nord palette.

If however, that would go against your minimalist design philosophy, I can understand that angle.

arcticicestudio commented 7 years ago

I like the idea to have bold and italic elements to be colored with their key characters. You can pull the latest commit to get the changes 😄 But if you'd like to colorize them with nord15 feel free to add it to your ~/.atom/styles.less file:

  .syntax--markup {
    &.syntax--bold,
    &.syntax--italic {
      color: @syntax-color-number;
    }
  }

Or maybe implement some selection code in your ~/.atom/ini.coffee file like

activeThemes = atom.themes.getEnabledThemeNames()
if activeThemes.includes("nord-atom-syntax")
  # ... theme specific style overrides

to only override the CSS styles when nord-atom-syntax theme is loaded.

arcticicestudio commented 7 years ago

ghi-37-scrot-preview-1

ghi-37-scrot-preview-2

ghi-37-scrot-preview-3

arcticicestudio commented 7 years ago

@adrian5 Sorry for the delay 😉 🚢 Shipped in APM 📦 package release version 🏷 0.7.0.

adrian5 commented 7 years ago

Just received the update over the regular channel. Really digging that final color composition! Thanks for your efforts on this literally cool theme, it helps me stay focused :relieved: