From 3895fcf169ecaadd0e61ccd11519889bc0941714 Mon Sep 17 00:00:00 2001 From: Benoit TRAVERS Date: Thu, 16 Jul 2026 02:59:20 +0200 Subject: [PATCH] feat(docs): apply the beetroot stack theme and character logo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bump @btravstack/theme to 1.6.0 — the near-black multi-accent system from the new BtravStack landing - new playful character mark (scheme-aware hero image + nav variants) - hero name now wears the package accent --- docs/.vitepress/theme/custom.css | 13 +++++++------ docs/index.md | 3 ++- docs/public/logo-dark.svg | 27 ++++++++++++++++++++++++++- docs/public/logo-light.svg | 27 ++++++++++++++++++++++++++- docs/public/logo.svg | 27 ++++++++++++++++++++++++++- pnpm-lock.yaml | 18 ++++++++++++------ pnpm-workspace.yaml | 2 +- 7 files changed, 100 insertions(+), 17 deletions(-) diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index ff9d364..6058140 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -5,6 +5,13 @@ --accent: #46b86c; } +/* Hero name in the package accent — the BtravStack multi-accent rule: the + * canvas stays neutral, the product glows in its own color (AA via + * --text-accent, which darkens on light). */ +:root:root { + --vp-home-hero-name-color: var(--text-accent); +} + /* Home-hero background glyph — the project's motif behind the hero (an ok/err * railway split). Painted in --accent through a mask, so it always tracks the * accent token; the SVG is base64-encoded so no CSS minifier can mangle it. */ @@ -15,12 +22,6 @@ --btv-col: 1152px; --btv-gutter: max(0px, calc((100% - var(--btv-col)) / 2)); } -/* Anchor the shared theme's hero glow to the content column instead of the - * viewport edge, so it doesn't drift into a stray halo by the header on wide - * screens (it still bleeds ~120px past the content, as before). */ -.VPHome::before { - right: calc(var(--btv-gutter) - 120px); -} .VPHome::after { content: ""; position: absolute; diff --git a/docs/index.md b/docs/index.md index 00d6ec3..d26e8b7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,8 @@ hero: text: "Explicit errors as values" tagline: A small, focused Result type with a separate defect channel for the unexpected — and qualification enforced at every boundary. image: - src: /logo.svg + light: /logo-light.svg + dark: /logo-dark.svg alt: unthrown actions: - theme: brand diff --git a/docs/public/logo-dark.svg b/docs/public/logo-dark.svg index ca33ec2..09e0d5e 100644 --- a/docs/public/logo-dark.svg +++ b/docs/public/logo-dark.svg @@ -1 +1,26 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/public/logo-light.svg b/docs/public/logo-light.svg index 5d02136..72c5146 100644 --- a/docs/public/logo-light.svg +++ b/docs/public/logo-light.svg @@ -1 +1,26 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/public/logo.svg b/docs/public/logo.svg index e910c85..09e0d5e 100644 --- a/docs/public/logo.svg +++ b/docs/public/logo.svg @@ -1 +1,26 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49e6881..4a004f2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,8 +10,8 @@ catalogs: specifier: 3.4.0 version: 3.4.0 '@btravstack/theme': - specifier: 1.5.0 - version: 1.5.0 + specifier: 1.6.0 + version: 1.6.0 '@changesets/cli': specifier: 2.31.0 version: 2.31.0 @@ -158,7 +158,7 @@ importers: devDependencies: '@btravstack/theme': specifier: 'catalog:' - version: 1.5.0(vitepress@1.6.4(@algolia/client-search@5.55.1)(@types/node@24.13.2)(lightningcss@1.32.0)(postcss@8.5.16)(typescript@6.0.3)) + version: 1.6.0(vitepress@1.6.4(@algolia/client-search@5.55.1)(@types/node@24.13.2)(lightningcss@1.32.0)(postcss@8.5.16)(typescript@6.0.3))(vue@3.5.38(typescript@6.0.3)) '@types/node': specifier: 'catalog:' version: 24.13.2 @@ -680,10 +680,14 @@ packages: typescript: optional: true - '@btravstack/theme@1.5.0': - resolution: {integrity: sha512-tTTWDNarS0GOSeHk3GZ+GtrNfAFacZNvYMzG+X/gpyUa8irPGB8MT4f+uCbloJ2UFG6JNLNXnMF7KuAVtMaoAA==} + '@btravstack/theme@1.6.0': + resolution: {integrity: sha512-MwesCcWGhsPZSHjsoWE0gib7HqUAp5oGQEnKdZshRjnqg0xDh72TvrtY7f/YioimLKAx1RAagMlb53fexNjFFg==} peerDependencies: vitepress: ^1.6.0 + vue: ^3.3.0 + peerDependenciesMeta: + vue: + optional: true '@changesets/apply-release-plan@7.1.1': resolution: {integrity: sha512-9qPCm/rLx/xoOFXIHGB229+4GOL76S4MC+7tyOuTsR6+1jYlfFDQORdvwR5hDA6y4FL2BPt3qpbcQIS+dW85LA==} @@ -4164,9 +4168,11 @@ snapshots: optionalDependencies: typescript: 6.0.3 - '@btravstack/theme@1.5.0(vitepress@1.6.4(@algolia/client-search@5.55.1)(@types/node@24.13.2)(lightningcss@1.32.0)(postcss@8.5.16)(typescript@6.0.3))': + '@btravstack/theme@1.6.0(vitepress@1.6.4(@algolia/client-search@5.55.1)(@types/node@24.13.2)(lightningcss@1.32.0)(postcss@8.5.16)(typescript@6.0.3))(vue@3.5.38(typescript@6.0.3))': dependencies: vitepress: 1.6.4(@algolia/client-search@5.55.1)(@types/node@24.13.2)(lightningcss@1.32.0)(postcss@8.5.16)(typescript@6.0.3) + optionalDependencies: + vue: 3.5.38(typescript@6.0.3) '@changesets/apply-release-plan@7.1.1': dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index cce2a9b..08f6392 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -13,7 +13,7 @@ catalog: "@changesets/cli": 2.31.0 "@commitlint/cli": 21.2.0 "@bloodyowl/boxed": 3.4.0 - "@btravstack/theme": 1.5.0 + "@btravstack/theme": 1.6.0 "@prisma/adapter-better-sqlite3": 7.8.0 "@prisma/client": 7.8.0 "@standard-schema/spec": 1.1.0