Przeglądaj źródła

Change default colors of style_duo_accent() and ...inverse()

tags/v0.3.0
Garrick Aden-Buie 6 lat temu
rodzic
commit
83ce9ee013
6 zmienionych plików z 18 dodań i 18 usunięć
  1. +4
    -4
      R/style_duo_accent.R
  2. +4
    -4
      R/style_duo_accent_inverse.R
  3. BIN
      R/sysdata.rda
  4. +2
    -2
      data-raw/theme_template_variables.R
  5. +4
    -4
      man/style_duo_accent.Rd
  6. +4
    -4
      man/style_duo_accent_inverse.Rd

+ 4
- 4
R/style_duo_accent.R Wyświetl plik

@@ -1,10 +1,10 @@
# Generated by inst/scripts/generate_theme_functions.R: do not edit by hand

#' @param primary_color Duotone Primary Color. Defaults to #006747. Used in
#' @param primary_color Duotone Primary Color. Defaults to #035AA6. Used in
#' multiple CSS rules. The value of this variable is also stored as a CSS
#' variable that can be referenced with `var(--primary)` in any argument of a
#' style function or in custom CSS.
#' @param secondary_color Duotone Secondary Color. Defaults to #CFC493. Used in
#' @param secondary_color Duotone Secondary Color. Defaults to #03A696. Used in
#' multiple CSS rules. The value of this variable is also stored as a CSS
#' variable that can be referenced with `var(--secondary)` in any argument of
#' a style function or in custom CSS.
@@ -272,8 +272,8 @@
#' @family Duotone themes
#' @export
style_duo_accent <- function(
primary_color = "#006747",
secondary_color = "#CFC493",
primary_color = "#035AA6",
secondary_color = "#03A696",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = black_color,

+ 4
- 4
R/style_duo_accent_inverse.R Wyświetl plik

@@ -1,10 +1,10 @@
# Generated by inst/scripts/generate_theme_functions.R: do not edit by hand

#' @param primary_color Duotone Primary Color. Defaults to #006747. Used in
#' @param primary_color Duotone Primary Color. Defaults to #035AA6. Used in
#' multiple CSS rules. The value of this variable is also stored as a CSS
#' variable that can be referenced with `var(--primary)` in any argument of a
#' style function or in custom CSS.
#' @param secondary_color Duotone Secondary Color. Defaults to #CFC493. Used in
#' @param secondary_color Duotone Secondary Color. Defaults to #03A696. Used in
#' multiple CSS rules. The value of this variable is also stored as a CSS
#' variable that can be referenced with `var(--secondary)` in any argument of
#' a style function or in custom CSS.
@@ -273,8 +273,8 @@
#' @family Duotone themes
#' @export
style_duo_accent_inverse <- function(
primary_color = "#006747",
secondary_color = "#CFC493",
primary_color = "#035AA6",
secondary_color = "#03A696",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = white_color,

BIN
R/sysdata.rda Wyświetl plik


+ 2
- 2
data-raw/theme_template_variables.R Wyświetl plik

@@ -247,8 +247,8 @@ template_duo <- set_default(

template_duo_accent <- tibble::tribble(
~ variable, ~ default, ~ element, ~ description, ~ css_variable
, "primary_color", "#006747", "multiple", "Duotone Primary Color", "--primary"
, "secondary_color", "#CFC493", "multiple", "Duotone Secondary Color", "--secondary"
, "primary_color", "#035AA6", "multiple", "Duotone Primary Color", "--primary"
, "secondary_color", "#03A696", "multiple", "Duotone Secondary Color", "--secondary"
, "white_color", "#FFFFFF", "multiple", "Brightest color used", "--white"
, "black_color", "#000000", "multiple", "Darkest color used", "--black"
)

+ 4
- 4
man/style_duo_accent.Rd Wyświetl plik

@@ -5,8 +5,8 @@
\title{Duotone Accent Theme}
\usage{
style_duo_accent(
primary_color = "#006747",
secondary_color = "#CFC493",
primary_color = "#035AA6",
secondary_color = "#03A696",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = black_color,
@@ -77,12 +77,12 @@ style_duo_accent(
)
}
\arguments{
\item{primary_color}{Duotone Primary Color. Defaults to #006747. Used in
\item{primary_color}{Duotone Primary Color. Defaults to #035AA6. Used in
multiple CSS rules. The value of this variable is also stored as a CSS
variable that can be referenced with \code{var(--primary)} in any argument of a
style function or in custom CSS.}

\item{secondary_color}{Duotone Secondary Color. Defaults to #CFC493. Used in
\item{secondary_color}{Duotone Secondary Color. Defaults to #03A696. Used in
multiple CSS rules. The value of this variable is also stored as a CSS
variable that can be referenced with \code{var(--secondary)} in any argument of
a style function or in custom CSS.}

+ 4
- 4
man/style_duo_accent_inverse.Rd Wyświetl plik

@@ -5,8 +5,8 @@
\title{Duotone Accent Inverse Theme}
\usage{
style_duo_accent_inverse(
primary_color = "#006747",
secondary_color = "#CFC493",
primary_color = "#035AA6",
secondary_color = "#03A696",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = white_color,
@@ -78,12 +78,12 @@ style_duo_accent_inverse(
)
}
\arguments{
\item{primary_color}{Duotone Primary Color. Defaults to #006747. Used in
\item{primary_color}{Duotone Primary Color. Defaults to #035AA6. Used in
multiple CSS rules. The value of this variable is also stored as a CSS
variable that can be referenced with \code{var(--primary)} in any argument of a
style function or in custom CSS.}

\item{secondary_color}{Duotone Secondary Color. Defaults to #CFC493. Used in
\item{secondary_color}{Duotone Secondary Color. Defaults to #03A696. Used in
multiple CSS rules. The value of this variable is also stored as a CSS
variable that can be referenced with \code{var(--secondary)} in any argument of
a style function or in custom CSS.}

Ładowanie…
Anuluj
Zapisz