Skip to content

Add LINKS_CSS env var for custom CSS injection - #6

Merged
maxhollmann merged 1 commit into
masterfrom
feature/links-css-var
May 21, 2026
Merged

maxhollmann merged 1 commit into
masterfrom
feature/links-css-var

Conversation

@maxhollmann

@maxhollmann maxhollmann commented May 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #3

Summary

  • Adds a LINKS_CSS environment variable that injects arbitrary CSS into the page at startup
  • Addresses Request : Option to Increase Font Size #3 (font size request) while being general enough to handle any future styling needs (colors, spacing, etc.)
  • No rebuild required — CSS is applied at runtime via config.js, consistent with the existing env-var pattern

Usage

LINKS_CSS=":root { font-size: 18px; }"

Test plan

  • Set LINKS_CSS=":root { font-size: 18px; }" and confirm font size changes in the browser
  • Leave LINKS_CSS unset and confirm no regressions
  • Set an invalid/empty value and confirm the app still loads

🤖 Generated with Claude Code

Lets users tweak font size, colors, spacing, etc. without rebuilding
the bundle. Addresses issue #3 (font size request) while handling any
future styling requests with a single general-purpose escape hatch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
envlinks-demo Ready Ready Preview, Comment May 21, 2026 5:13pm

@maxhollmann
maxhollmann merged commit e5fff8d into master May 21, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 471798a8 Deployed May 21, 2026 by vercel[bot]
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.

Request : Option to Increase Font Size

1 participant