Repository navigation
Replace Shadcn UI Kit logo with theme-aware SVG lockup - #283
Merged
Merged
Conversation
The new source SVG embedded the mark as a 210 KB base64 PNG whose placement rect overflowed the 104x104 clipPath on all four sides, so the rounded corners were cropped and the tile rendered full-bleed. Redrew the mark as geometry measured off that bitmap: a rounded square plus five 45-degree capsules, 8 KB per file. The lockup is strictly monochrome, so dark mode is an exact inversion: the site gets it via a CSS filter, the README picks up the -dark twin through the existing filename convention. Dropped displayName since the new asset carries the wordmark itself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HKMmyJcVkjnqA6PP7c67yB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Swaps the Shadcn UI Kit sponsor logo for the new icon + wordmark lockup, adapted to both themes.
Why the asset was redrawn
The source SVG was a hybrid: a vector wordmark plus the mark as a 1876×1764 base64 PNG (210 KB). Its placement rect (
x=-8.32 y=-4.94, 120.7×113.5) overflowed theclipPathon all four sides, so the rounded corners were cropped and the tile rendered as a full-bleed square.The mark is pure geometry, so I measured it off the bitmap and redrew it:
rect rx=11plus five 45° capsules (stroke-width 9, round caps, 24.94 spacing). Corners are back and each file is 8 KB instead of 210 KB.Theme handling
The lockup is strictly monochrome, so dark mode is an exact inversion.
SponsorCardandDocsSponsoronly readlogoUrland have no dark-twin support, so the entry usesdark:[filter:invert(1)] dark:group-hover:[filter:invert(1)], the same approach as launchfast. No component changes.scripts/sponsors-readme.mtsalready resolves a-darktwin by filename, so shippingshadcnuikit-dark.svgupgrades the cell to<picture>withprefers-color-scheme: dark. Block regenerated viabun run sponsors:readme.Changes
public/sponsors/shadcnuikit.svg— light: black tile, white strokes, black wordmarkpublic/sponsors/shadcnuikit-dark.svg— dark: invertedpublic/sponsors/shadcnuikit.png— removed, no remaining referencesconfig/sponsors.ts— newlogoUrl, inversion filter, droppeddisplayName(the asset now carries the wordmark, which would otherwise double up in the docs sidebar and README)No registry components touched, so no changelog entry.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HKMmyJcVkjnqA6PP7c67yB