Skip to content

Commit 0b3594a

Browse files
committed
resolve accent colors
1 parent ea18b56 commit 0b3594a

2 files changed

Lines changed: 65 additions & 8 deletions

File tree

registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const resolveRecipe = async (fileName: string) => {
7777
}
7878

7979
const generateColors = async () => {
80-
const glob = new Glob('./packages/preset/src/colors/*.ts')
80+
const glob = new Glob('./packages/preset/src/theme/colors/*.ts')
8181

8282
const grayColors = ['neutral', 'mauve', 'olive', 'sage', 'sand', 'slate']
8383

@@ -159,7 +159,7 @@ const generateColors = async () => {
159159
Bun.write(
160160
`./website/public/registry/theme/colors/accent/index.json`,
161161
JSON.stringify(
162-
grayIndex.sort((a, b) => a.id.localeCompare(b.id)),
162+
accentIndex.sort((a, b) => a.id.localeCompare(b.id)),
163163
null,
164164
2,
165165
),
Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,77 @@
11
[
22
{
3-
"id": "mauve"
3+
"id": "amber"
44
},
55
{
6-
"id": "neutral"
6+
"id": "blue"
77
},
88
{
9-
"id": "olive"
9+
"id": "bronze"
1010
},
1111
{
12-
"id": "sage"
12+
"id": "brown"
1313
},
1414
{
15-
"id": "sand"
15+
"id": "crimson"
1616
},
1717
{
18-
"id": "slate"
18+
"id": "cyan"
19+
},
20+
{
21+
"id": "gold"
22+
},
23+
{
24+
"id": "grass"
25+
},
26+
{
27+
"id": "green"
28+
},
29+
{
30+
"id": "indigo"
31+
},
32+
{
33+
"id": "iris"
34+
},
35+
{
36+
"id": "jade"
37+
},
38+
{
39+
"id": "lime"
40+
},
41+
{
42+
"id": "mint"
43+
},
44+
{
45+
"id": "orange"
46+
},
47+
{
48+
"id": "pink"
49+
},
50+
{
51+
"id": "plum"
52+
},
53+
{
54+
"id": "purple"
55+
},
56+
{
57+
"id": "red"
58+
},
59+
{
60+
"id": "ruby"
61+
},
62+
{
63+
"id": "sky"
64+
},
65+
{
66+
"id": "teal"
67+
},
68+
{
69+
"id": "tomato"
70+
},
71+
{
72+
"id": "violet"
73+
},
74+
{
75+
"id": "yellow"
1976
}
2077
]

0 commit comments

Comments
 (0)