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

fix(tokens)!: correct space and size tokens #10726

Closed
wants to merge 29 commits into from

Conversation

alisonailea
Copy link
Contributor

@alisonailea alisonailea commented Nov 14, 2024

Related Issue: #10012 #10014

Summary

Corrects space and size tokens to align with the Calcite UI Kit and uses REM based tokens for the web platform token output.

New tokens

calcite-space-none: 0;
calcite-space-md-plus: 0.875rem;
calcite-space-sm-plus: 0.625rem;

BREAKING CHANGES

Size

calcite-size-xxl: 2.75rem; // 44px was 24px
calcite-size-xl: 2rem; // 32px was 20px
calcite-size-lg: 1.5rem; // 24px was 16px
calcite-size-md-plus: 1.25rem; // 20px was 14px
calcite-size-md: 1rem; // 16px was 12px
calcite-size-sm: 0.5rem; // 8px was 6px

Space

calcite-space-lg: 1rem // 16px was 14px
calcite-space-xl: 1.25rem; // 20px was 16px
calcite-space-xxl: 1.5rem; // 24px was 20px

Pixel based tokens are now categorized under "fixed"

calcite-size-fixed-xxxl: 32px; // deprecated
calcite-size-fixed-xxl: 24px; // deprecated
calcite-size-fixed-xl: 20px; // deprecated
calcite-size-fixed-lg: 16px; // deprecated
calcite-size-fixed-md-plus: 14px; // deprecated
calcite-size-fixed-md: 12px; // deprecated
calcite-size-fixed-sm-plus: 10px; // deprecated
calcite-size-fixed-sm: 8px; // deprecated
calcite-size-fixed-xs: 6px; // deprecated
calcite-size-fixed-xxs: 4px; // deprecated
calcite-size-fixed-xxxs: 2px; // deprecated

calcite-space-fixed-lg: 14px; // deprecated
calcite-space-fixed-md: 12px; // deprecated
calcite-space-fixed-sm: 8px; // deprecated
calcite-space-fixed-xl: 16px; // deprecated
calcite-space-fixed-xs: 6px; // deprecated
calcite-space-fixed-xxl: 20px; // deprecated
calcite-space-fixed-xxs: 4px; // deprecated
calcite-space-fixed-xxxl: 32px; // deprecated

@alisonailea alisonailea changed the base branch from dev to lumina November 14, 2024 02:43
BREAKING CHANGES

moves all old pixel based size tokens to a “fixed” category and marks them for deprecation.
new default size tokens are different sizes
new default size tokens convert to REMs when built for web platforms
BREAKING CHANGES

moves all old pixel based space tokens to a “fixed” category and marks them for deprecation.
new default space tokens are different values
new default space tokens convert to REMs when built for web platforms
@alisonailea alisonailea force-pushed the astump/10012-10014-space-size-tokens branch from 46b2afd to b859435 Compare November 14, 2024 02:47
@alisonailea alisonailea deleted the astump/10012-10014-space-size-tokens branch November 14, 2024 02:51
@alisonailea
Copy link
Contributor Author

closing in favor of not messed up merge conflicts PR #10727

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