-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_bslib_themes.R
44 lines (34 loc) · 890 Bytes
/
test_bslib_themes.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
library(bslib)
theme <- bs_theme(
# Controls the default grayscale palette
bg = "#202123", fg = "#B8BCC2",
# Controls the accent (e.g., hyperlink, button, etc) colors
primary = "#EA80FC", secondary = "#48DAC6",
base_font = c("Zeyada"),
code_font = c("Courier", "monospace"),
heading_font = "'Helvetica Neue', Helvetica, sans-serif",
# Can also add lower-level customization
"input-border-color" = "#EA80FC"
)
if (interactive()) {
bs_theme_preview(theme)
}
bs_theme_preview(bs_theme(
bg = "#202123",
fg = "#B8BCC2",
primary = "#EA80FC",
base_font = "Grandstander"
))
#base_font = font_google("Prompt")
bs_theme_preview(bs_theme(
bg = "#202123",
fg = "#B8BCC2",
primary = "#EA80FC",
base_font = font_google("Prompt")
))
bs_theme_preview(bs_theme(
bg = "#202123",
fg = "#B8BCC2",
primary = "#EA80FC",
base_font = font_google("Raleway")
))