Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 4249b32

Browse files
docs: updates to documentation for intro color and brand color
1 parent 162915c commit 4249b32

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/BrandColors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import * as BrandColorStories from './BrandColors.stories';
55

66
# Brand Colors (First Tier)
77

8-
The first tier of our design token abstraction consists of brand-specific colors. These colors uses literal color names (like red, green, etc.) and a numeric scale (where 000 is light and 900 is dark) by default.They form the foundation of our design system and are essential to maintaining visual consistency across our products.
8+
The first tier of our design token abstraction consists of brand-specific colors. These colors uses literal color names (like red, green, etc.) and a numeric scale (where 000 is light and 900 is dark) by default. They form the foundation of our design system and are essential to maintaining visual consistency across our products.
99

10-
While these colors are fundamental to our design system, they **should not** be used directly in most cases. The exception is when a color needs to remain the same regardless of the theme (light or dark mode). Instead, these brand colors should be referenced via [**theme colors**](/docs/colors-themecolors--light-theme-colors), which form the second tier of our design tokens.
10+
While these colors are fundamental to our design system, they **should not** be used directly in most cases. The exception is when a color needs to remain the same regardless of the theme (light or dark mode). Instead, these brand colors should be referenced via [**theme colors**](/docs/colors-themecolors--docs), which form the second tier of our design tokens.
1111

1212
The majority of our brand color progressions were generated using the [0to255](https://0to255.com/037dd6) tool, which helps ensure smooth and consistent color transitions.
1313

docs/IntroductionColor.stories.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Color is a powerful tool in design. It can express style, convey meaning, and es
2626

2727
### **Brand colors (first tier)**
2828

29-
Brand colors form the foundation of our color system. However, in most cases they **SHOULD NOT** be used directly in component styles. Instead, they serve as a reference for the [Theme Colors](/docs/colors-themecolors--light-theme-colors). You can view our brand colors in the [Brand Colors](/docs/colors-brandcolors--default-story) section.
29+
Brand colors form the foundation of our color system. However, in most cases they **should not** be used directly in component styles. Instead, they serve as a reference for the [theme colors](/docs/colors-themecolors--light-theme-colors). You can view our brand colors in the [brand colors](/docs/colors-brandcolors--default-story) section.
3030

3131
### **Theme colors (second tier)**
3232

33-
Theme colors are semantically neutral, theme-compatible design tokens that you can use directly in your code and styles. Each token has a specific purpose, which is described in its documentation. You can view our theme colors in the [Theme Colors](/docs/colors-themecolors--light-theme-colors) section.
33+
Theme colors are semantically neutral, theme-compatible design tokens that you can use directly in your code and styles. Each token has been tested for accessibility contrast and has a specific purpose, which is described in its documentation. You can view our theme colors in the [theme colors](/docs/colors-themecolors--light-theme-colors) section.
3434

3535
### **Component colors (third tier)**
3636

@@ -88,7 +88,7 @@ background-color: var(--color-background-default);
8888

8989
#### **DON'T**: Use static color values in your components
9090

91-
```jsx
91+
```
9292
background-color: #ffffff; // Static color value
9393
```
9494

@@ -116,7 +116,7 @@ background-color: var(--custom-colors-my-custom-color);
116116

117117
#### **DON'T**: Use non-token colors directly in your components
118118

119-
```jsx
119+
```
120120
background-color: #abc123; // Custom color not in design tokens or global file
121121
```
122122

0 commit comments

Comments
 (0)