Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve --theme() CSS function to only accept modern syntax #15580

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Jan 9, 2025

This PR makes sure that the --theme(…) CSS function can only be used with the modern syntax. For backwards compatibility, the theme(…) function must be used with the older dot notation.

@RobinMalfait RobinMalfait force-pushed the feat/improve-css-functions branch from 3b1284b to 29c4137 Compare January 9, 2025 16:16
@RobinMalfait RobinMalfait marked this pull request as ready for review January 9, 2025 16:19
@RobinMalfait RobinMalfait requested a review from a team as a code owner January 9, 2025 16:19
Let's not allow old dot-notation, `--theme(colors.red.500)` should
error. Even though we can make it works, we want to nudge people in
using the new/modern syntax.
@RobinMalfait RobinMalfait force-pushed the feat/improve-css-functions branch from 29c4137 to 3669437 Compare January 9, 2025 16:19
@RobinMalfait RobinMalfait enabled auto-merge (squash) January 9, 2025 16:20
@RobinMalfait RobinMalfait merged commit fa2c83e into next Jan 9, 2025
5 checks passed
@RobinMalfait RobinMalfait deleted the feat/improve-css-functions branch January 9, 2025 16: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