@zj-dynamics/design 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -2
  3. package/dist/foundationColors.d.ts +3 -0
  4. package/dist/foundationColors.js +25 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +2 -0
  7. package/dist/theme.d.ts +47 -0
  8. package/dist/theme.js +78 -0
  9. package/foundation/native/LICENSE +21 -0
  10. package/foundation/native/assets/icon.map.d.ts +1832 -0
  11. package/foundation/native/assets/tokens.all.colors.d.ts +295 -0
  12. package/foundation/native/assets/tokens.android.d.ts +387 -0
  13. package/foundation/native/assets/tokens.color.d.ts +80 -0
  14. package/foundation/native/assets/tokens.dark.android.d.ts +118 -0
  15. package/foundation/native/assets/tokens.dark.d.ts +91 -0
  16. package/foundation/native/assets/tokens.dark.ios.d.ts +118 -0
  17. package/foundation/native/assets/tokens.ios.d.ts +387 -0
  18. package/foundation/native/assets/tokens.semantic.d.ts +55 -0
  19. package/foundation/native/assets/tokens.web.d.ts +359 -0
  20. package/foundation/native/color.css +79 -0
  21. package/foundation/native/colors.cjs +79 -0
  22. package/foundation/native/colors.mjs +79 -0
  23. package/foundation/native/dark.mode.css +135 -0
  24. package/foundation/native/dark.theme.css +90 -0
  25. package/foundation/native/foundation.css +405 -0
  26. package/foundation/native/foundation.local.css +404 -0
  27. package/foundation/native/iconStyles/iconColors.d.ts +157 -0
  28. package/foundation/native/iconStyles/iconSizes.d.ts +16 -0
  29. package/foundation/native/iconStyles/iconStyles.mobile.d.ts +1 -0
  30. package/foundation/native/iconStyles/iconStyles.web.d.ts +1 -0
  31. package/foundation/native/iconStyles/icons.types.d.ts +11 -0
  32. package/foundation/native/index.cjs +4737 -0
  33. package/foundation/native/index.d.mts +59 -0
  34. package/foundation/native/index.mjs +4718 -0
  35. package/foundation/native/scripts/iconMap.types.d.ts +11 -0
  36. package/foundation/native/semantic.css +54 -0
  37. package/foundation/native/tailwind/rulnarPlugin.d.ts +4 -0
  38. package/foundation/native/tailwind.cjs +432 -0
  39. package/foundation/native/tailwind.mjs +430 -0
  40. package/foundation/web/LICENSE +21 -0
  41. package/foundation/web/assets/icon.map.d.ts +1854 -0
  42. package/foundation/web/assets/tokens.all.colors.d.ts +295 -0
  43. package/foundation/web/assets/tokens.android.d.ts +387 -0
  44. package/foundation/web/assets/tokens.color.d.ts +80 -0
  45. package/foundation/web/assets/tokens.dark.d.ts +91 -0
  46. package/foundation/web/assets/tokens.ios.d.ts +387 -0
  47. package/foundation/web/assets/tokens.semantic.d.ts +55 -0
  48. package/foundation/web/assets/tokens.web.d.ts +359 -0
  49. package/foundation/web/color.css +79 -0
  50. package/foundation/web/colors.cjs +79 -0
  51. package/foundation/web/colors.mjs +79 -0
  52. package/foundation/web/dark.mode.css +135 -0
  53. package/foundation/web/dark.theme.css +90 -0
  54. package/foundation/web/foundation.css +405 -0
  55. package/foundation/web/foundation.local.css +404 -0
  56. package/foundation/web/iconStyles/iconColors.d.ts +157 -0
  57. package/foundation/web/iconStyles/iconSizes.d.ts +16 -0
  58. package/foundation/web/iconStyles/iconStyles.mobile.d.ts +1 -0
  59. package/foundation/web/iconStyles/iconStyles.web.d.ts +1 -0
  60. package/foundation/web/iconStyles/icons.types.d.ts +11 -0
  61. package/foundation/web/index.cjs +4524 -0
  62. package/foundation/web/index.d.mts +57 -0
  63. package/foundation/web/index.mjs +4507 -0
  64. package/foundation/web/scripts/iconMap.types.d.ts +11 -0
  65. package/foundation/web/semantic.css +54 -0
  66. package/foundation/web/tailwind/rulnarPlugin.d.ts +4 -0
  67. package/foundation/web/tailwind.cjs +432 -0
  68. package/foundation/web/tailwind.mjs +430 -0
  69. package/package.json +105 -4
