1+ {
2+ "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
3+ "type" : " object" ,
4+ "properties" : {
5+ "$schema" : {
6+ "type" : " string"
7+ },
8+ "outDir" : {
9+ "description" : " Path to the output directory for the created design tokens" ,
10+ "type" : " string"
11+ },
12+ "themes" : {
13+ "description" : " An object with one or more themes. Each property defines a theme, and the property name is used as the theme name." ,
14+ "type" : " object" ,
15+ "propertyNames" : {
16+ "type" : " string"
17+ },
18+ "additionalProperties" : {
19+ "description" : " An object defining a theme. The property name holding the object becomes the theme name." ,
20+ "type" : " object" ,
21+ "properties" : {
22+ "colors" : {
23+ "description" : " Defines the colors for this theme" ,
24+ "type" : " object" ,
25+ "properties" : {
26+ "main" : {
27+ "description" : " An object with one or more color definitions. The property name is used as the color name." ,
28+ "type" : " object" ,
29+ "propertyNames" : {
30+ "type" : " string" ,
31+ "pattern" : " ^(?!(?:neutral|success|warning|danger|info)$)"
32+ },
33+ "additionalProperties" : {
34+ "description" : " A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
35+ }
36+ },
37+ "support" : {
38+ "default" : {},
39+ "description" : " An object with one or more color definitions. The property name is used as the color name." ,
40+ "type" : " object" ,
41+ "propertyNames" : {
42+ "type" : " string" ,
43+ "pattern" : " ^(?!(?:neutral|success|warning|danger|info)$)"
44+ },
45+ "additionalProperties" : {
46+ "description" : " A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
47+ }
48+ },
49+ "neutral" : {
50+ "description" : " A hex color, which is used for creating a color scale."
51+ }
52+ },
53+ "required" : [
54+ " main" ,
55+ " support" ,
56+ " neutral"
57+ ],
58+ "additionalProperties" : false
59+ },
60+ "typography" : {
61+ "description" : " Defines the typography for a given theme" ,
62+ "type" : " object" ,
63+ "properties" : {
64+ "fontFamily" : {
65+ "description" : " Sets the font-family for this theme" ,
66+ "type" : " string"
67+ }
68+ },
69+ "required" : [
70+ " fontFamily"
71+ ],
72+ "additionalProperties" : false
73+ },
74+ "borderRadius" : {
75+ "description" : " Defines the border-radius for this theme" ,
76+ "type" : " number"
77+ },
78+ "overrides" : {
79+ "description" : " Overrides for generated design tokens. Currently only supports colors defined in your theme" ,
80+ "type" : " object" ,
81+ "properties" : {
82+ "colors" : {
83+ "description" : " An object with color names as keys" ,
84+ "type" : " object" ,
85+ "propertyNames" : {
86+ "type" : " string"
87+ },
88+ "additionalProperties" : {
89+ "description" : " The name of the color to add overrides for, e.g. \" accent\" " ,
90+ "type" : " object" ,
91+ "propertyNames" : {
92+ "type" : " string" ,
93+ "enum" : [
94+ " background-default" ,
95+ " background-tinted" ,
96+ " surface-default" ,
97+ " surface-tinted" ,
98+ " surface-hover" ,
99+ " surface-active" ,
100+ " border-subtle" ,
101+ " border-default" ,
102+ " border-strong" ,
103+ " text-subtle" ,
104+ " text-default" ,
105+ " base-default" ,
106+ " base-hover" ,
107+ " base-active" ,
108+ " base-contrast-subtle" ,
109+ " base-contrast-default"
110+ ]
111+ },
112+ "additionalProperties" : {
113+ "description" : " Override values for semantic color tokens like \" background-subtle\" , \" border-default\" , etc." ,
114+ "type" : " object" ,
115+ "properties" : {
116+ "light" : {
117+ "description" : " A hex color that overrides light mode"
118+ },
119+ "dark" : {
120+ "description" : " A hex color that overrides dark mode"
121+ }
122+ },
123+ "additionalProperties" : false
124+ }
125+ }
126+ },
127+ "severity" : {
128+ "description" : " An object with severity color names as keys" ,
129+ "type" : " object" ,
130+ "propertyNames" : {
131+ "type" : " string" ,
132+ "enum" : [
133+ " info" ,
134+ " success" ,
135+ " warning" ,
136+ " danger"
137+ ]
138+ },
139+ "additionalProperties" : {
140+ "description" : " A hex color, which is used for creating a color scale"
141+ }
142+ },
143+ "linkVisited" : {
144+ "description" : " Overrides for the \" link-visited\" color" ,
145+ "type" : " object" ,
146+ "properties" : {
147+ "light" : {
148+ "description" : " A hex color that overrides light mode"
149+ },
150+ "dark" : {
151+ "description" : " A hex color that overrides dark mode"
152+ }
153+ },
154+ "additionalProperties" : false
155+ }
156+ },
157+ "additionalProperties" : false
158+ }
159+ },
160+ "required" : [
161+ " colors"
162+ ],
163+ "additionalProperties" : false
164+ }
165+ },
166+ "clean" : {
167+ "description" : " Delete the output directory before building or creating tokens" ,
168+ "type" : " boolean"
169+ }
170+ },
171+ "required" : [
172+ " outDir" ,
173+ " themes"
174+ ],
175+ "additionalProperties" : false
176+ }
0 commit comments