I'm new to Atom and I was wondering if we could customize the comment styles that come with the One Dark Syntax Theme via the style.less
(Atom > Stylesheet...)
file. I looked up the source code for the theme and in the language.less
file I found this:
.comment {
color: @mono-3;
font-style: italic;
.markup.link {
color: @mono-3;
}
}
Specifically, I would like to change to font-style
to normal
but I can't seem to find a way, please help. Thanks.
You shouldn't use atom-text-editor::shadow
any more
You should now use
atom-text-editor.editor .syntax--comment {
font-style: normal;
}
[Update]
Atom has changed and the accepted answer is now the one you should use!
[Old Answer]
The elements you're trying to target are inside the text editor element's shadow DOM; try
atom-text-editor::shadow .comment {
font-style: normal;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With