@@ -0,0 +1,430 @@
1
+ import plugin from 'tailwindcss/plugin.js';
2
+
3
+ var tokens = {
4
+ "base-unit": "16px",
5
+ "border-base": 1,
6
+ "border-thick": 2,
7
+ "border-thicker": 4,
8
+ "border-thickest": 8,
9
+ "color-base-grey--100": "hsl(0, 0%, 97%)",
10
+ "color-base-grey--200": "hsl(0, 0%, 93%)",
11
+ "color-base-grey--300": "hsl(0, 0%, 87%)",
12
+ "color-base-grey--400": "hsl(0, 0%, 72%)",
13
+ "color-base-grey--500": "hsl(0, 0%, 58%)",
14
+ "color-base-grey--600": "hsl(0, 0%, 47%)",
15
+ "color-base-grey--700": "hsl(0, 0%, 35%)",
16
+ "color-base-grey--800": "hsl(0, 0%, 24%)",
17
+ "color-base-grey--900": "hsl(0, 0%, 15%)",
18
+ "color-base-grey--1000": "hsl(0, 0%, 11%)",
19
+ "color-base-taupe--100": "hsl(35, 20%, 97%)",
20
+ "color-base-taupe--200": "hsl(43, 18%, 92%)",
21
+ "color-base-taupe--300": "hsl(40, 9%, 85%)",
22
+ "color-base-taupe--400": "hsl(43, 5%, 72%)",
23
+ "color-base-taupe--500": "hsl(47, 4%, 57%)",
24
+ "color-base-taupe--600": "hsl(43, 3%, 46%)",
25
+ "color-base-taupe--700": "hsl(48, 3%, 34%)",
26
+ "color-base-taupe--800": "hsl(40, 3%, 23%)",
27
+ "color-base-taupe--900": "hsl(30, 3%, 15%)",
28
+ "color-base-taupe--1000": "hsl(30, 4%, 11%)",
29
+ "color-base-red--100": "hsl(10, 60%, 98%)",
30
+ "color-base-red--200": "hsl(7, 63%, 95%)",
31
+ "color-base-red--300": "hsl(5, 65%, 90%)",
32
+ "color-base-red--400": "hsl(6, 64%, 76%)",
33
+ "color-base-red--500": "hsl(6, 64%, 65%)",
34
+ "color-base-red--600": "hsl(6, 64%, 51%)",
35
+ "color-base-red--700": "hsl(6, 100%, 35%)",
36
+ "color-base-red--800": "hsl(6, 100%, 24%)",
37
+ "color-base-red--900": "hsl(6, 100%, 16%)",
38
+ "color-base-red--1000": "hsl(6, 100%, 12%)",
39
+ "color-base-green--100": "hsl(108, 29%, 97%)",
40
+ "color-base-green--200": "hsl(109, 28%, 92%)",
41
+ "color-base-green--300": "hsl(106, 28%, 85%)",
42
+ "color-base-green--400": "hsl(107, 29%, 65%)",
43
+ "color-base-green--500": "hsl(107, 30%, 49%)",
44
+ "color-base-green--600": "hsl(107, 58%, 33%)",
45
+ "color-base-green--700": "hsl(107, 65%, 24%)",
46
+ "color-base-green--800": "hsl(107, 64%, 16%)",
47
+ "color-base-green--900": "hsl(108, 63%, 11%)",
48
+ "color-base-green--1000": "hsl(108, 64%, 8%)",
49
+ "color-base-blue--100": "hsl(210, 17%, 98%)",
50
+ "color-base-blue--200": "hsl(195, 12%, 94%)",
51
+ "color-base-blue--300": "hsl(200, 13%, 87%)",
52
+ "color-base-blue--400": "hsl(196, 12%, 70%)",
53
+ "color-base-blue--500": "hsl(198, 12%, 57%)",
54
+ "color-base-blue--600": "hsl(197, 15%, 43%)",
55
+ "color-base-blue--700": "hsl(197, 21%, 36%)",
56
+ "color-base-blue--800": "hsl(198, 35%, 21%)",
57
+ "color-base-blue--900": "hsl(197, 90%, 12%)",
58
+ "color-base-blue--1000": "hsl(198, 96%, 9%)",
59
+ "color-base-yellow--100": "hsl(49, 67%, 95%)",
60
+ "color-base-yellow--200": "hsl(52, 64%, 89%)",
61
+ "color-base-yellow--300": "hsl(51, 64%, 77%)",
62
+ "color-base-yellow--400": "hsl(51, 64%, 49%)",
63
+ "color-base-yellow--500": "hsl(51, 64%, 40%)",
64
+ "color-base-yellow--600": "hsl(51, 64%, 32%)",
65
+ "color-base-yellow--700": "hsl(51, 64%, 24%)",
66
+ "color-base-yellow--800": "hsl(51, 64%, 16%)",
67
+ "color-base-yellow--900": "hsl(51, 63%, 11%)",
68
+ "color-base-yellow--1000": "hsl(50, 64%, 8%)",
69
+ "color-base-lime--100": "hsl(80, 53%, 97%)",
70
+ "color-base-lime--200": "hsl(79, 49%, 90%)",
71
+ "color-base-lime--300": "hsl(79, 51%, 78%)",
72
+ "color-base-lime--400": "hsl(79, 51%, 51%)",
73
+ "color-base-lime--500": "hsl(79, 85%, 34%)",
74
+ "color-base-lime--600": "hsl(79, 86%, 27%)",
75
+ "color-base-lime--700": "hsl(79, 85%, 21%)",
76
+ "color-base-lime--800": "hsl(79, 86%, 14%)",
77
+ "color-base-lime--900": "hsl(78, 87%, 9%)",
78
+ "color-base-lime--1000": "hsl(79, 82%, 7%)",
79
+ "color-base-lightBlue--100": "hsl(205, 86%, 97%)",
80
+ "color-base-lightBlue--200": "hsl(207, 87%, 94%)",
81
+ "color-base-lightBlue--300": "hsl(206, 91%, 87%)",
82
+ "color-base-lightBlue--400": "hsl(207, 89%, 71%)",
83
+ "color-base-lightBlue--500": "hsl(207, 79%, 57%)",
84
+ "color-base-lightBlue--600": "hsl(207, 61%, 45%)",
85
+ "color-base-lightBlue--700": "hsl(207, 61%, 34%)",
86
+ "color-base-lightBlue--800": "hsl(206, 61%, 23%)",
87
+ "color-base-lightBlue--900": "hsl(207, 61%, 15%)",
88
+ "color-base-lightBlue--1000": "hsl(207, 60%, 11%)",
89
+ "color-base-pink--100": "hsl(345, 40%, 98%)",
90
+ "color-base-pink--200": "hsl(347, 33%, 95%)",
91
+ "color-base-pink--300": "hsl(348, 36%, 89%)",
92
+ "color-base-pink--400": "hsl(349, 34%, 75%)",
93
+ "color-base-pink--500": "hsl(349, 34%, 64%)",
94
+ "color-base-pink--600": "hsl(348, 34%, 53%)",
95
+ "color-base-pink--700": "hsl(348, 40%, 41%)",
96
+ "color-base-pink--800": "hsl(348, 40%, 27%)",
97
+ "color-base-pink--900": "hsl(347, 41%, 18%)",
98
+ "color-base-pink--1000": "hsl(349, 40%, 13%)",
99
+ "color-base-orange--100": "hsl(31, 71%, 97%)",
100
+ "color-base-orange--200": "hsl(31, 74%, 93%)",
101
+ "color-base-orange--300": "hsl(31, 72%, 85%)",
102
+ "color-base-orange--400": "hsl(31, 83%, 64%)",
103
+ "color-base-orange--500": "hsl(31, 80%, 48%)",
104
+ "color-base-orange--600": "hsl(31, 90%, 37%)",
105
+ "color-base-orange--700": "hsl(31, 100%, 27%)",
106
+ "color-base-orange--800": "hsl(31, 100%, 18%)",
107
+ "color-base-orange--900": "hsl(31, 90%, 12%)",
108
+ "color-base-orange--1000": "hsl(31, 79%, 9%)",
109
+ "color-base-teal--100": "hsl(190, 63%, 97%)",
110
+ "color-base-teal--200": "hsl(190, 63%, 92%)",
111
+ "color-base-teal--300": "hsl(190, 63%, 81%)",
112
+ "color-base-teal--400": "hsl(190, 63%, 60%)",
113
+ "color-base-teal--500": "hsl(190, 80%, 42%)",
114
+ "color-base-teal--600": "hsl(190, 80%, 33%)",
115
+ "color-base-teal--700": "hsl(190, 78%, 25%)",
116
+ "color-base-teal--800": "hsl(190, 75%, 17%)",
117
+ "color-base-teal--900": "hsl(190, 85%, 10%)",
118
+ "color-base-teal--1000": "hsl(190, 50%, 9%)",
119
+ "color-base-purple--100": "hsl(253, 50%, 97%)",
120
+ "color-base-purple--200": "hsl(253, 50%, 94%)",
121
+ "color-base-purple--300": "hsl(253, 50%, 90%)",
122
+ "color-base-purple--400": "hsl(253, 50%, 79%)",
123
+ "color-base-purple--500": "hsl(253, 52%, 69%)",
124
+ "color-base-purple--600": "hsl(253, 50%, 59%)",
125
+ "color-base-purple--700": "hsl(253, 50%, 50%)",
126
+ "color-base-purple--800": "hsl(253, 50%, 34%)",
127
+ "color-base-purple--900": "hsl(253, 50%, 23%)",
128
+ "color-base-purple--1000": "hsl(253, 50%, 16%)",
129
+ "color-indigo": "rgb(85, 106, 203)",
130
+ "color-indigo--light": "rgb(136, 151, 219)",
131
+ "color-indigo--lighter": "rgb(187, 195, 234)",
132
+ "color-indigo--lightest": "rgb(230, 233, 247)",
133
+ "color-indigo--dark": "rgb(55, 69, 132)",
134
+ "color-white--rgb": "255, 255, 255",
135
+ "color-black--rgb": "0, 0, 0",
136
+ "color-brand--highlight": "hsl(86, 100%, 46%)",
137
+ "color-greyBlue--rgb": "101, 120, 132",
138
+ "color-purple--light": "hsl(253, 50%, 79%)",
139
+ "color-purple--lighter": "hsl(253, 50%, 90%)",
140
+ "color-purple--lightest": "hsl(253, 50%, 97%)",
141
+ "color-teal": "hsl(190, 80%, 42%)",
142
+ "color-teal--light": "hsl(190, 63%, 60%)",
143
+ "color-teal--lighter": "hsl(190, 63%, 81%)",
144
+ "color-teal--lightest": "hsl(190, 63%, 92%)",
145
+ "color-teal--dark": "hsl(190, 78%, 25%)",
146
+ "color-blue": "hsl(197, 90%, 12%)",
147
+ "color-blue--light": "hsl(197, 21%, 36%)",
148
+ "color-blue--lighter": "hsl(198, 12%, 57%)",
149
+ "color-blue--lightest": "hsl(200, 13%, 87%)",
150
+ "color-blue--dark": "hsl(198, 96%, 9%)",
151
+ "color-taupe": "hsl(43, 18%, 92%)",
152
+ "color-taupe--light": "hsl(35, 20%, 97%)",
153
+ "color-taupe--dark": "hsl(40, 9%, 85%)",
154
+ "color-green": "hsl(107, 58%, 33%)",
155
+ "color-green--light": "hsl(107, 30%, 49%)",
156
+ "color-green--lighter": "hsl(107, 29%, 65%)",
157
+ "color-green--lightest": "hsl(109, 28%, 92%)",
158
+ "color-green--dark": "hsl(107, 64%, 16%)",
159
+ "color-lime": "hsl(79, 85%, 34%)",
160
+ "color-lime--light": "hsl(79, 51%, 51%)",
161
+ "color-lime--lighter": "hsl(79, 51%, 78%)",
162
+ "color-lime--lightest": "hsl(79, 49%, 90%)",
163
+ "color-lime--dark": "hsl(79, 85%, 21%)",
164
+ "color-yellowGreen": "hsl(79, 85%, 34%)",
165
+ "color-yellowGreen--light": "hsl(79, 51%, 51%)",
166
+ "color-yellowGreen--lighter": "hsl(79, 51%, 78%)",
167
+ "color-yellowGreen--lightest": "hsl(79, 49%, 90%)",
168
+ "color-yellowGreen--dark": "hsl(79, 86%, 27%)",
169
+ "color-yellow": "hsl(51, 64%, 49%)",
170
+ "color-yellow--light": "hsl(51, 64%, 77%)",
171
+ "color-yellow--lighter": "hsl(52, 64%, 89%)",
172
+ "color-yellow--lightest": "hsl(49, 67%, 95%)",
173
+ "color-yellow--dark": "hsl(51, 64%, 32%)",
174
+ "color-red": "hsl(6, 64%, 51%)",
175
+ "color-red--light": "hsl(6, 64%, 76%)",
176
+ "color-red--lighter": "hsl(5, 65%, 90%)",
177
+ "color-red--lightest": "hsl(7, 63%, 95%)",
178
+ "color-red--dark": "hsl(6, 100%, 24%)",
179
+ "color-grey": "hsl(0, 0%, 72%)",
180
+ "color-grey--light": "hsl(0, 0%, 87%)",
181
+ "color-grey--lighter": "hsl(0, 0%, 93%)",
182
+ "color-grey--lightest": "hsl(0, 0%, 97%)",
183
+ "color-grey--dark": "hsl(0, 0%, 47%)",
184
+ "color-overlay": "rgba(0, 0, 0, 0.32)",
185
+ "color-overlay--dimmed": "rgba(255, 255, 255, 0.6)",
186
+ "color-white": "rgba(255, 255, 255, 1)",
187
+ "color-black": "rgba(0, 0, 0, 1)",
188
+ "color-greyBlue": "hsl(197, 15%, 43%)",
189
+ "color-greyBlue--light": "hsl(198, 12%, 57%)",
190
+ "color-greyBlue--lighter": "hsl(196, 12%, 70%)",
191
+ "color-greyBlue--lightest": "hsl(195, 12%, 94%)",
192
+ "color-greyBlue--dark": "hsl(198, 35%, 21%)",
193
+ "color-lightBlue": "hsl(207, 79%, 57%)",
194
+ "color-lightBlue--light": "hsl(207, 89%, 71%)",
195
+ "color-lightBlue--lighter": "hsl(206, 91%, 87%)",
196
+ "color-lightBlue--lightest": "hsl(207, 87%, 94%)",
197
+ "color-lightBlue--dark": "hsl(207, 61%, 45%)",
198
+ "color-purple": "hsl(348, 40%, 27%)",
199
+ "color-purple--dark": "hsl(347, 41%, 18%)",
200
+ "color-pink": "hsl(348, 34%, 53%)",
201
+ "color-pink--light": "hsl(349, 34%, 64%)",
202
+ "color-pink--lighter": "hsl(349, 34%, 75%)",
203
+ "color-pink--lightest": "hsl(347, 33%, 95%)",
204
+ "color-pink--dark": "hsl(348, 40%, 27%)",
205
+ "color-orange": "hsl(31, 80%, 48%)",
206
+ "color-orange--light": "hsl(31, 83%, 64%)",
207
+ "color-orange--lighter": "hsl(31, 72%, 85%)",
208
+ "color-orange--lightest": "hsl(31, 74%, 93%)",
209
+ "color-orange--dark": "hsl(31, 90%, 37%)",
210
+ "color-brown": "hsl(31, 100%, 27%)",
211
+ "color-brown--light": "hsl(31, 90%, 37%)",
212
+ "color-brown--lighter": "hsl(40, 9%, 85%)",
213
+ "color-brown--lightest": "hsl(43, 18%, 92%)",
214
+ "color-brown--dark": "hsl(31, 100%, 18%)",
215
+ "color-navy": "hsl(207, 61%, 34%)",
216
+ "color-navy--light": "hsl(207, 61%, 45%)",
217
+ "color-navy--lighter": "hsl(200, 13%, 87%)",
218
+ "color-navy--lightest": "hsl(195, 12%, 94%)",
219
+ "color-navy--dark": "hsl(206, 61%, 23%)",
220
+ "color-base-white": "rgba(255, 255, 255, 1)",
221
+ "color-base-black": "rgba(0, 0, 0, 1)",
222
+ "color-interactive": "hsl(107, 58%, 33%)",
223
+ "color-interactive--hover": "hsl(107, 65%, 24%)",
224
+ "color-interactive--subtle": "hsl(198, 35%, 21%)",
225
+ "color-interactive--subtle--hover": "hsl(197, 90%, 12%)",
226
+ "color-interactive--background": "hsl(40, 9%, 85%)",
227
+ "color-interactive--background--hover": "hsl(43, 5%, 72%)",
228
+ "color-interactive--background--subtle--hover": "hsl(109, 28%, 92%)",
229
+ "color-destructive": "hsl(6, 64%, 51%)",
230
+ "color-destructive--hover": "hsl(6, 100%, 35%)",
231
+ "color-disabled": "hsl(0, 0%, 58%)",
232
+ "color-disabled--secondary": "hsl(0, 0%, 93%)",
233
+ "color-focus": "hsl(198, 12%, 57%)",
234
+ "color-dataViz--categorical--1": "hsl(253, 50%, 50%)",
235
+ "color-dataViz--categorical--2": "hsl(190, 80%, 42%)",
236
+ "color-dataViz--categorical--3": "hsl(31, 80%, 48%)",
237
+ "color-dataViz--categorical--1--subtle": "hsl(253, 52%, 69%)",
238
+ "color-dataViz--categorical--1--bold": "hsl(253, 50%, 34%)",
239
+ "color-critical": "hsl(6, 64%, 51%)",
240
+ "color-critical--surface": "hsl(7, 63%, 95%)",
241
+ "color-critical--onSurface": "hsl(6, 100%, 24%)",
242
+ "color-warning": "hsl(51, 64%, 49%)",
243
+ "color-warning--surface": "hsl(52, 64%, 89%)",
244
+ "color-warning--onSurface": "hsl(51, 64%, 24%)",
245
+ "color-success": "hsl(107, 58%, 33%)",
246
+ "color-success--surface": "hsl(109, 28%, 92%)",
247
+ "color-success--onSurface": "hsl(107, 64%, 16%)",
248
+ "color-informative": "hsl(207, 79%, 57%)",
249
+ "color-informative--surface": "hsl(207, 87%, 94%)",
250
+ "color-informative--onSurface": "hsl(207, 61%, 34%)",
251
+ "color-inactive": "hsl(197, 21%, 36%)",
252
+ "color-inactive--surface": "hsl(195, 12%, 94%)",
253
+ "color-inactive--onSurface": "hsl(197, 90%, 12%)",
254
+ "color-heading": "hsl(197, 90%, 12%)",
255
+ "color-text": "hsl(198, 35%, 21%)",
256
+ "color-text--secondary": "hsl(197, 21%, 36%)",
257
+ "color-text--reverse": "rgba(255, 255, 255, 1)",
258
+ "color-text--reverse--secondary": "hsl(200, 13%, 87%)",
259
+ "color-icon": "hsl(198, 35%, 21%)",
260
+ "color-icon--secondary": "hsl(198, 12%, 57%)",
261
+ "color-surface": "rgba(255, 255, 255, 1)",
262
+ "color-surface--hover": "hsl(43, 18%, 92%)",
263
+ "color-surface--reverse": "hsl(197, 90%, 12%)",
264
+ "color-surface--active": "hsl(40, 9%, 85%)",
265
+ "color-surface--background": "hsl(43, 18%, 92%)",
266
+ "color-surface--background--hover": "hsl(40, 9%, 85%)",
267
+ "color-surface--background--subtle": "hsl(35, 20%, 97%)",
268
+ "color-surface--background--subtle--hover": "hsl(40, 9%, 85%)",
269
+ "color-border": "hsl(200, 13%, 87%)",
270
+ "color-border--interactive": "hsl(200, 13%, 87%)",
271
+ "color-border--section": "hsl(197, 90%, 12%)",
272
+ "color-brand": "hsl(79, 85%, 34%)",
273
+ "color-request": "hsl(31, 90%, 37%)",
274
+ "color-request--surface": "hsl(31, 74%, 93%)",
275
+ "color-request--onSurface": "hsl(31, 100%, 18%)",
276
+ "color-quote": "hsl(348, 40%, 41%)",
277
+ "color-quote--surface": "hsl(347, 33%, 95%)",
278
+ "color-quote--onSurface": "hsl(348, 40%, 27%)",
279
+ "color-job": "hsl(107, 58%, 33%)",
280
+ "color-job--surface": "hsl(109, 28%, 92%)",
281
+ "color-job--onSurface": "hsl(107, 65%, 24%)",
282
+ "color-task": "hsl(206, 61%, 23%)",
283
+ "color-task--surface": "hsl(195, 12%, 94%)",
284
+ "color-task--onSurface": "hsl(198, 35%, 21%)",
285
+ "color-invoice": "hsl(207, 61%, 34%)",
286
+ "color-invoice--surface": "hsl(207, 87%, 94%)",
287
+ "color-invoice--onSurface": "hsl(206, 61%, 23%)",
288
+ "color-visit": "hsl(107, 58%, 33%)",
289
+ "color-visit--surface": "hsl(109, 28%, 92%)",
290
+ "color-visit--onSurface": "hsl(107, 65%, 24%)",
291
+ "color-event": "hsl(51, 64%, 49%)",
292
+ "color-event--surface": "hsl(52, 64%, 89%)",
293
+ "color-event--onSurface": "hsl(51, 64%, 24%)",
294
+ "color-payments": "hsl(207, 61%, 34%)",
295
+ "color-payments--surface": "hsl(207, 87%, 94%)",
296
+ "color-payments--onSurface": "hsl(206, 61%, 23%)",
297
+ "color-client": "hsl(48, 3%, 34%)",
298
+ "color-client--surface": "hsl(43, 18%, 92%)",
299
+ "color-client--onSurface": "hsl(40, 3%, 23%)",
300
+ "radius-base": 8,
301
+ "radius-small": 4,
302
+ "radius-large": 16,
303
+ "radius-larger": 24,
304
+ "radius-circle": 100,
305
+ "space-minuscule": 1,
306
+ "space-smallest": 2,
307
+ "space-smaller": 4,
308
+ "space-small": 8,
309
+ "space-slim": 12,
310
+ "space-base": 16,
311
+ "space-large": 24,
312
+ "space-larger": 32,
313
+ "space-largest": 48,
314
+ "space-extravagant": 64,
315
+ "shadow-low": "0px 1px 2px rgba(0, 0, 0, 0.25), 0px 0px 2px rgba(0, 0, 0, 0.1)",
316
+ "shadow-base": "0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 12px 0px rgba(0, 0, 0, 0.05)",
317
+ "shadow-high": "0px 16px 16px 0px rgba(0, 0, 0, 0.075), 0px 0px 8px 0px rgba(0, 0, 0, 0.05)",
318
+ "shadow-focus": "0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px hsl(198, 12%, 57%)",
319
+ "timing-quick": 100,
320
+ "timing-base": 200,
321
+ "timing-slow": 300,
322
+ "timing-slower": 400,
323
+ "timing-slowest": 500,
324
+ "timing-loading": 1000,
325
+ "timing-loading--extended": 2000,
326
+ "timing-indicator--arc": 1333,
327
+ "timing-indicator--cycle": 5332,
328
+ "timing-indicator--linear-rotate": 1568,
329
+ "opacity-overlay": 0.8,
330
+ "opacity-pressed": 0.6,
331
+ "elevation-default": 0,
332
+ "elevation-base": 1,
333
+ "elevation-menu": 6,
334
+ "elevation-datepicker": 6,
335
+ "elevation-modal": 1001,
336
+ "elevation-tooltip": 1002,
337
+ "elevation-toast": 1003,
338
+ "typography--letterSpacing-base": 0,
339
+ "typography--letterSpacing-loose": 0.4,
340
+ "typography--fontFamily-normal": "Inter, Helvetica, Arial, sans-serif",
341
+ "typography--fontFamily-display": "Poppins, Helvetica, Arial, sans-serif",
342
+ "typography--lineHeight-large": 1.34,
343
+ "typography--lineHeight-larger": 1.5,
344
+ "typography--lineHeight-largest": 1.75,
345
+ "typography--lineHeight-jumbo": 2,
346
+ "typography--lineHeight-extravagant": 4,
347
+ "typography--lineHeight-base": 1.25,
348
+ "typography--lineHeight-tight": 1.2,
349
+ "typography--lineHeight-tighter": 1.143,
350
+ "typography--lineHeight-tightest": 1.12,
351
+ "typography--lineHeight-minuscule": 1.08,
352
+ "typography--fontSize-extravagant": 48,
353
+ "typography--fontSize-jumbo": 36,
354
+ "typography--fontSize-largest": 24,
355
+ "typography--fontSize-larger": 20,
356
+ "typography--fontSize-large": 16,
357
+ "typography--fontSize-base": 14,
358
+ "typography--fontSize-small": 12,
359
+ "typography--fontSize-smaller": 10,
360
+ };
361
+
362
+ const extractTokensFor = (prefix) => {
363
+ const output = {};
364
+ Object.keys(tokens).forEach(key => {
365
+ if (key.startsWith(prefix)) {
366
+ output[key.replace(prefix, "")] = `var(--${key})`;
367
+ }
368
+ });
369
+ return output;
370
+ };
371
+ const rulnarPlugin = plugin(function ({ addUtilities, addVariant }) {
372
+ addVariant("poi", ["&:hover", "&:focus-within"]);
373
+ addVariant("pointer-coarse", "@media (pointer: coarse)");
374
+ addVariant("pointer-fine", "@media (pointer: fine)");
375
+ addUtilities([
376
+ {
377
+ ".icon-fill-reset": {
378
+ "svg, svg path": {
379
+ fill: "currentColor",
380
+ },
381
+ },
382
+ },
383
+ {
384
+ ".interactive-focus": {
385
+ "&:focus-visible": {
386
+ "box-shadow": "var(--shadow-focus)",
387
+ outline: "transparent",
388
+ transition: "all var(--timing-base) ease-out",
389
+ },
390
+ },
391
+ },
392
+ ]);
393
+ ["low", "base", "high", "focus"].forEach(shadowToken => {
394
+ addUtilities({
395
+ [`.shadow-${shadowToken}`]: {
396
+ boxShadow: `var(--shadow-${shadowToken})`,
397
+ },
398
+ });
399
+ });
400
+ }, {
401
+ theme: {
402
+ boxShadow: Object.assign(Object.assign({}, extractTokensFor("shadow-")), { none: "0 0 #0000" }),
403
+ colors: Object.assign(Object.assign({}, extractTokensFor("color-")), { current: "currentColor" }),
404
+ extend: {
405
+ borderRadius: Object.assign({}, extractTokensFor("radius-")),
406
+ borderWidth: Object.assign({}, extractTokensFor("border-")),
407
+ fontSize: Object.assign({}, extractTokensFor("typography--fontSize-")),
408
+ lineHeight: Object.assign({}, extractTokensFor("typography--lineHeight-")),
409
+ opacity: Object.assign({}, extractTokensFor("opacity-")),
410
+ spacing: Object.assign({}, extractTokensFor("space-")),
411
+ transitionDelay: Object.assign({}, extractTokensFor("timing-")),
412
+ transitionDuration: Object.assign({}, extractTokensFor("timing-")),
413
+ },
414
+ fontFamily: Object.assign({}, extractTokensFor("typography--fontFamily-")),
415
+ letterSpacing: Object.assign({}, extractTokensFor("typography--letterSpacing-")),
416
+ // Tailwind requires concrete screen values instead of CSS custom-media names.
417
+ // `sm` through `xl` match Rulnar custom media; `xxl` is Tailwind-only.
418
+ screens: {
419
+ sm: "490px",
420
+ md: "768px",
421
+ lg: "1080px",
422
+ xl: "1440px",
423
+ xxl: "1920px",
424
+ },
425
+ typography: Object.assign({}, extractTokensFor("typography-")),
426
+ zIndex: Object.assign({}, extractTokensFor("elevation-")),
427
+ },
428
+ });
429
+
430
+ export { rulnarPlugin };
package/package.json CHANGED
@@ -1,6 +1,107 @@
1
1
  {
2
2
  "name": "@zj-dynamics/design",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Platform-independent tokens and brand theme definitions.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./foundation": {
16
+ "types": "./foundation/web/index.d.mts",
17
+ "import": "./foundation/web/index.mjs",
18
+ "require": "./foundation/web/index.cjs"
19
+ },
20
+ "./native": {
21
+ "types": "./foundation/native/index.d.mts",
22
+ "import": "./foundation/native/index.mjs",
23
+ "require": "./foundation/native/index.cjs"
24
+ },
25
+ "./foundation.js": {
26
+ "types": "./foundation/web/index.d.mts",
27
+ "import": "./foundation/web/index.mjs",
28
+ "require": "./foundation/web/index.cjs"
29
+ },
30
+ "./foundation.css": "./foundation/web/foundation.local.css",
31
+ "./dist/foundation.css": "./foundation/web/foundation.local.css",
32
+ "./dark.mode.css": "./foundation/web/dark.mode.css",
33
+ "./dist/dark.mode.css": "./foundation/web/dark.mode.css",
34
+ "./colors": {
35
+ "types": "./foundation/web/assets/tokens.color.d.ts",
36
+ "import": "./foundation/web/colors.mjs",
37
+ "require": "./foundation/web/colors.cjs"
38
+ },
39
+ "./colors.js": {
40
+ "types": "./foundation/web/assets/tokens.color.d.ts",
41
+ "import": "./foundation/web/colors.mjs",
42
+ "require": "./foundation/web/colors.cjs"
43
+ },
44
+ "./foundation.reference.css": "./foundation/web/foundation.css",
45
+ "./native/foundation.css": "./foundation/native/foundation.local.css",
46
+ "./native/foundation.reference.css": "./foundation/native/foundation.css",
47
+ "./native/dark.mode.css": "./foundation/native/dark.mode.css",
48
+ "./native/colors": {
49
+ "types": "./foundation/native/assets/tokens.color.d.ts",
50
+ "import": "./foundation/native/colors.mjs",
51
+ "require": "./foundation/native/colors.cjs"
52
+ },
53
+ "./native/tailwind": {
54
+ "types": "./foundation/native/tailwind/rulnarPlugin.d.ts",
55
+ "import": "./foundation/native/tailwind.mjs",
56
+ "require": "./foundation/native/tailwind.cjs"
57
+ },
58
+ "./tailwind": {
59
+ "types": "./foundation/web/tailwind/rulnarPlugin.d.ts",
60
+ "import": "./foundation/web/tailwind.mjs",
61
+ "require": "./foundation/web/tailwind.cjs"
62
+ },
63
+ "./web": {
64
+ "types": "./foundation/web/index.d.mts",
65
+ "import": "./foundation/web/index.mjs",
66
+ "require": "./foundation/web/index.cjs"
67
+ },
68
+ "./web/colors": {
69
+ "types": "./foundation/web/assets/tokens.color.d.ts",
70
+ "import": "./foundation/web/colors.mjs",
71
+ "require": "./foundation/web/colors.cjs"
72
+ },
73
+ "./web/dark.mode.css": "./foundation/web/dark.mode.css",
74
+ "./web/foundation.css": "./foundation/web/foundation.local.css",
75
+ "./web/foundation.reference.css": "./foundation/web/foundation.css",
76
+ "./web/tailwind": {
77
+ "types": "./foundation/web/tailwind/rulnarPlugin.d.ts",
78
+ "import": "./foundation/web/tailwind.mjs",
79
+ "require": "./foundation/web/tailwind.cjs"
80
+ }
81
+ },
82
+ "files": [
83
+ "dist",
84
+ "README.md",
85
+ "foundation"
86
+ ],
87
+ "publishConfig": {
88
+ "access": "restricted",
89
+ "registry": "https://registry.npmjs.org/"
90
+ },
91
+ "scripts": {
92
+ "build": "tsc --build",
93
+ "typecheck": "tsc --noEmit --incremental false --composite false",
94
+ "prepack": "npm run build"
95
+ },
96
+ "sideEffects": [
97
+ "./foundation/**/*.css"
98
+ ],
99
+ "peerDependencies": {
100
+ "tailwindcss": ">=3.0.0"
101
+ },
102
+ "peerDependenciesMeta": {
103
+ "tailwindcss": {
104
+ "optional": true
105
+ }
106
+ }
107
+ }