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