diff --git a/.roborev.toml b/.roborev.toml index a6cad57..3ef0bd5 100644 --- a/.roborev.toml +++ b/.roborev.toml @@ -51,7 +51,7 @@ review_guidelines = ''' - Tests use testthat edition 3. Each test is self-sufficient -- no reliance on state left by an earlier test or on a fixture built elsewhere in the file. - Prefer duplication in tests over a helper that hides what is being asserted. -- Brand colors come from `civilytics_colors`; never write a hex literal in theme, scale, logo, or table code. `R/flextable.R` still carries off-brand Bootstrap defaults (#2c3e50, #f0f0eb, #888888, #cccccc, #555555) -- do not add more. +- Brand colors come from `civilytics_colors`; never write a hex literal in theme, scale, logo, or table code. - No tidyverse dependency. Imports is base R plus ggplot2, grid/gridExtra, png/jpeg, stringr, stringdist, showtext/sysfonts, jsonlite. Reject dplyr, purrr, magrittr, tibble, and data.table; use base R idioms. - NAMESPACE is roxygen-generated. Declare imports with `@importFrom` in the roxygen block and re-run roxygen; never hand-edit NAMESPACE. - Themes default to a transparent background (`paper_bg = FALSE`) so plots composite onto any Quarto, Reveal, or Typst background. Making an opaque background the default is a regression, not a preference. diff --git a/AGENTS.md b/AGENTS.md index 64cc3d3..78af9e0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,8 +47,7 @@ tibble, or data.table. Prefer an existing dependency or base R over adding one this package is installed into other people's environments. **Brand colors** live in `civilytics_colors` and nowhere else. Never write a hex -literal in theme, scale, logo, or table code. (`R/flextable.R` still carries -off-brand Bootstrap defaults; that is known debt, not a pattern to copy.) +literal in theme, scale, logo, or table code. **Themes** default to a transparent background (`paper_bg = FALSE`) so plots composite onto any Quarto, Reveal, or Typst background. Thread `ink`, `paper`, and diff --git a/pm/compass.toml b/pm/compass.toml index e75004f..49d2b25 100644 --- a/pm/compass.toml +++ b/pm/compass.toml @@ -95,7 +95,7 @@ docs = [ [roborev] project_guidelines = [ - "Brand colors come from `civilytics_colors`; never write a hex literal in theme, scale, logo, or table code. `R/flextable.R` still carries off-brand Bootstrap defaults (#2c3e50, #f0f0eb, #888888, #cccccc, #555555) -- do not add more.", + "Brand colors come from `civilytics_colors`; never write a hex literal in theme, scale, logo, or table code.", "No tidyverse dependency. Imports is base R plus ggplot2, grid/gridExtra, png/jpeg, stringr, stringdist, showtext/sysfonts, jsonlite. Reject dplyr, purrr, magrittr, tibble, and data.table; use base R idioms.", "NAMESPACE is roxygen-generated. Declare imports with `@importFrom` in the roxygen block and re-run roxygen; never hand-edit NAMESPACE.", "Themes default to a transparent background (`paper_bg = FALSE`) so plots composite onto any Quarto, Reveal, or Typst background. Making an opaque background the default is a regression, not a preference.",