| 1 |
theme_colors <- list( |
| 2 |
"primary", |
| 3 |
"secondary", |
| 4 |
"success", |
| 5 |
"danger", |
| 6 |
"warning", |
| 7 |
"info", |
| 8 |
"light", |
| 9 |
"dark" |
| 10 |
) |
| 11 |
|
| 12 |
named_colors <- c( |
| 13 |
"blue", |
| 14 |
"indigo", |
| 15 |
"purple", |
| 16 |
"pink", |
| 17 |
"red", |
| 18 |
"orange", |
| 19 |
"yellow", |
| 20 |
"green", |
| 21 |
"teal", |
| 22 |
"cyan" |
| 23 |
) |
| 24 |
|
| 25 |
gc <- expand.grid(named_colors, named_colors) |
| 26 |
gc <- gc[gc$Var1 != gc$Var2, ] |
| 27 |
gradient_classes <- sprintf("bg-gradient-%s-%s", gc$Var1, gc$Var2) |
| 28 |
|
| 29 |
all_themes <- c( |
| 30 |
"Default" = "", |
| 31 |
theme_colors, |
| 32 |
named_colors, |
| 33 |
paste0("text-", theme_colors), |
| 34 |
paste0("text-", named_colors), |
| 35 |
sort(gradient_classes) |
| 36 |
) |