Skip to content

36-change-rem-based-tokens-to-fixed-pixel #37

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 2 commits into from
Mar 31, 2025

Conversation

bubulux
Copy link
Owner

@bubulux bubulux commented Mar 27, 2025

  • for dimensions
  • for spacing

@bubulux bubulux requested a review from Copilot March 27, 2025 18:59
@bubulux bubulux linked an issue Mar 27, 2025 that may be closed by this pull request
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates theme tokens for spacing and dimensions by switching from rem-based units to fixed pixel values.

  • Spacing tokens are now expressed in pixels rather than rem units.
  • Dimension tokens have been similarly converted from rem values to corresponding pixel values.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/theme/tokens/spacing.ts Updates spacing tokens from rem values to fixed pixels.
src/theme/tokens/dimensions.ts Updates dimension tokens from rem values to fixed pixels.

@@ -2,47 +2,47 @@ enum EThemeSpacing {
/**
* 0px
*/
None = "0rem",
None = "0",
Copy link
Preview

Copilot AI Mar 27, 2025

Choose a reason for hiding this comment

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

The 'None' token value is changed to '0' without a unit while other tokens use 'px'. Although '0' is valid in CSS, for consistency consider updating it to '0px'.

Suggested change
None = "0",
None = "0px",

Copilot uses AI. Check for mistakes.

@bubulux bubulux merged commit fe9edfe into development Mar 31, 2025
1 check passed
@bubulux bubulux deleted the 36-change-rem-based-tokens-to-fixed-pixel branch March 31, 2025 17:55
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.

Change rem based tokens to fixed pixel
1 participant