Skip to content

Show theme values (and pixel/color equivalents) in hovers and completions #1092

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

Merged
merged 14 commits into from
Dec 11, 2024

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Nov 18, 2024

Fixes #1089

In v4 when we switched to using just var(--some-theme-key) in declarations instead of including fallbacks this had the side-effect of hiding pixel and color equivalents. This PR brings those back.

  • Evaluate simple calc expressions that are derived from the theme

@thecrypticace thecrypticace changed the title Show theme values in hovers and completions Show theme values (and pixel/color equivalents) in hovers and completions Nov 18, 2024
@thecrypticace thecrypticace force-pushed the feat/v4-show-theme-values branch 2 times, most recently from 4513e2f to 2a4b33f Compare November 20, 2024 14:50
@thecrypticace thecrypticace force-pushed the feat/v4-show-theme-values branch from 8d2f0f7 to eb93db6 Compare December 9, 2024 21:04
@thecrypticace thecrypticace force-pushed the feat/v4-show-theme-values branch from d2bd6b1 to 43ac528 Compare December 10, 2024 15:16
@thecrypticace thecrypticace marked this pull request as ready for review December 10, 2024 15:30
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

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

Love it. Excited to get a new beta release out and drop those undefined values.

@thecrypticace thecrypticace marked this pull request as draft December 10, 2024 17:02
@thecrypticace
Copy link
Contributor Author

Fantastic. I'm going to make some changes to the completion snippets so they're more usable.

@thecrypticace thecrypticace marked this pull request as ready for review December 10, 2024 17:16
@thecrypticace thecrypticace merged commit 434c7db into main Dec 11, 2024
@thecrypticace thecrypticace deleted the feat/v4-show-theme-values branch December 11, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show pixel values for v4 spacing
3 participants