Skip to content

Commit 513b445

Browse files
ndbroadbentclaude
andcommitted
feat(docs): Style logo and title with proper colors
- Add custom CSS for logo and title styling - Make logo white in dark mode, black in light mode - Set logo size to 28x28px via CSS - Reduce gap between logo and title text - Add logo to GitHub README header 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ccd2f97 commit 513b445

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Renamify
1+
# <img src="docs/src/assets/logo.svg" width="32" height="32" alt="Renamify logo" align="center"> Renamify
22

33
Smart search & replace for code and files with case-aware transformations and built-in undo/redo.
44

docs/astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default defineConfig({
1616
logo: {
1717
src: "./src/assets/logo.svg",
1818
},
19+
customCss: [
20+
"./src/styles/custom.css",
21+
],
1922
editLink: {
2023
baseUrl: "https://github.com/DocSpring/renamify/edit/main/docs",
2124
},

docs/src/styles/custom.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/* Custom styles for Renamify docs */
2+
3+
/* Logo styling - white in dark mode, black in light mode */
4+
:root {
5+
--renamify-logo-color: #000000;
6+
}
7+
8+
:root[data-theme="dark"] {
9+
--renamify-logo-color: #ffffff;
10+
}
11+
12+
/* Apply color to the logo SVG and control size */
13+
.site-title img,
14+
header .logo img,
15+
.sl-flex img[alt="Renamify"] {
16+
filter: brightness(0) invert(0);
17+
width: 28px;
18+
height: 28px;
19+
}
20+
21+
:root[data-theme="dark"] .site-title img,
22+
:root[data-theme="dark"] header .logo img,
23+
:root[data-theme="dark"] .sl-flex img[alt="Renamify"] {
24+
filter: brightness(0) invert(1);
25+
}
26+
27+
/* Alternative approach using stroke color directly */
28+
.site-title svg,
29+
header svg.logo {
30+
stroke: var(--renamify-logo-color);
31+
color: var(--renamify-logo-color);
32+
}
33+
34+
/* Title text styling - matching the logo colors */
35+
.site-title,
36+
header .sl-flex a[href="/renamify/"] {
37+
font-weight: 600;
38+
color: var(--renamify-logo-color) !important;
39+
}
40+
41+
/* Reduce gap between logo and title */
42+
.site-title {
43+
gap: 0.8rem !important;
44+
}

0 commit comments

Comments
 (0)