-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rename designTokens to tokens #4721
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import type {TokenObject} from './tokens'; | ||
|
|
||
| /** | ||
| * This file contains legacy design tokens that have not yet been categorized | ||
| * and organized into files. The goal is to eventually remove this file by | ||
| * categorizing tokens by group, moving them into separate files, and/or | ||
| * deprecating any undesired tokens. | ||
| */ | ||
| export const legacyTokens: TokenObject = { | ||
| 'border-radius-slim': '0.2rem', | ||
| 'border-radius-base': '0.4rem', | ||
| 'border-radius-wide': '0.8rem', | ||
| 'border-radius-full': '50%', | ||
| 'card-shadow': | ||
| '0px 0px 5px var(--p-shadow-from-ambient-light), 0px 1px 2px var(--p-shadow-from-direct-light)', | ||
| 'popover-shadow': | ||
| '-1px 0px 20px var(--p-shadow-from-ambient-light), 0px 1px 5px var(--p-shadow-from-direct-light)', | ||
| 'modal-shadow': | ||
| '0px 26px 80px var(--p-shadow-from-dim-light), 0px 0px 1px var(--p-shadow-from-dim-light)', | ||
| 'top-bar-shadow': '0 2px 2px -1px var(--p-shadow-from-direct-light)', | ||
| 'button-drop-shadow': '0 1px 0 rgba(0, 0, 0, 0.05)', | ||
| 'button-inner-shadow': 'inset 0 -1px 0 rgba(0, 0, 0, 0.2)', | ||
| 'button-pressed-inner-shadow': 'inset 0 1px 0 rgba(0, 0, 0, 0.15)', | ||
| 'override-loading-z-index': '514', | ||
| 'choice-size': '2rem', | ||
| 'icon-size': '1rem', | ||
| 'choice-margin': '0.1rem', | ||
| 'control-border-width': '0.2rem', | ||
| 'banner-border-default': | ||
| 'inset 0 0.1rem 0 0 var(--p-border-neutral-subdued), inset 0 0 0 0.1rem var(--p-border-neutral-subdued)', | ||
| 'banner-border-success': | ||
| 'inset 0 0.1rem 0 0 var(--p-border-success-subdued), inset 0 0 0 0.1rem var(--p-border-success-subdued)', | ||
| 'banner-border-highlight': | ||
| 'inset 0 0.1rem 0 0 var(--p-border-highlight-subdued), inset 0 0 0 0.1rem var(--p-border-highlight-subdued)', | ||
| 'banner-border-warning': | ||
| 'inset 0 0.1rem 0 0 var(--p-border-warning-subdued), inset 0 0 0 0.1rem var(--p-border-warning-subdued)', | ||
| 'banner-border-critical': | ||
| 'inset 0 0.1rem 0 0 var(--p-border-critical-subdued), inset 0 0 0 0.1rem var(--p-border-critical-subdued)', | ||
| 'thin-border-subdued': '0.1rem solid var(--p-border-subdued)', | ||
| 'text-field-spinner-offset': '0.2rem', | ||
| 'text-field-focus-ring-offset': '-0.4rem', | ||
| 'text-field-focus-ring-border-radius': '0.7rem', | ||
| 'button-group-item-spacing': '-0.1rem', | ||
| 'duration-100': '100ms', | ||
| 'duration-150': '150ms', | ||
| 'ease-in': 'cubic-bezier(0.5, 0.1, 1, 1)', | ||
| ease: 'cubic-bezier(0.4, 0.22, 0.28, 1)', | ||
| 'range-slider-thumb-size-base': '1.6rem', | ||
| 'range-slider-thumb-size-active': '2.4rem', | ||
| 'frame-offset': '0px', | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './tokens'; | ||
alex-page marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.