diff --git a/styles/config.scarlet b/styles/config.scarlet index 34c2646b..f61f382f 100644 --- a/styles/config.scarlet +++ b/styles/config.scarlet @@ -152,6 +152,9 @@ const user-pro-icon-size = 1.1rem const amv-large-width = 854px +// Monospace font for `code` and `pre` +const monospace-font-family = "Ubuntu Mono", "Consolas", monospace + // Timings fade-speed = 150ms transition-speed = 150ms diff --git a/styles/typography.scarlet b/styles/typography.scarlet index dd22fa3c..495ee748 100644 --- a/styles/typography.scarlet +++ b/styles/typography.scarlet @@ -36,6 +36,19 @@ p display inherit margin 0 auto +pre + font-family monospace-font-family + font-size inherit + background-color reverse-light-color + + code + background-color transparent + +code + font-family monospace-font-family + font-size inherit + background-color reverse-light-color + .furigana opacity 0.25 font-size 50%