Skip to content

Commit 133059e

Browse files
BenGlutclaude
andcommitted
Use the app icon in the header
The header carried the bare tiger head in two files, one drawn for light backgrounds and one for dark. The app icon is the mark people already recognise from the phone home screen and the browser tab, and it brings its own ground — so one file now serves both themes. Corners are rounded in CSS rather than by shipping the pre-rounded SVG, which is built on an opaque full-bleed square and would have shown as a black tile behind the icon. A hairline inset ring keeps the near-black edge from disappearing into a dark header. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 29c57a1 commit 133059e

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

‎src/components/SiteTitle.astro‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
---
22
/**
3-
* Header brand: the tiger head mark plus the wordmark.
3+
* Header brand: the app icon plus the wordmark.
44
*
5-
* The two mark files are the ones the press kit designates — `tiger-head.svg`
6-
* is drawn in white for dark backgrounds, `tiger-head-contour.svg` in black for
7-
* light ones — so the header follows the brand rather than recolouring a logo.
5+
* `tigersystem-app-icon.svg` is the square app icon — it carries its own dark
6+
* ground, so one file serves both themes; the corners are rounded in CSS
7+
* rather than by shipping a second, pre-rounded file.
88
*/
99
const locale = Astro.currentLocale;
1010
const href = locale && locale !== 'en' ? `/${locale}/` : '/';
1111
---
1212

1313
<a class="site-title" href={href}>
14-
<img class="site-title__mark site-title__mark--light" src="/assets/logos/tiger-head-contour.svg" alt="" width="34" height="19" />
15-
<img class="site-title__mark site-title__mark--dark" src="/assets/logos/tiger-head.svg" alt="" width="34" height="19" />
14+
<img class="site-title__mark" src="/assets/logos/tigersystem-app-icon.svg" alt="" width="32" height="32" />
1615
<span class="site-title__text">
1716
<span class="site-title__name">TigerSystem</span>
1817
<span class="site-title__kind">Wiki</span>

‎src/styles/tigersystem.css‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@
9090
white-space: nowrap;
9191
}
9292

93+
/* The app icon: a square that carries its own dark ground, so one file works
94+
on both themes. Rounded here rather than in a second SVG, and given a hairline
95+
ring so its near-black edge stays visible against a dark header. */
9396
.site-title__mark {
94-
width: auto;
95-
height: 1.55rem;
97+
width: 1.7rem;
98+
height: 1.7rem;
9699
flex-shrink: 0;
100+
border-radius: 23%;
101+
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
97102
}
98103

99-
:root .site-title__mark--light,
100-
:root[data-theme='light'] .site-title__mark--dark {
101-
display: none;
102-
}
103-
104-
:root[data-theme='light'] .site-title__mark--light {
105-
display: block;
104+
:root[data-theme='light'] .site-title__mark {
105+
box-shadow: none;
106106
}
107107

108108
.site-title__text {

0 commit comments

Comments
 (0)