Skip to content

Declare CSS custom properties before their use - #812

Merged
pangolingo merged 1 commit into
mainfrom
css-custom-properties-first
Nov 20, 2026
Merged

pangolingo merged 1 commit into
mainfrom
css-custom-properties-first

Conversation

@pangolingo

@pangolingo pangolingo commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Adds a rule to the CSS guide's "Declaration ordering" section: when a rule declares a custom property and also uses it, declare the custom property first.

This came up in a review discussion on Hub: https://github.com/thoughtbot/hub/pull/10761#discussion_r4567820893

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pangolingo
pangolingo marked this pull request as ready for review November 20, 2026 18:14
@pangolingo
pangolingo requested a review from enatario November 20, 2026 18:14

@enatario enatario left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice!

@pangolingo
pangolingo merged commit 69e897f into main Nov 20, 2026
2 checks passed
@pangolingo
pangolingo deleted the css-custom-properties-first branch November 20, 2026 19:25
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.

2 participants