Closed JosiahParry closed 2 years ago
Here's how you can create your theme without needing a fork of rsthemes:
rstheme(
"xxEmoCandyLandxx",
theme_path = "emo-candyland.rstheme",
theme_dark = TRUE,
theme_flat = FALSE,
ui_background = "#464f57",
ui_foreground = rgb(247, 234, 148, maxColorValue = 255),
code_string = rgb(254, 158, 229, maxColorValue = 255),
code_value = "#DA71A3",
code_operator = "#FF6B6B", # operators are pipes etc
code_variable = "#FFDF7F",
code_message = "#EB994C",
ui_selection = "#C4832178", # highlight color
ui_gutter_background = "#372b2b3d",
ui_gutter_foreground = "#a36666",
code_comment = "#C38484", # maroonish
code_comment_background = rgb(255, 255, 255, 5, maxColorValue = 255),
code_function = "#F77171",
# used for rmd links or something like that
code_reserved = rgb(255, 255, 255, 200, maxColorValue = 255),
rstheme_terminal_colors(
blue = "#81d497",
red = "#ff6161",
black_bright = "#91927d",
magenta = "#b384bb"
),
"
.ace_comment {
background-color: $code_comment_background
}
// Function styling $code_function
.ace_keyword {
// to do allow italics, bolds, or underline
font-style: italic;
color: $code_function !important;
background-color: $code_function_background;
&.ace_operator {
font-style: italic;
font-weight: bold;
}
}"
)
Per your tweet I wanted to provide the changes I made in my fork. The changes can be seen at https://github.com/JosiahParry/rsthemes/commit/70ebe49bb71a503d964717250500271e0093e1c5.
Noteably I only modified the dark theme template and hard coded some of the styling choices.