-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce color collections for generative styling of components
- Loading branch information
1 parent
02a83f7
commit 244bcce
Showing
5 changed files
with
45 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Collections | ||
|
||
Collections are lists of available values that can be used to customize the | ||
appearance of components, such as colors, sizes, and placement. Collections are | ||
used to ensure consistency across the design system. | ||
|
||
## General Guidelines | ||
|
||
- Components can support one or more collections from a collection category. | ||
Refer to the documentation for each component to see which collections are | ||
available. | ||
- If an option from a collection is used in a component, all other options from | ||
the same collection must be available for use in that component too. | ||
|
||
## Colors | ||
|
||
The following color names are designed for use in components that support the | ||
`color` prop: | ||
|
||
| Collection | Available values | | ||
|------------|--------------------------------------------------------| | ||
| Action | `primary`, `secondary`, `selected` | | ||
| Feedback | `success`, `warning`, `danger`, `info`, `help`, `note` | | ||
| Neutral | `light`, `dark` | |
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
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,9 @@ | ||
$action-colors: primary, secondary, selected; | ||
$feedback-colors: success, warning, danger, info, help, note; | ||
$neutral-colors: light, dark; | ||
|
||
$colors: ( | ||
action: $action-colors, | ||
feedback: $feedback-colors, | ||
neutral: $neutral-colors, | ||
); |