A custom theme stylesheet

Description

A CSS file of your own as an htmltools::htmlDependency(). Reach for bc_deps(theme = ) instead, which orders it against the style pack for you.

Usage

bc_theme(path)

Arguments

Argument Description
path String. Path to a .css file defining Basecoat's tokens.

Value

An htmltools::htmlDependency().

Details

Must render after bc_deps(). The file needs only the tokens it changes, in :root and .dark.

A tweakcn export works unedited. Web fonts it names still need loading.

See Also

bc_theme_builder()

Examples

css <- tempfile(fileext = ".css")
writeLines(":root { --primary: oklch(0.54 0.16 320); }", css)

bc_theme(css)