@conduction/theme 1.0.2 → 1.0.4

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.
@@ -0,0 +1,306 @@
1
+ .leiden-theme,
2
+ .leiden-theme ::backdrop {
3
+ /* leiden Tokens */
4
+
5
+ /* Sizes */
6
+ --leiden-size-4xs: 1px;
7
+ --leiden-size-3xs: 2px;
8
+ --leiden-size-2xs: 4px;
9
+ --leiden-size-xs: 8px;
10
+ --leiden-size-sm: 14px;
11
+ --leiden-size-md: 18px;
12
+ --leiden-size-lg: 24px;
13
+ --leiden-size-xl: 32px;
14
+ --leiden-size-2xl: 48px;
15
+ --leiden-size-3xl: 72px;
16
+ --leiden-size-4xl: 96px;
17
+
18
+ /* Font sizes */
19
+ --leiden-font-size-4xs: 5px;
20
+ --leiden-font-size-3xs: 8px;
21
+ --leiden-font-size-2xs: 10px;
22
+ --leiden-font-size-xs: 12px;
23
+ --leiden-font-size-sm: 14px;
24
+ --leiden-font-size-md: 18px;
25
+ --leiden-font-size-lg: 20px;
26
+ --leiden-font-size-xl: 24px;
27
+ --leiden-font-size-2xl: 32px;
28
+ --leiden-font-size-3xl: 48px;
29
+ --leiden-font-size-4xl: 58px;
30
+
31
+ /* Font weights */
32
+ --leiden-font-weight-light: 100;
33
+ --leiden-font-weight-normal: 400;
34
+ --leiden-font-weight-bold: 700;
35
+
36
+ /* Letter Spacing */
37
+ --leiden-letter-spacing-normal: normal;
38
+
39
+ /* Colors */
40
+ --leiden-color-primary: #d62410;
41
+ --leiden-color-primary-hover: #b81f0e;
42
+
43
+ --leiden-color-error: #d62410;
44
+ --leiden-color-alert-error: #721c24;
45
+ --leiden-color-alert-error-background: #f8d7da;
46
+
47
+ --leiden-color-warning: #ffc107;
48
+ --leiden-color-alert-warning: #856404;
49
+ --leiden-color-alert-warning-background: #fff3cd;
50
+
51
+ --leiden-color-success: #28a745;
52
+ --leiden-color-alert-success: #155724;
53
+ --leiden-color-alert-success-background: #d4edda;
54
+
55
+ --leiden-color-info: var(--leiden-color-primary);
56
+ --leiden-color-alert-info: #004085;
57
+ --leiden-color-alert-info-background: #cce5ff;
58
+
59
+ --leiden-color-lightgrey: #e4e4e4;
60
+ --leiden-color-white: #ffffff;
61
+ --leiden-color-black: #0d1921;
62
+
63
+ /* Typography */
64
+ --leiden-typography-sans-serif-font-family: "Open Sans", Arial, sans-serif;
65
+ --leiden-typography-header-font-family: "Open Sans", Arial, sans-serif;
66
+ --leiden-typography-code-font-family: Monospace, "Lucida Console";
67
+
68
+ /*
69
+ *
70
+ * leiden COMPONENT OVERRIDES
71
+ *
72
+ */
73
+
74
+ /* Container */
75
+ --leiden-container-padding-inline: var(--leiden-size-xl);
76
+
77
+ /*
78
+ *
79
+ * UTRECHT COMPONENTS & DEFAULTS
80
+ *
81
+ */
82
+
83
+ /* Sizes */
84
+
85
+ --utrecht-space-block-3xs: var(--leiden-size-3xs);
86
+ --utrecht-space-block-2xs: var(--leiden-size-2xs);
87
+ --utrecht-space-block-xs: var(--leiden-size-xs);
88
+ --utrecht-space-block-sm: var(--leiden-size-sm);
89
+ --utrecht-space-block-md: var(--leiden-size-md);
90
+ --utrecht-space-block-lg: var(--leiden-size-lg);
91
+ --utrecht-space-block-xl: var(--leiden-size-xl);
92
+ --utrecht-space-block-2xl: var(--leiden-size-2xl);
93
+ --utrecht-space-block-3xl: var(--leiden-size-3xl);
94
+
95
+ --utrecht-space-inline-3xs: var(--leiden-size-3xs);
96
+ --utrecht-space-inline-2xs: var(--leiden-size-2xs);
97
+ --utrecht-space-inline-xs: var(--leiden-size-xs);
98
+ --utrecht-space-inline-sm: var(--leiden-size-sm);
99
+ --utrecht-space-inline-md: var(--leiden-size-md);
100
+ --utrecht-space-inline-lg: var(--leiden-size-lg);
101
+ --utrecht-space-inline-xl: var(--leiden-size-xl);
102
+ --utrecht-space-inline-2xl: var(--leiden-size-2xl);
103
+ --utrecht-space-inline-3xl: var(--leiden-size-3xl);
104
+
105
+ --utrecht-typography-scale-2xs: var(--leiden-font-size-2xs);
106
+ --utrecht-typography-scale-xs: var(--leiden-font-size-xs);
107
+ --utrecht-typography-scale-sm: var(--leiden-font-size-sm);
108
+ --utrecht-typography-scale-md: var(--leiden-font-size-md);
109
+ --utrecht-typography-scale-lg: var(--leiden-font-size-lg);
110
+ --utrecht-typography-scale-xl: var(--leiden-font-size-xl);
111
+ --utrecht-typography-scale-2xl: var(--leiden-font-size-2xl);
112
+ --utrecht-typography-scale-3xl: var(--leiden-font-size-3xl);
113
+ --utrecht-typography-scale-4xl: var(--leiden-font-size-4xl);
114
+
115
+ /* Document */
116
+ --utrecht-document-font-family: var(--leiden-typography-sans-serif-font-family);
117
+ --utrecht-document-font-size: var(--leiden-font-size-md);
118
+ --utrecht-document-color: var(--leiden-color-black);
119
+ --utrecht-space-around: 1;
120
+
121
+ /* Typography */
122
+ --utrecht-typography-sans-serif-font-family: var(--leiden-typography-sans-serif-font-family);
123
+
124
+ /* Header */
125
+ --utrecht-page-header-color: var(--leiden-color-white);
126
+ --utrecht-page-header-background-color: var(--leiden-color-black);
127
+ --utrecht-page-header-padding-block-start: var(--leiden-size-sm);
128
+ --utrecht-page-header-padding-block-end: var(--leiden-size-sm);
129
+
130
+ /* Page */
131
+ --utrecht-page-padding-inline-start: var(--leiden-size-lg);
132
+ --utrecht-page-padding-inline-end: var(--leiden-size-lg);
133
+
134
+ /* Headings */
135
+ --utrecht-heading-1-font-family: var(--leiden-typography-header-font-family);
136
+ --utrecht-heading-1-font-size: var(--leiden-font-size-3xl);
137
+ --utrecht-heading-1-font-weight: var(--leiden-font-weight-bold);
138
+ --utrecht-heading-1-letter-spacing: var(--leiden-letter-spacing-normal);
139
+ --utrecht-heading-1-margin-block-start: var(--leiden-size-2xl);
140
+ --utrecht-heading-1-margin-block-end: var(--leiden-size-md);
141
+
142
+ --utrecht-heading-2-font-family: var(--leiden-typography-header-font-family);
143
+ --utrecht-heading-2-font-weight: var(--leiden-font-weight-bold);
144
+ --utrecht-heading-2-font-size: var(--leiden-font-size-2xl);
145
+ --utrecht-heading-2-letter-spacing: var(--leiden-letter-spacing-normal);
146
+ --utrecht-heading-2-margin-block-start: var(--leiden-size-2xl);
147
+ --utrecht-heading-2-margin-block-end: var(--leiden-size-md);
148
+
149
+ --utrecht-heading-3-font-family: var(--leiden-typography-header-font-family);
150
+ --utrecht-heading-3-font-weight: var(--leiden-font-weight-normal);
151
+ --utrecht-heading-3-font-size: var(--leiden-font-size-xl);
152
+ --utrecht-heading-3-letter-spacing: var(--leiden-letter-spacing-normal);
153
+ --utrecht-heading-3-margin-block-start: var(--leiden-size-xl);
154
+ --utrecht-heading-3-margin-block-end: var(--leiden-size-md);
155
+
156
+ --utrecht-heading-4-font-family: var(--leiden-typography-header-font-family);
157
+ --utrecht-heading-4-font-size: var(--leiden-font-size-lg);
158
+ --utrecht-heading-4-font-weight: var(--leiden-font-weight-normal);
159
+ --utrecht-heading-4-letter-spacing: var(--leiden-letter-spacing-normal);
160
+ --utrecht-heading-4-margin-block-start: var(--leiden-size-lf);
161
+ --utrecht-heading-4-margin-block-end: var(--leiden-size-md);
162
+
163
+ --utrecht-heading-5-font-family: var(--leiden-typography-header-font-family);
164
+ --utrecht-heading-5-font-size: var(--leiden-font-size-md);
165
+ --utrecht-heading-5-font-weight: var(--leiden-font-weight-light);
166
+ --utrecht-heading-5-letter-spacing: var(--leiden-letter-spacing-normal);
167
+ --utrecht-heading-5-text-transform: unset;
168
+ --utrecht-heading-5-margin-block-start: var(--leiden-size-lg);
169
+ --utrecht-heading-5-margin-block-end: var(--conductino-size-md);
170
+
171
+ /* Paragraph */
172
+ --utrecht-paragraph-color: var(--utrecht-document-color) inherit;
173
+ --utrecht-paragraph-font-family: var(--leiden-typography-sans-serif-font-family);
174
+ --utrecht-paragraph-font-size: var(--leiden-font-size-md);
175
+ --utrecht-paragraph-font-weight: var(--leiden-font-weight-normal);
176
+ --utrecht-paragraph-line-height: 1.5;
177
+ --utrecht-paragraph-margin-block-start: 0;
178
+ --utrecht-paragraph-margin-block-end: 0;
179
+
180
+ /* Footer */
181
+ --utrecht-page-footer-color: var(--leiden-color-white);
182
+ --utrecht-page-footer-background-color: var(--leiden-color-black);
183
+ --utrecht-page-footer-background-image: unset;
184
+ --utrecht-page-footer-padding-block-start: var(--leiden-size-2xl);
185
+ --utrecht-page-footer-padding-block-end: var(--leiden-size-2xl);
186
+ --utrecht-page-footer-padding-inline-start: var(--leiden-size-sm);
187
+ --utrecht-page-footer-padding-inline-end: var(--leiden-size-sm);
188
+
189
+ /* List */
190
+ --utrecht-ordered-list-font-size: var(--utrecht-document-font-size) inherit;
191
+ --utrecht-ordered-list-padding-inline-start: var(--leiden-size-xl);
192
+ --utrecht-ordered-list-margin-block-start: var(--leiden-size-sm);
193
+ --utrecht-ordered-list-margin-block-end: var(--leiden-size-sm);
194
+
195
+ --utrecht-ordered-list-item-margin-block-start: var(--leiden-size-2xs);
196
+ --utrecht-ordered-list-item-margin-block-end: var(--leiden-size-2xs);
197
+ --utrecht-ordered-list-item-padding-inline-start: 1ch;
198
+
199
+ --utrecht-unordered-list-font-size: var(--utrecht-document-font-size);
200
+ --utrecht-unordered-list-margin-block-start: var(--leiden-size-md);
201
+ --utrecht-unordered-list-margin-block-end: 0;
202
+ --utrecht-unordered-list-padding-inline-start: 2ch;
203
+
204
+ --utrecht-unordered-list-item-margin-block-start: var(--leiden-size-xs);
205
+ --utrecht-unordered-list-item-margin-block-end: var(--leiden-size-xs);
206
+ --utrecht-unordered-list-item-padding-inline-start: 1ch;
207
+
208
+ /* Link */
209
+ --utrecht-link-color: var(--leiden-color-primary);
210
+ --utrecht-link-visited-color: var(--leiden-color-primary);
211
+ --utrecht-link-icon-size: var(--leiden-size-md);
212
+ --utrecht-link-text-decoration: none;
213
+ --utrecht-link-text-decoration-color: unset;
214
+ --utrecht-link-text-decoration-thickness: 0;
215
+ --utrecht-link-text-underline-offset: var(--leiden-size-3xs);
216
+
217
+ --utrecht-link-hover-color: var(--leiden-color-primary-hover);
218
+ --utrecht-link-hover-text-decoration: underline;
219
+ --utrecht-link-hover-text-decoration-thickness: var(--leiden-size-4xs);
220
+
221
+ /* Blockquote */
222
+ --utrecht-blockquote-content-color: var(--leiden-color-black);
223
+ --utrecht-blockquote-content-font-size: var(--leiden-size-md);
224
+ --utrecht-blockquote-margin-inline-start: var(--leiden-size-xl);
225
+ --utrecht-blockquote-margin-inline-end: var(--leiden-size-xl);
226
+
227
+ /* Code */
228
+ --utrecht-code-color: var(--leiden-color-black);
229
+ --utrecht-code-background-color: var(--leiden-color-lightgrey);
230
+ --utrecht-code-font-family: var(--leiden-typography-code-font-family);
231
+ --utrecht-code-font-size: inherit;
232
+
233
+ --utrecht-code-block-color: var(--leiden-color-black);
234
+ --utrecht-code-block-background-color: var(--leiden-color-lightgrey);
235
+ --utrecht-code-block-font-family: var(--leiden-typography-code-font-family);
236
+ --utrecht-code-block-font-size: var(--leiden-font-size-md);
237
+ --utrecht-code-block-font-weight: var(--leiden-font-weight-normal);
238
+ --utrecht-code-block-line-height: var(--leiden-size-lg);
239
+ --utrecht-code-block-margin-block-start: var(--leiden-size-md);
240
+ --utrecht-code-block-margin-block-end: var(--leiden-size-md);
241
+ --utrecht-code-block-margin-inline-start: 0;
242
+ --utrecht-code-block-margin-inline-end: 0;
243
+ --utrecht-code-block-padding-block-start: var(--leiden-size-md);
244
+ --utrecht-code-block-padding-block-end: var(--leiden-size-md);
245
+ --utrecht-code-block-padding-inline-start: var(--leiden-size-md);
246
+ --utrecht-code-block-padding-inline-end: var(--leiden-size-md);
247
+
248
+ /* Pseudo Elements */
249
+ --utrecht-unordered-list-marker-color: var(--leiden-color-primary);
250
+
251
+ /* Table */
252
+ --utrecht-table-border-color: var(--leiden-color-lightgrey);
253
+ --utrecht-table-border-width: var(--leiden-size-4xs);
254
+ --utrecht-table-font-family: var(--utrecht-document-font-family) inherit;
255
+ --utrecht-table-font-size: var(--utrecht-document-font-size) inherit;
256
+ --utrecht-table-margin-block-start: var(--leiden-size-md);
257
+ --utrecht-table-margin-block-end: 0;
258
+
259
+ --utrecht-table-header-color: var(--utrecht-document-color) inherit;
260
+ --utrecht-table-header-font-weight: var(--leiden-font-weight-bold);
261
+ --utrecht-table-header-text-transform: unset;
262
+
263
+ --utrecht-table-header-cell-font-size: var(--utrecht-document-font-size) inherit;
264
+ --utrecht-table-header-cell-font-weight: var(--leiden-font-weight-bold);
265
+ --utrecht-table-header-cell-text-transform: unset;
266
+
267
+ --utrecht-table-row-border-block-end-color: var(--leiden-color-lightgrey);
268
+ --utrecht-table-row-border-block-end-width: var(--leiden-size-4xs);
269
+
270
+ --utrecht-table-cell-padding-block-start: var(--leiden-size-md);
271
+ --utrecht-table-cell-padding-block-end: var(--leiden-size-md);
272
+ --utrecht-table-cell-padding-inline-start: var(--leiden-size-md);
273
+ --utrecht-table-cell-padding-inline-end: var(--leiden-size-md);
274
+
275
+ /* Alert */
276
+ --utrecht-alert-color: var(--leiden-color-alert-info);
277
+ --utrecht-alert-background-color: var(--leiden-color-alert-info-background);
278
+ /* --utrecht-alert-border-color: <color>; */
279
+ /* --utrecht-alert-border-width: <length>; */
280
+ --utrecht-alert-padding-block-start: var(--leiden-size-lg);
281
+ --utrecht-alert-padding-block-end: var(--leiden-size-lg);
282
+ --utrecht-alert-padding-inline-start: var(--leiden-size-lg);
283
+ --utrecht-alert-padding-inline-end: var(--leiden-size-lg);
284
+ /* --utrecht-alert-margin-block-start: <length>; */
285
+ /* --utrecht-alert-margin-block-end: <length>; */
286
+ /* --utrecht-alert-warning-background-color: <color>; */
287
+ /* --utrecht-alert-warning-color: <color>; */
288
+ /* --utrecht-alert-warning-border-color: <color>; */
289
+ /* --utrecht-alert-warning-border-width: <length>; */
290
+ --utrecht-alert-error-background-color: var(--leiden-color-alert-error-background);
291
+ --utrecht-alert-error-color: var(--leiden-color-alert-error);
292
+ /* --utrecht-alert-error-border-color: <color>; */
293
+ /* --utrecht-alert-error-border-width: <color>; */
294
+ /* --utrecht-alert-ok-background-color: <color>; */
295
+ /* --utrecht-alert-ok-color: <color>; */
296
+ /* --utrecht-alert-ok-border-color: <color>; */
297
+ /* --utrecht-alert-ok-border-width: <length>; */
298
+ /* --utrecht-alert-icon-color: <color>; */
299
+ /* --utrecht-alert-icon-error-color: <color>; */
300
+ /* --utrecht-alert-icon-warning-color: <color>; */
301
+ /* --utrecht-alert-icon-ok-color: <color>; */
302
+
303
+ /* Icon */
304
+ --utrecht-alert-icon-gap: var(--leiden-size-xs);
305
+ --utrecht-icon-gap: var(--leiden-size-xs);
306
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/theme",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Conduction's design tokens theme",
5
5
  "main": "index.js",
6
6
  "repository": {
package/theme.css CHANGED
@@ -76,10 +76,42 @@
76
76
 
77
77
  /*
78
78
  *
79
- * UTRECHT COMPONENTS
79
+ * UTRECHT COMPONENTS & DEFAULTS
80
80
  *
81
81
  */
82
82
 
83
+ /* Sizes */
84
+
85
+ --utrecht-space-block-3xs: var(--conduction-size-3xs);
86
+ --utrecht-space-block-2xs: var(--conduction-size-2xs);
87
+ --utrecht-space-block-xs: var(--conduction-size-xs);
88
+ --utrecht-space-block-sm: var(--conduction-size-sm);
89
+ --utrecht-space-block-md: var(--conduction-size-md);
90
+ --utrecht-space-block-lg: var(--conduction-size-lg);
91
+ --utrecht-space-block-xl: var(--conduction-size-xl);
92
+ --utrecht-space-block-2xl: var(--conduction-size-2xl);
93
+ --utrecht-space-block-3xl: var(--conduction-size-3xl);
94
+
95
+ --utrecht-space-inline-3xs: var(--conduction-size-3xs);
96
+ --utrecht-space-inline-2xs: var(--conduction-size-2xs);
97
+ --utrecht-space-inline-xs: var(--conduction-size-xs);
98
+ --utrecht-space-inline-sm: var(--conduction-size-sm);
99
+ --utrecht-space-inline-md: var(--conduction-size-md);
100
+ --utrecht-space-inline-lg: var(--conduction-size-lg);
101
+ --utrecht-space-inline-xl: var(--conduction-size-xl);
102
+ --utrecht-space-inline-2xl: var(--conduction-size-2xl);
103
+ --utrecht-space-inline-3xl: var(--conduction-size-3xl);
104
+
105
+ --utrecht-typography-scale-2xs: var(--conduction-font-size-2xs);
106
+ --utrecht-typography-scale-xs: var(--conduction-font-size-xs);
107
+ --utrecht-typography-scale-sm: var(--conduction-font-size-sm);
108
+ --utrecht-typography-scale-md: var(--conduction-font-size-md);
109
+ --utrecht-typography-scale-lg: var(--conduction-font-size-lg);
110
+ --utrecht-typography-scale-xl: var(--conduction-font-size-xl);
111
+ --utrecht-typography-scale-2xl: var(--conduction-font-size-2xl);
112
+ --utrecht-typography-scale-3xl: var(--conduction-font-size-3xl);
113
+ --utrecht-typography-scale-4xl: var(--conduction-font-size-4xl);
114
+
83
115
  /* Document */
84
116
  --utrecht-document-font-family: var(--conduction-typography-sans-serif-font-family);
85
117
  --utrecht-document-font-size: var(--conduction-font-size-md);