File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Cobalt UI
2
2
3
- Schemas and tools for managing design tokens.
3
+ CLI for managing [ W3C Design Token format ] ( https://www.w3.org/community/design- tokens/ ) design systems .
4
4
5
5
## Usage
6
6
Original file line number Diff line number Diff line change 1
1
# @cobalt-ui/core
2
2
3
- Parse a ` tokens.json ` schema, validate it for errors, and return tokens as a
4
- normalized, flattened array.
3
+ Node.js API for managing [ W3C Design Token format] ( https://www.w3.org/community/design-tokens/ ) design systems.
5
4
6
- Use ` @cobalt-ui/core ` in the browser or in Node.js.
7
-
8
- For building tokens and syncing with Figma, use ` @cobalt-ui/cli ` .
5
+ For the CLI, use ` @cobalt-ui/cli ` .
9
6
10
7
## Install
11
8
@@ -23,9 +20,9 @@ import co from '@cobalt-ui/core';
23
20
24
21
const designTokens = {
25
22
color: {
26
- red: {type: ' color' , value: ' #e34850' },
27
- green: {type: ' color' , value: ' #2d9d78' },
28
- blue: {type: ' color' , value: ' #2680eb' },
23
+ red: {$ type: ' color' , $ value: ' #e34850' },
24
+ green: {$ type: ' color' , $ value: ' #2d9d78' },
25
+ blue: {$ type: ' color' , $ value: ' #2680eb' },
29
26
},
30
27
};
31
28
You can’t perform that action at this time.
0 commit comments