From af5cc5319a0fa432eef64540b8ec3c6a99deb9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Raddum=20Berg?= Date: Sun, 3 May 2026 13:54:17 +0200 Subject: [PATCH 1/2] Site: fix dark mode by raising specificity of variable-defining blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CSS minimizer was reordering rules so that `:root` ended up *after* `[data-theme="dark"]` in the bundled output. With matching specificity (0,1,0), source order wins — so the light `--typr-paper` value clobbered the dark one even when `data-theme="dark"` was set on ``. Result: docs page didn't flip to dark mode at all, and the navbar stayed light. Fix: change the three variable-defining dark blocks to `html[data-theme="dark"]` (0,1,1). That beats `:root` regardless of how the bundler reorders. Also commit related theme-config tweaks that were sitting uncommitted: explicit colorMode config and announcement bar repainted in editorial ink/cream instead of the legacy purple. --- site/docusaurus.config.js | 9 +++++++-- site/src/css/custom.css | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/site/docusaurus.config.js b/site/docusaurus.config.js index a3146d5164..87f9582efb 100644 --- a/site/docusaurus.config.js +++ b/site/docusaurus.config.js @@ -79,11 +79,16 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + colorMode: { + defaultMode: 'light', + disableSwitch: false, + respectPrefersColorScheme: true, + }, announcementBar: { id: 'under_development', content: '🚧 Under Development — This site and product are launching early 2026.', - backgroundColor: '#7c3aed', - textColor: '#ffffff', + backgroundColor: '#0c1a2b', + textColor: '#f4f0e6', isCloseable: false, }, navbar: { diff --git a/site/src/css/custom.css b/site/src/css/custom.css index b2dc3e74d4..7826635cea 100644 --- a/site/src/css/custom.css +++ b/site/src/css/custom.css @@ -78,7 +78,7 @@ } /* Dark mode with elegant contrast */ -[data-theme="dark"] { +html[data-theme="dark"] { /* Primary colors - Lighter purple for dark mode */ --ifm-color-primary: #a78bfa; --ifm-color-primary-dark: #9333ea; @@ -445,7 +445,7 @@ table thead { --ifm-footer-link-hover-color: var(--ifm-color-primary); } -[data-theme="dark"] { +html[data-theme="dark"] { --ifm-footer-background-color: #1a1a1a; --ifm-footer-color: #9ca3af; --ifm-footer-title-color: #f3f4f6; @@ -607,7 +607,7 @@ table thead { --ifm-footer-title-color: var(--typr-paper); } -[data-theme="dark"] { +html[data-theme="dark"] { --typr-paper: #0c1019; --typr-paper-2: #131829; --typr-paper-warm: #131727; From 5ed883f3c971ea35a69555f9c28fff2d195b3a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Raddum=20Berg?= Date: Sun, 3 May 2026 13:56:57 +0200 Subject: [PATCH 2/2] bleep fmt: align case arms in projectsToPublish Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/scala/scripts/projectsToPublish.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/typr-scripts/src/scala/scripts/projectsToPublish.scala b/typr-scripts/src/scala/scripts/projectsToPublish.scala index 04d13d1031..e70de83568 100644 --- a/typr-scripts/src/scala/scripts/projectsToPublish.scala +++ b/typr-scripts/src/scala/scripts/projectsToPublish.scala @@ -7,13 +7,13 @@ object projectsToPublish { def include(crossName: model.CrossProjectName): Boolean = crossName.name.value match { // CLI app - case "typr" => true + case "typr" => true // typr's upstream deps — needed so the published POM resolves - case "typr-codegen" => true - case "typr-dsl" => true - case "typr-dsl-scala" => true - case "typr-dsl-kotlin" => true + case "typr-codegen" => true + case "typr-dsl" => true + case "typr-dsl-scala" => true + case "typr-dsl-kotlin" => true // legacy DSL integrations (still published for backwards-compat consumers) case "typr-dsl-anorm" => true @@ -25,6 +25,6 @@ object projectsToPublish { case "typr-runtime-doobie" => true case "typr-runtime-zio-jdbc" => true - case _ => false + case _ => false } }