Skip to content

Commit

Permalink
Docs: Update colors documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Nov 4, 2023
1 parent 37ae5c4 commit 3ec257d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import copy from 'copy-to-clipboard'
export default () => <div className="grid-cols:6 grid-cols:13@sm my:40 gap:25|10">
{Object.keys(variables)
// @ts-ignore todo fix this
.filter((colorName) => variables[colorName].type === 'color' && !['black', 'white', 'current', 'transparent'].includes(colorName))
.filter((variableName) => ['slate', 'gray', 'brown', 'orange', 'gold', 'yellow', 'grass', 'green', 'beryl', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'crimson', 'red'].includes(variableName))
.map((colorName: string) => {
const eachColors = (variables as any)[colorName]
return (
Expand Down
12 changes: 6 additions & 6 deletions site/app/[locale]/(root)/docs/colors/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Create an alias for a color to link its value to an existing color. This allows
```js name=master.css.js
export default {
variables: {
+ primary: 'blue-60'
+ primary: '$(blue-60)'
}
}
```
Expand Down Expand Up @@ -86,8 +86,8 @@ Create color variables for backgrounds in apps, panels, cards, and more.
```js name=master.css.js
export default {
variables: {
+ neutral: 'white',
+ fade: 'slate-5'
+ neutral: '$(white)',
+ fade: '$(slate-5)'
}
}
```
Expand All @@ -106,9 +106,9 @@ Create accessible color variables for titles, descriptions, icons, and other bod
export default {
variables: {
+ text: {
+ netural: 'slate-70',
+ strong: 'slate-95',
+ dim: 'slate-30'
+ netural: '$(slate-70)',
+ strong: '$(slate-95)',
+ dim: '$(slate-30)'
+ }
}
}
Expand Down

0 comments on commit 3ec257d

Please sign in to comment.