Skip to content

Commit 3693c1f

Browse files
authored
docs: restyle the site in white and ink, with the logo's yellow as a signal (#109)
## Summary The site looked yellowish: a paper-yellow background, beige code blocks and a full-width yellow sponsor band, next to Material's indigo buttons, so two brand colors competed. This PR moves the site to white and ink and keeps the logo's yellow as a signal only. - Pages are white in light mode and near-black in dark mode, with ink buttons. The logo is now the brightest thing on the page. - Yellow appears in five places: the logo, the circle around the headline, a small square before each section label, the line through the "Pin the same LLVM version" band, and the underline of text links. Green still means passed. - The home page follows dark mode for the first time. Every color in `home.css` is a token, set again for the slate scheme, and the home header gets the same light/dark toggle as the docs pages. - `shared.css` carries the same colors, so the action, clang-tools, cpp-linter-rs and cpp-linter v1 docs switch with this site. They still name indigo in their own configs; `shared.css` overrides it. - `mkdocs.yml` uses custom primary and accent colors, so no indigo is left. - `og-image.png` is redrawn on white. Fonts and layout are unchanged. Netlify's deploy preview shows every page. ## Related Issues None.
1 parent 871c84c commit 3693c1f

5 files changed

Lines changed: 353 additions & 201 deletions

File tree

‎docs/overrides/home.html‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
{% endfor %}
3131
</div>
3232
<div class="cl-header__actions">
33+
{#- The light/dark toggle of the docs pages. Without it the home page
34+
would stay light even when the system or the reader picked dark. -#}
35+
{% if config.theme.palette and not config.theme.palette is mapping %}
36+
{% include "partials/palette.html" %}
37+
{% include "partials/javascripts/palette.html" %}
38+
{% endif %}
3339
{% if "material/search" in config.plugins %}
3440
{% set search = config.plugins["material/search"] | attr("config") %}
3541
{% if search.enabled %}
@@ -203,7 +209,7 @@ <h3 class="cl-h3">{{ tool.title }}</h3>
203209
("octicons/git-pull-request-24", "On the pull request", "cpp-linter-action", "version: '21'", "Checks the files the pull request changes and annotates the findings."),
204210
("octicons/terminal-24", "In other CI", "cpp-linter", "--version=21", "The same checks as one Python command. Install LLVM 21 first: without it, --version=21 falls back to whatever clang-format is on PATH."),
205211
] %}
206-
<section class="cl-band cl-band--indigo">
212+
<section class="cl-band cl-band--night">
207213
<div class="cl-wrap">
208214
<div class="cl-intro">
209215
<div>

‎docs/static/og-image.png‎

1.63 KB
Loading

0 commit comments

Comments
 (0)