Skip to content

docs: add light and dark screenshots - #1211

Open
trueberryless wants to merge 1 commit into
docs/link-new-pagesfrom
docs/screenshots
Open

trueberryless wants to merge 1 commit into
docs/link-new-pagesfrom
docs/screenshots

Conversation

@trueberryless

@trueberryless trueberryless commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue(s)

Part of #1205

🧭 Context

Modernize the screenshots, stacked on #1247.

📚 Description

Adds light and dark screenshots to the docs, shown via a new ThemedImage component that follows the site theme. Replaces the seven outdated images with six new ones, and adds screenshots to the first contributor, installation, permissions and contributing pages.

The illustrations moved to their own PR to keep this one small.

@trueberryless
trueberryless added this pull request to stack #1210 November 4, 2026 07:58
@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for all-contributors ready!

Name Link
🔨 Latest commit 9bf0605
🔍 Latest deploy log https://app.netlify.com/projects/all-contributors/deploys/6aeae5c31d3d207e2b6406dc
😎 Deploy Preview https://deploy-preview-1211.staging.allcontributors.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for all-contributors failed.

Name Link
🔨 Latest commit 57ecc11
🔍 Latest deploy log https://app.netlify.com/projects/all-contributors/deploys/6b0749ebb359eacafbf2534f

@@ -0,0 +1,161 @@
---

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trueberryless can you help me understand what these files are? they look svg ish kinda but not really.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bigger picture reason for these files is that we replace the old PNG illustrations with SVGs where we can control light/dark mode variants.

At a technical level: This is just an Astro component, which contains the SVG in the HTML, which is also what you get as an output when importing an SVG normally.

Here it is pretty useful to have an Astro component however, as it allows for additional logic within the SVG (example: the kind can be a developer or product manager).

@lwasser

lwasser commented Nov 6, 2026

Copy link
Copy Markdown
Member

ok so the stack recognizes merge conflicts.

@lwasser lwasser added the documentation Improvements or additions to documentation label Nov 6, 2026
@michaelfaith

Copy link
Copy Markdown
Contributor

This is really nice. Great work 👏

@JimMadge JimMadge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does look really great.

I'm a bit worried about the maintainability of these Astro modules with embedded SVGs.
Is it possible to keep the logic and the images separate? Looks like it might be tricky where the SVGs are parameterised, like the Avatar

@trueberryless
trueberryless removed this pull request from stack #1210 November 13, 2026 14:41
@trueberryless
trueberryless changed the base branch from docs/rewrite-content to docs/link-new-pages November 13, 2026 14:41
@trueberryless
trueberryless removed this pull request from stack #1243 November 13, 2026 14:42
@trueberryless
trueberryless removed this pull request from stack #1248 November 13, 2026 14:47
@trueberryless
trueberryless removed this pull request from stack #1250 November 13, 2026 14:50
@lwasser

lwasser commented Nov 15, 2026

Copy link
Copy Markdown
Member

This does look really great.

I'm a bit worried about the maintainability of these Astro modules with embedded SVGs. Is it possible to keep the logic and the images separate? Looks like it might be tricky where the SVGs are parameterised, like the Avatar

@JimMadge , what are you worried about specifically? Is it the module not being maintained, or portability to another platform? I think Felix came up with a clever accessibility pathway here to ensure illustrations are accessible in both dark and light mode. I think in the future, if we really needed to port these to graphics, we could, because they are SVG; we could just use a tool to turn them into something else. I support this change (unless I'm missing something)!! I wouldn't have thought of such a clever approach. SVGs are simple to read and modify in my experience. I'm approving this but do want to better understand concerns!

@lwasser lwasser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another great pr @trueberryless thank you for being so thoughtful about accessibility!!

@michaelfaith

Copy link
Copy Markdown
Contributor

I think Felix came up with a clever accessibility pathway here to ensure illustrations are accessible in both dark and light mode.

I agree. I wonder if the hesitation stems from the fact that GitHub shows the SVG code, but doesn't show other image types because they're binary. If you think of it as another image format, it doesn't feel much different from keeping png files in the repo. And we have the added benefit of making them more dynamic.

@JimMadge

Copy link
Copy Markdown
Member

@JimMadge , what are you worried about specifically?

Thinking about editing SVGs, or adding new ones. Does the process involve moving the SVG HTML in and out of an Astro component, and parameterising the SVG? (How often are we likely to do that? Probably not very often)

https://github.com/all-contributors/allcontributors.org/blob/2e00c2d7434f678a5258eda0ddfafa8afb58f3d9/src/components/illustrations/Avatar.astro

I was really wondering whether it is possible to wrap the SVGs with some CSS or filter so we can drop any SVG into the docs and have them automatically adapt to the light or dark theme.

Actually, now that I think about it, if I tried to open one of the .astro files in Inkscape would it just work @trueberryless? It is HTML with some front matter which may just be ignored.

It looks like we've lost the SVGs from the head of the branch here. I didn't mean to push you to remove them @trueberryless 🙏. It is a definite improvement.

@JimMadge

JimMadge commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Oh, I'm confused 😆. Looks like this has all been done in #1249 🚀

@lwasser
lwasser force-pushed the docs/screenshots branch 2 times, most recently from 6df90ff to 6babbf6 Compare November 25, 2026 20:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation status: blocked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants