X Tutup
Skip to content

feat: Generate CSS custom properties from LESS variables#11688

Merged
cdrini merged 2 commits intointernetarchive:masterfrom
lokesh:css-custom-properties
Jan 23, 2026
Merged

feat: Generate CSS custom properties from LESS variables#11688
cdrini merged 2 commits intointernetarchive:masterfrom
lokesh:css-custom-properties

Conversation

@lokesh
Copy link
Collaborator

@lokesh lokesh commented Jan 12, 2026

Checks of an item from #11687

Technical

Added a build script (scripts/generate-css-custom-properties.js) that generates CSS custom properties from all LESS variables in static/css/less/ (e.g., @primary-blue--primary-blue).

This enables gradual migration from LESS variables to CSS custom properties.

Testing

  1. Run node scripts/generate-css-custom-properties.js or make css
  2. Verify static/css/less/generated-custom-properties.css is generated with all LESS variables as CSS custom properties

Screenshot

N/A (build tooling only)

Stakeholders

@cdrini @mekarpeles @jimchamp @RayBB

@lokesh lokesh requested a review from cdrini January 12, 2026 19:38
@lokesh lokesh self-assigned this Jan 12, 2026
@lokesh lokesh requested a review from RayBB January 14, 2026 00:05
Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

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

After reading the comment in the original issue I think this is good to go.

I thought we might want to add this to auto run in CI but I don't think that's needed as it's okay for it to be out of sync sometimes.

@cdrini cdrini merged commit d433776 into internetarchive:master Jan 23, 2026
5 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.

3 participants

X Tutup