-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(shared-types,ui-themes): rename datavizualization to camelcase
- Loading branch information
Showing
9 changed files
with
65 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: Color System | ||
category: Guides | ||
order: 5 | ||
--- | ||
|
||
### Colors | ||
|
||
Colors are divided into two main technical groups: primitive and semantic colors. Primitive colors store the pure hex values. The primitive colors are the building blocks of the semantic colors. Examples of semantic colors: ui, contrasts, dataVisualization. | ||
|
||
### Primitives | ||
|
||
These are here for reference only, usually not needed for InstUI development. Available from the themes and from `@instructure/ui-themes` | ||
|
||
```jsx | ||
--- | ||
type: example | ||
--- | ||
<ThemeColors colors={canvas.colors.primitives} label="Color palette (Primitive colors)"></ThemeColors> | ||
``` | ||
|
||
### Additional Primitives | ||
|
||
These are here for reference only, usually not needed for InstUI development. Available from `@instructure/ui-themes` | ||
|
||
```jsx | ||
--- | ||
type: example | ||
--- | ||
<ThemeColors colors={additionalPrimitives} label="Additional Primitive colors"></ThemeColors> | ||
``` | ||
|
||
### Data visualization | ||
|
||
The color names show their hue value and their contrast value on a white background. They don't tell how to use them or for what data they can be applied to. Each hue has 4 primary and 5 secondary colors. | ||
|
||
- The data visualization color palette is for data representation only. Like graphs, chars and plots. | ||
- These are solid colors and can not be used for creating gradients. | ||
- First you have to use all 4 of the primary colors of a hue, then you can use the 5 secondary ones. | ||
- Use them on a white background | ||
|
||
Available from `@instructure/ui-themes` | ||
|
||
```jsx | ||
--- | ||
type: example | ||
--- | ||
<ColorTable colors={dataVisualization} colorNames={additionalPrimitives}></ColorTable> | ||
``` |
This file was deleted.
Oops, something went wrong.
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
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
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