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

Very early draft of new tokens #1573

Closed
wants to merge 9 commits into from
Closed

Conversation

crishpeen
Copy link
Member

Description

Additional context

Issue reference

Copy link

netlify bot commented Aug 9, 2024

Deploy Preview for spirit-design-system failed. Why did it fail? →

Name Link
🔨 Latest commit 10e2e57
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/66be0a2d7887a800088a2bf4

@github-actions github-actions bot added the BC Breaking change label Aug 9, 2024
@crishpeen crishpeen changed the title Very early new tokens draft Very early draft of new tokens Aug 9, 2024
Comment on lines 3 to 5
$border-none: none !default;
$border-solid: solid !default;
$border-dashed: dashed !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

We have border-width below. Shouldn't this be border-style?

Comment on lines 1 to 2
// Generated Borders from Supernova. Do not edit manually.
$border-style-0: none !default;
$border-style-100: solid !default;
$border-style-200: dashed !default;
// Manually created from Figma
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not edit manually.
Manually created from Figma

🎉

) !default;

$background-colors: (
formfield: (
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's two words… 🤔

Suggested change
formfield: (
form-field: (

Comment on lines 7 to 11
$emotion-danger-active: #ffffff !default;
$emotion-danger-background: #ba3e5a !default;
$emotion-danger-border: #ffffff !default;
$emotion-danger-content: #e84b6f !default;
$emotion-danger-hover: #ffffff !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

Emotion, button and custom colors mix interaction states with properties:

  • states: active, hover
  • properties: background, border, content

Looking at current tokens, it's unclear to me where I can use the active and hover tokens.
Don't we need an indication what the states can be used for? Something like:

$emotion-danger-background-active
$emotion-danger-background-hover

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe add state infix? But still we are unsure to which token is this state.

Comment on lines 3 to 8
$shadow-100: 0 2px 8px 0 #00000026 !default;
$shadow-200: 0 4px 12px 0 #0003 !default;
$shadow-300: 0 8px 24px 0 #00000040 !default;
$shadow-400: 0 12px 32px 0 #00000040 !default;

$focus: 0 0 0 2px #d2c2ff99 !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not reusing spacing and color tokens here?

Copy link
Member Author

Choose a reason for hiding this comment

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

We can check if figma allows this, otherwise I think about them as tokens on the same level and then it might feel weird to somehow join them.

Comment on lines 8 to 10
$theme-colors: map.get($value, 'colors');
$theme-gradients: map.get($value, 'gradients');
$theme-shadows: map.get($value, 'shadows');
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of hard-coding, you could put the property categories into a list and iterate over it:

$theme-categories: colors, gradients, shadows;

@each $category, $map in $theme-categories {
  //
}

If plural vs. singular is a problem, we could strip the ending s from the category name here.

@crishpeen crishpeen changed the base branch from integration/tokens-variables to main August 15, 2024 14:00
Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for spirit-design-system-storybook ready!

Name Link
🔨 Latest commit 10e2e57
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/66be0a2d3f43640008f694ed
😎 Deploy Preview https://deploy-preview-1573--spirit-design-system-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@crishpeen
Copy link
Member Author

Split into many PRs and commits in #1595

@crishpeen crishpeen closed this Aug 27, 2024
@literat literat deleted the bc/design-tokens-preview branch November 27, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants