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

Border Token: create new tokens for border-radius and border-width #2412

Open
anuradha9712 opened this issue Nov 4, 2024 · 2 comments
Open
Labels
design system discussion required Need to discuss on design, solution, APIe etc. enhancement New feature or request

Comments

@anuradha9712
Copy link
Collaborator

Summary

Add new tokens for border-radius and border-width

Border Radius:
border-radius-0: 0px
border-radius-50: 2px
border-radius-100: 4px
border-radius-150: 6px
border-radius-200: 8px
border-radius-400: 16px
border-radius-full: 9999px


Border Width:
border-width-0: 0px
border-width-025: 1px
border-width-050: 2px
border-width-075: 3px
border-width-100: 4px

@anuradha9712 anuradha9712 added enhancement New feature or request design system discussion required Need to discuss on design, solution, APIe etc. labels Nov 4, 2024
@youngheart12
Copy link
Contributor

@anuradha9712 is it ready for dev or is the discussion is still in place

@varundhawan5792
Copy link
Collaborator

varundhawan5792 commented Nov 12, 2024

The naming of tokens for border radius should be consistent with the tokens for spacing and opacity

  --spacing: 8px;
  --spacing-2: 16px;
  --spacing-3: 32px;
  --spacing-4: 48px;
  --opacity-1: 0.04;
  --opacity-2: 0.08;
  --opacity-3: 0.12;
  --opacity-4: 0.16;
  --opacity-6: 0.24;

Here are the suggested values

Border Radius:

border-radius-0: 0px
border-radius-0-5: 2px
border-radius-1: 4px
border-radius-1-5: 6px
border-radius-2: 8px
border-radius-4: 16px
border-radius-full: 9999px

Border Width:

border-width-0: 0px
border-width-0-25: 1px
border-width-0-50: 2px
border-width-0-75: 3px
border-width-1: 4px

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design system discussion required Need to discuss on design, solution, APIe etc. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants