Skip to content

Instantly share code, notes, and snippets.

@jmcastagnetto
Created July 14, 2021 02:09
Show Gist options
  • Save jmcastagnetto/1c5d4782c90442dd8215cc282295c456 to your computer and use it in GitHub Desktop.
Save jmcastagnetto/1c5d4782c90442dd8215cc282295c456 to your computer and use it in GitHub Desktop.
Fragment to add to an *.rstheme to get Okabe-Ito colored "rainbow" parentheses
/* this is just a fragment to change the color of the "rainbow" color parentheses */
/* the colors below come from the Okabe-Ito palette */
.ace_paren_color_0 {
color: #000000 !important; /* black */
font-weight: bold;
}
.ace_paren_color_1 {
color: #e69f00 !important; /* orange */
font-weight: bold;
}
.ace_paren_color_2 {
color: #56b4e9 !important; /* sky blue */
font-weight: bold;
}
.ace_paren_color_3 {
color: #009e73 !important; /* bluish green */
font-weight: bold;
}
/* skipped yellow #f0e442 */
.ace_paren_color_4 {
color: #0072b2 !important; /* blue */
font-weight: bold;
}
.ace_paren_color_5 {
color: #d55e00 !important; /* vermillion */
font-weight: bold;
}
.ace_paren_color_6 {
color: #cc79a7 !important; /* reddish purple */
font-weight: bold;
}
@jmcastagnetto
Copy link
Author

Here is how it will look in a light theme

image

@jmcastagnetto
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment