Skip to content

Commit 5ea8363

Browse files
committed
chore: 🤖 add changeset
1 parent 944e76e commit 5ea8363

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.changeset/yellow-needles-lead.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
'@clickhouse/click-ui': minor
3+
---
4+
5+
Refactors themed logos to use single theme-aware components and adds simple aliases for commonly used asset names.
6+
7+
**Theme-aware logos**
8+
9+
Logos with light/dark variants (`kafka`, `github`, `clickhouse`, `rust`, `tableau`) are now consolidated into single components that automatically switch based on the current theme. This follows the existing pattern used by `OVH` and `AWS` logos.
10+
11+
Before:
12+
```tsx
13+
// Had to explicitly choose the variant
14+
<Logo name="kafka-light" />
15+
<Logo name="kafka-dark" />
16+
```
17+
18+
After:
19+
```tsx
20+
// Automatically switches based on theme
21+
<Logo name="kafka" />
22+
```
23+
24+
**Simple aliases for non-themed assets**
25+
26+
Added aliases for commonly used asset names that map to their kebab-case equivalents:
27+
28+
| Alias | Resolves to |
29+
|-------|-------------|
30+
| `mysql` | `my-sql` |
31+
| `mongodb` | `mongo-db` |
32+
| `nodejs` | `node-js` |
33+
| `golang` | `go-lang` |
34+
| `warpstream` | `warp-stream` |
35+
| `digital_ocean` | `digital-ocean` |
36+
| `onelake` | `one-lake` |
37+
38+
```tsx
39+
// Both work identically
40+
<Logo name="mysql" />
41+
<Logo name="my-sql" />
42+
```

0 commit comments

Comments
 (0)