From 206ea48010cae7701954819e574ff19e00acb22a Mon Sep 17 00:00:00 2001 From: kartikeya <67143288+kartikeya-27@users.noreply.github.com> Date: Tue, 22 Sep 2026 10:58:17 +0530 Subject: [PATCH 1/5] feat(admin): use the real logo in the console The bracket glyph was a stand-in that needed an accent tile to be legible. BrandMark is the artwork the public sites ship, so the tile comes off with it. Co-Authored-By: Claude Opus 5 (1M context) --- apps/admin/src/app/styles/admin.css | 14 ++----- apps/admin/src/components/mark.tsx | 35 ++++++++--------- apps/admin/src/components/rail.tsx | 2 +- .../src/views/subscription/confirm-page.tsx | 2 +- .../views/subscription/unsubscribe-page.tsx | 2 +- apps/admin/vitest.config.mts | 39 ++++++++++++++++++- 6 files changed, 62 insertions(+), 32 deletions(-) diff --git a/apps/admin/src/app/styles/admin.css b/apps/admin/src/app/styles/admin.css index 3d7bb38f..53076380 100644 --- a/apps/admin/src/app/styles/admin.css +++ b/apps/admin/src/app/styles/admin.css @@ -110,14 +110,12 @@ font-size: 1rem; letter-spacing: -0.02em; } + /* No tile. The logo is a multi-tone leaf that brings its own colour — the + accent square existed to make a flat white glyph legible, and the glyph + has gone. */ .rail-brand .mark { display: grid; place-items: center; - width: 24px; - height: 24px; - border-radius: 7px; - background: var(--accent); - color: var(--accent-ink); flex: none; } .rail-brand small { @@ -862,12 +860,8 @@ .sheet-card .mark { display: grid; place-items: center; - width: 38px; - height: 38px; + width: fit-content; margin: 0 auto 18px; - border-radius: 11px; - background: var(--accent); - color: var(--accent-ink); } .sheet-card h1 { font-family: var(--font-display); diff --git a/apps/admin/src/components/mark.tsx b/apps/admin/src/components/mark.tsx index fd24a782..c80b0790 100644 --- a/apps/admin/src/components/mark.tsx +++ b/apps/admin/src/components/mark.tsx @@ -1,19 +1,18 @@ -/** The ByteVeda bracket glyph, matching the wordmark on the public sites. */ -export function Mark({ size = 16 }: { size?: number }) { - return ( - - - - - ); +import { BrandMark } from "@byteveda/ui"; + +/** + * The ByteVeda logo, as the public sites draw it. + * + * This used to be an inline bracket glyph — a single white path that needed + * the accent tile behind it to be legible, and which was never the logo. The + * real mark is a multi-tone leaf: it cannot take `currentColor`, there is + * nothing for one path to carry, and it brings its own colour, so the tile it + * used to sit on comes off with it. + * + * Wrapping `BrandMark` rather than importing it at each of the five call sites + * keeps the console's sizes in one place, and keeps "which artwork is the + * logo" a question with one answer and one import to change. + */ +export function Mark({ size = 30 }: { size?: number }) { + return ; } diff --git a/apps/admin/src/components/rail.tsx b/apps/admin/src/components/rail.tsx index 1fb51c10..472e9823 100644 --- a/apps/admin/src/components/rail.tsx +++ b/apps/admin/src/components/rail.tsx @@ -30,7 +30,7 @@ export function Rail({ user, children }: Props) {