Skip to content

Adapt README showcase illustrations to viewer color scheme - #21

Open
srinu2003 wants to merge 1 commit into
pasqualevitiello:mainfrom
srinu2003:feat/theme-adaptive-showcase
Open

srinu2003 wants to merge 1 commit into
pasqualevitiello:mainfrom
srinu2003:feat/theme-adaptive-showcase

Conversation

@srinu2003

Copy link
Copy Markdown

Summary

Make the repository homepage showcase responsive to GitHub’s light and dark appearance themes using <picture> elements with prefers-color-scheme media queries.

- Single-scheme showcase artwork in the README
+ Automatic theme switching via prefers-color-scheme (dark and light)
+ Dark blueprint variants rendered with #0d1117 background and #f0f6fc vector strokes
+ Zero impact on standalone catalogue sources or skills

This pairs each current showcase drawing (overview-preferred, interfaces-preferred, systems, emptystates-preferred, and time) with an inverted dark counterpart so users on dark backgrounds experience comfortable contrast without high-glare white panels.

Changes

  1. Dark showcase assets:
    • Add dark vector compositions to .github/assets/showcase/:
      • overview-preferred-dark.svg
      • interfaces-preferred-dark.svg
      • systems-dark.svg
      • emptystates-preferred-dark.svg
      • time-dark.svg
  2. README updates:
    • Wrap showcase links in <picture> tags with media="(prefers-color-scheme: dark)" and media="(prefers-color-scheme: light)".
    • Preserve existing accessible labels, links, and dimensions.

Evidence

  • Before: White background showcase cards on dark mode GitHub created glaring contrast seams against the dark UI.
  • After:
    • Viewing in GitHub Dark: Renders crisp #f0f6fc strokes against #0d1117 blueprint backgrounds.
    • Viewing in GitHub Light: Unaltered original light blueprint artwork continues to render seamlessly.
  • Verification: Verified locally and across standard GitHub theme toggles (Dark, Dark dimmed, Light default).

@vercel

vercel Bot commented Nov 19, 2026

Copy link
Copy Markdown

@srinu2003 is attempting to deploy a commit to the Cruip Team on Vercel.

A member of the Team first needs to authorize it.

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