Skip to content

fix(site): readable theme previews that follow light and dark - #15

Merged
lucasnevespereira merged 1 commit into
mainfrom
fix/site-themes-gallery
Nov 14, 2026
Merged

lucasnevespereira merged 1 commit into
mainfrom
fix/site-themes-gallery

Conversation

@lucasnevespereira

Copy link
Copy Markdown
Member

Summary

The theme gallery showed tiny content in large, mostly empty frames, and bright white previews on the dark page. Its intro line floated at the far right.

-assets/themes/{minimal,devtool,bio}.png        1200px window, light only
+assets/themes/{minimal,bio}-{light,dark}.png   720px window at 2x, fills the frame
+assets/themes/devtool-dark.png                 devtool is dark only
-.gallery__head { display: flex; justify-content: space-between; align-items: end }
+.gallery__head { }                             /* heading, then the line under it */

The page shows the preview that matches its own light or dark (.shot-light / .shot-dark).

Evidence

  • Before: previews captured at 1200px wide, so the narrow theme pages sat small in the middle; minimal and bio were white on the dark page.
    After: dark page shows minimal-dark, devtool-dark, bio-dark; light page shows minimal-light, devtool-dark, bio-light. Content fills each frame.

Merge Danger

Door: two-way

Blast Radius: small

Images and layout on the landing page only.

@lucasnevespereira
lucasnevespereira merged commit 4655076 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant