Simplify how code color is defined #1387
Labels
breaking change
cleanup/refactoring
design/style
Front-end site design / styling
e0-minutes
Effort < 60 min
e1-hours
p2-medium
Milestone
Here's how
<code>
element color is defined in Docsy currently:$code-color
variable. The BS$code-color
default is pink (unlikely to be a useful color), but Docy's override of using the secondary color as a base isn't much more helpful (at least not in projects I've worked on).inherit
, which usually means it'll fall back to$body-color
(a reasonable default IMHO):.td-content p code
.td-content li > code
.td-content table code
$code-color
, such as the<dd>
in Shortcode blocks.On almost all projects that I've worked on, a single code color is used throughout the project, and often it matches the base "body color". So, IMHO, we should set
$code-color
to be equivalent to$body-color
1 and use this in all contexts (i.e., avoid contextual overrides).Thoughts?
Note that this issue is a followup to:
Footnotes
We'll probably need to set it to
var(--bs-body-color)
since BS's$body-color
won't be defined by the time we choose to set the value of$code-color
. ↩The text was updated successfully, but these errors were encountered: