-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(status,themes): add design tokens to status components
- Loading branch information
1 parent
c2f9a30
commit a28711f
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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
23 changes: 23 additions & 0 deletions
23
packages/react/src/themes/tokens/component/status-tokens.ts
This file contains 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,23 @@ | ||
import { AliasTokens } from '../alias-tokens'; | ||
import { RefTokens } from '../ref-tokens'; | ||
|
||
export type StatusTokens = | ||
| 'status-disabled-text-color' | ||
| 'status-circle-blocked-color' | ||
| 'status-circle-disabled-color' | ||
| 'status-circle-disabled-border-color' | ||
| 'status-circle-enabled-color'; | ||
|
||
export type StatusTokenValue = AliasTokens | RefTokens; | ||
|
||
export type StatusTokenMap = { | ||
[Token in StatusTokens]: StatusTokenValue; | ||
}; | ||
|
||
export const defaultStatusTokens: StatusTokenMap = { | ||
'status-disabled-text-color': 'color-neutral-65', | ||
'status-circle-blocked-color': 'color-alert-50', | ||
'status-circle-disabled-color': 'color-white', | ||
'status-circle-disabled-border-color': 'color-neutral-65', | ||
'status-circle-enabled-color': 'color-success-50', | ||
}; |