How can I change the color of def in functions


#1

Hi there.

I only want to change the color of def so that it is more easily distinguishable than what I have:

def_color_atom

I like everything else about the theme, so I have to find a way to change only the color of def. Thanks!


#2

What theme are you using? I guess you can edit CSS files.


#3

I am using the theme called dark one, however I don’t know which part of
the css to edit so that only thing I change is what I want


#4

I don’t know it that’s possible. I think you can edit certain group colors like variables, function names, etc. But ony one variable?


#5

Which language is this?


#6

It’s Python.


#7

Opening up the dev tools (View -> Developer -> Toggle Developer Tools), I see def represented as

<span class="syntax--storage syntax--type syntax--function syntax--python">def</span>

You can change the color of it by targeting those classes.


#8

Thank you! I figured it out following your advice