@digigov/css 0.29.14 → 0.30.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.
@@ -12,7 +12,7 @@
12
12
  }
13
13
  .govgr-tabs__list-item {
14
14
  @apply relative px-4 py-2 m-0 shadow-none cursor-pointer;
15
- @apply md:float-left md:border md:border-base100 md:bg-base100 md:rounded-t-sm md:mr-2 ;
15
+ @apply md:float-left md:border md:border-gray100 md:bg-gray100 md:rounded-t-sm md:mr-2 ;
16
16
  @apply print:hidden;
17
17
  &.govgr-tabs__list-item-selected {
18
18
  @apply no-underline md:border-gray200 md:border bg-white md:border-b-0 md:px-5 md:pb-4 md:-mt-1 md:pt-4;
@@ -45,7 +45,7 @@
45
45
  }
46
46
  }
47
47
  .govgr-tabs__panel {
48
- @apply bg-white md:hidden block md:px-4 py-4 pt-8 md:border md:border-base150 mb-0
48
+ @apply bg-white md:hidden block md:px-4 py-4 pt-8 md:border md:border-gray200 mb-0
49
49
  print:block print:border-0 print:py-3;
50
50
  &.govgr-tabs__panel-visible {
51
51
  @apply block;
@@ -20,10 +20,10 @@
20
20
  }
21
21
  .govgr-summary-list__row:first-child {
22
22
  &>dt {
23
- @apply border-t-2 border-base150;
23
+ @apply border-t-2 border-gray200;
24
24
  }
25
25
  &>dd {
26
- @apply sm:border-t-2 sm:border-base150;
26
+ @apply sm:border-t-2 sm:border-gray200;
27
27
  }
28
28
  }
29
29
  .govgr-summary-list__key {
@@ -40,5 +40,5 @@
40
40
  @apply bg-secondary50 text-primary print:border-2 print:bg-white print:border-secondary600 print:text-secondary600 print:mr-4;
41
41
  }
42
42
  .govgr-tag__gray {
43
- @apply bg-base100 print:border-2 print:bg-white print:border-base300 print:text-base300 print:mr-4;
43
+ @apply bg-gray100 print:border-2 print:bg-white print:border-gray600 print:text-gray600 print:mr-4;
44
44
  }
@@ -11,13 +11,13 @@
11
11
  @apply md:text-lg text-base font-bold mx-0 md:mb-5 mb-3;
12
12
  }
13
13
  .govgr-caption-xl {
14
- @apply block md:text-2xl text-xl mx-0 lg:mb-2 mb-1 text-base300 font-normal;
14
+ @apply block md:text-2xl text-xl mx-0 lg:mb-2 mb-1 text-gray600 font-normal;
15
15
  }
16
16
  .govgr-caption-l {
17
- @apply block md:text-xl text-lg mx-0 mb-0 text-base300 font-normal;
17
+ @apply block md:text-xl text-lg mx-0 mb-0 text-gray600 font-normal;
18
18
  }
19
19
  .govgr-caption-m {
20
- @apply block md:text-lg text-base mx-0 mb-0 text-base300 font-normal;
20
+ @apply block md:text-lg text-base mx-0 mb-0 text-gray600 font-normal;
21
21
  }
22
22
  .govgr-\!-font-size-14 {
23
23
  @apply text-xs md:text-sm !important;
@@ -83,13 +83,13 @@
83
83
  @apply lg:text-base text-sm;
84
84
  }
85
85
  .govgr-hint-l {
86
- @apply mb-4 lg:text-2xl text-lg text-base300;
86
+ @apply mb-4 lg:text-2xl text-lg text-gray600;
87
87
  }
88
88
  .govgr-hint {
89
- @apply mb-4 md:text-lg text-base text-base300;
89
+ @apply mb-4 md:text-lg text-base text-gray600;
90
90
  }
91
91
  .govgr-hint-s {
92
- @apply mb-4 lg:text-base text-sm text-base300;
92
+ @apply mb-4 lg:text-base text-sm text-gray600;
93
93
  }
94
94
  .govgr-background-dark, .govgr-masthead {
95
95
  .govgr-hint {
@@ -1,6 +1,6 @@
1
1
  .govgr-m-0 {
2
2
  @apply m-0 !important;
3
- }
3
+ }
4
4
  .govgr-m-1 {
5
5
  @apply m-1 !important;
6
6
  }
@@ -28,9 +28,18 @@
28
28
  .govgr-m-9 {
29
29
  @apply m-8 md:m-12 !important;
30
30
  }
31
+ .govgr-m-10 {
32
+ @apply m-9 md:m-14 !important;
33
+ }
34
+ .govgr-m-11 {
35
+ @apply m-10 md:m-16 !important;
36
+ }
37
+ .govgr-m-12 {
38
+ @apply m-11 md:m-20 !important;
39
+ }
31
40
  .govgr-mt-0 {
32
41
  @apply mt-0 !important;
33
- }
42
+ }
34
43
  .govgr-mt-1 {
35
44
  @apply mt-1 !important;
36
45
  }
@@ -58,9 +67,18 @@
58
67
  .govgr-mt-9 {
59
68
  @apply mt-8 md:mt-12 !important;
60
69
  }
70
+ .govgr-mt-10 {
71
+ @apply mt-9 md:mt-14 !important;
72
+ }
73
+ .govgr-mt-11 {
74
+ @apply mt-10 md:mt-16 !important;
75
+ }
76
+ .govgr-mt-12 {
77
+ @apply mt-11 md:mt-20 !important;
78
+ }
61
79
  .govgr-mb-0 {
62
80
  @apply mb-0 !important;
63
- }
81
+ }
64
82
  .govgr-mb-1 {
65
83
  @apply mb-1 !important;
66
84
  }
@@ -88,9 +106,18 @@
88
106
  .govgr-mb-9 {
89
107
  @apply mb-8 md:mb-12 !important;
90
108
  }
109
+ .govgr-mb-10 {
110
+ @apply mb-9 md:mb-14 !important;
111
+ }
112
+ .govgr-mb-11 {
113
+ @apply mb-10 md:mb-16 !important;
114
+ }
115
+ .govgr-mb-12 {
116
+ @apply mb-11 md:mb-20 !important;
117
+ }
91
118
  .govgr-ml-0 {
92
119
  @apply ml-0 !important;
93
- }
120
+ }
94
121
  .govgr-ml-1 {
95
122
  @apply ml-1 !important;
96
123
  }
@@ -118,9 +145,18 @@
118
145
  .govgr-ml-9 {
119
146
  @apply ml-8 md:ml-12 !important;
120
147
  }
148
+ .govgr-ml-10 {
149
+ @apply ml-9 md:ml-14 !important;
150
+ }
151
+ .govgr-ml-11 {
152
+ @apply ml-10 md:ml-16 !important;
153
+ }
154
+ .govgr-ml-12 {
155
+ @apply ml-11 md:ml-20 !important;
156
+ }
121
157
  .govgr-mr-0 {
122
158
  @apply mr-0 !important;
123
- }
159
+ }
124
160
  .govgr-mr-1 {
125
161
  @apply mr-1 !important;
126
162
  }
@@ -148,9 +184,18 @@
148
184
  .govgr-mr-9 {
149
185
  @apply mr-8 md:mr-12 !important;
150
186
  }
187
+ .govgr-mr-10 {
188
+ @apply mr-9 md:mr-14 !important;
189
+ }
190
+ .govgr-mr-11 {
191
+ @apply mr-10 md:mr-16 !important;
192
+ }
193
+ .govgr-mr-12 {
194
+ @apply mr-11 md:mr-20 !important;
195
+ }
151
196
  .govgr-p-0 {
152
197
  @apply p-0 !important;
153
- }
198
+ }
154
199
  .govgr-p-1 {
155
200
  @apply p-1 !important;
156
201
  }
@@ -178,9 +223,18 @@
178
223
  .govgr-p-9 {
179
224
  @apply p-8 md:p-12 !important;
180
225
  }
226
+ .govgr-p-10 {
227
+ @apply p-9 md:p-14 !important;
228
+ }
229
+ .govgr-p-11 {
230
+ @apply p-10 md:p-16 !important;
231
+ }
232
+ .govgr-p-12 {
233
+ @apply p-11 md:p-20 !important;
234
+ }
181
235
  .govgr-pt-0 {
182
236
  @apply pt-0 !important;
183
- }
237
+ }
184
238
  .govgr-pt-1 {
185
239
  @apply pt-1 !important;
186
240
  }
@@ -208,9 +262,18 @@
208
262
  .govgr-pt-9 {
209
263
  @apply pt-8 md:pt-12 !important;
210
264
  }
265
+ .govgr-pt-10 {
266
+ @apply pt-9 md:pt-14 !important;
267
+ }
268
+ .govgr-pt-11 {
269
+ @apply pt-10 md:pt-16 !important;
270
+ }
271
+ .govgr-pt-12 {
272
+ @apply pt-11 md:pt-20 !important;
273
+ }
211
274
  .govgr-pb-0 {
212
275
  @apply pb-0 !important;
213
- }
276
+ }
214
277
  .govgr-pb-1 {
215
278
  @apply pb-1 !important;
216
279
  }
@@ -238,9 +301,18 @@
238
301
  .govgr-pb-9 {
239
302
  @apply pb-8 md:pb-12 !important;
240
303
  }
304
+ .govgr-pb-10 {
305
+ @apply pb-9 md:pb-14 !important;
306
+ }
307
+ .govgr-pb-11 {
308
+ @apply pb-10 md:pb-16 !important;
309
+ }
310
+ .govgr-pb-12 {
311
+ @apply pb-11 md:pb-20 !important;
312
+ }
241
313
  .govgr-pl-0 {
242
314
  @apply pl-0 !important;
243
- }
315
+ }
244
316
  .govgr-pl-1 {
245
317
  @apply pl-1 !important;
246
318
  }
@@ -268,9 +340,18 @@
268
340
  .govgr-pl-9 {
269
341
  @apply pl-8 md:pl-12 !important;
270
342
  }
343
+ .govgr-pl-10 {
344
+ @apply pl-9 md:pl-14 !important;
345
+ }
346
+ .govgr-pl-11 {
347
+ @apply pl-10 md:pl-16 !important;
348
+ }
349
+ .govgr-pl-12 {
350
+ @apply pl-11 md:pl-20 !important;
351
+ }
271
352
  .govgr-pr-0 {
272
353
  @apply pr-0 !important;
273
- }
354
+ }
274
355
  .govgr-pr-1 {
275
356
  @apply pr-1 !important;
276
357
  }
@@ -298,6 +379,15 @@
298
379
  .govgr-pr-9 {
299
380
  @apply pr-8 md:pr-12 !important;
300
381
  }
382
+ .govgr-pr-10 {
383
+ @apply pr-9 md:pr-14 !important;
384
+ }
385
+ .govgr-pr-11 {
386
+ @apply pr-10 md:pr-16 !important;
387
+ }
388
+ .govgr-pr-12 {
389
+ @apply pr-11 md:pr-20 !important;
390
+ }
301
391
  .govgr-grid {
302
392
  @apply grid grid-cols-12;
303
393
  }
@@ -399,4 +489,10 @@
399
489
  }
400
490
  .govgr-print-hidden {
401
491
  @apply print:hidden !important;
492
+ }
493
+ .govgr-print-visible-block {
494
+ @apply print:block !important;
495
+ }
496
+ .govgr-print-visible-inline {
497
+ @apply print:inline !important;
402
498
  }
@@ -30,6 +30,15 @@
30
30
  .govgr-m-9 {
31
31
  @apply m-8 md:m-12 !important;
32
32
  }
33
+ .govgr-m-10 {
34
+ @apply m-9 md:m-14 !important;
35
+ }
36
+ .govgr-m-11 {
37
+ @apply m-10 md:m-16 !important;
38
+ }
39
+ .govgr-m-12 {
40
+ @apply m-11 md:m-20 !important;
41
+ }
33
42
  .govgr-mt-0 {
34
43
  @apply mt-0 !important;
35
44
  }
@@ -60,6 +69,15 @@
60
69
  .govgr-mt-9 {
61
70
  @apply mt-8 md:mt-12 !important;
62
71
  }
72
+ .govgr-mt-10 {
73
+ @apply mt-9 md:mt-14 !important;
74
+ }
75
+ .govgr-mt-11 {
76
+ @apply mt-10 md:mt-16 !important;
77
+ }
78
+ .govgr-mt-12 {
79
+ @apply mt-11 md:mt-20 !important;
80
+ }
63
81
  .govgr-mb-0 {
64
82
  @apply mb-0 !important;
65
83
  }
@@ -90,6 +108,15 @@
90
108
  .govgr-mb-9 {
91
109
  @apply mb-8 md:mb-12 !important;
92
110
  }
111
+ .govgr-mb-10 {
112
+ @apply mb-9 md:mb-14 !important;
113
+ }
114
+ .govgr-mb-11 {
115
+ @apply mb-10 md:mb-16 !important;
116
+ }
117
+ .govgr-mb-12 {
118
+ @apply mb-11 md:mb-20 !important;
119
+ }
93
120
  .govgr-ml-0 {
94
121
  @apply ml-0 !important;
95
122
  }
@@ -120,6 +147,15 @@
120
147
  .govgr-ml-9 {
121
148
  @apply ml-8 md:ml-12 !important;
122
149
  }
150
+ .govgr-ml-10 {
151
+ @apply ml-9 md:ml-14 !important;
152
+ }
153
+ .govgr-ml-11 {
154
+ @apply ml-10 md:ml-16 !important;
155
+ }
156
+ .govgr-ml-12 {
157
+ @apply ml-11 md:ml-20 !important;
158
+ }
123
159
  .govgr-mr-0 {
124
160
  @apply mr-0 !important;
125
161
  }
@@ -150,6 +186,15 @@
150
186
  .govgr-mr-9 {
151
187
  @apply mr-8 md:mr-12 !important;
152
188
  }
189
+ .govgr-mr-10 {
190
+ @apply mr-9 md:mr-14 !important;
191
+ }
192
+ .govgr-mr-11 {
193
+ @apply mr-10 md:mr-16 !important;
194
+ }
195
+ .govgr-mr-12 {
196
+ @apply mr-11 md:mr-20 !important;
197
+ }
153
198
  .govgr-p-0 {
154
199
  @apply p-0 !important;
155
200
  }
@@ -180,6 +225,15 @@
180
225
  .govgr-p-9 {
181
226
  @apply p-8 md:p-12 !important;
182
227
  }
228
+ .govgr-p-10 {
229
+ @apply p-9 md:p-14 !important;
230
+ }
231
+ .govgr-p-11 {
232
+ @apply p-10 md:p-16 !important;
233
+ }
234
+ .govgr-p-12 {
235
+ @apply p-11 md:p-20 !important;
236
+ }
183
237
  .govgr-pt-0 {
184
238
  @apply pt-0 !important;
185
239
  }
@@ -210,6 +264,15 @@
210
264
  .govgr-pt-9 {
211
265
  @apply pt-8 md:pt-12 !important;
212
266
  }
267
+ .govgr-pt-10 {
268
+ @apply pt-9 md:pt-14 !important;
269
+ }
270
+ .govgr-pt-11 {
271
+ @apply pt-10 md:pt-16 !important;
272
+ }
273
+ .govgr-pt-12 {
274
+ @apply pt-11 md:pt-20 !important;
275
+ }
213
276
  .govgr-pb-0 {
214
277
  @apply pb-0 !important;
215
278
  }
@@ -240,6 +303,15 @@
240
303
  .govgr-pb-9 {
241
304
  @apply pb-8 md:pb-12 !important;
242
305
  }
306
+ .govgr-pb-10 {
307
+ @apply pb-9 md:pb-14 !important;
308
+ }
309
+ .govgr-pb-11 {
310
+ @apply pb-10 md:pb-16 !important;
311
+ }
312
+ .govgr-pb-12 {
313
+ @apply pb-11 md:pb-20 !important;
314
+ }
243
315
  .govgr-pl-0 {
244
316
  @apply pl-0 !important;
245
317
  }
@@ -270,6 +342,15 @@
270
342
  .govgr-pl-9 {
271
343
  @apply pl-8 md:pl-12 !important;
272
344
  }
345
+ .govgr-pl-10 {
346
+ @apply pl-9 md:pl-14 !important;
347
+ }
348
+ .govgr-pl-11 {
349
+ @apply pl-10 md:pl-16 !important;
350
+ }
351
+ .govgr-pl-12 {
352
+ @apply pl-11 md:pl-20 !important;
353
+ }
273
354
  .govgr-pr-0 {
274
355
  @apply pr-0 !important;
275
356
  }
@@ -300,6 +381,15 @@
300
381
  .govgr-pr-9 {
301
382
  @apply pr-8 md:pr-12 !important;
302
383
  }
384
+ .govgr-pr-10 {
385
+ @apply pr-9 md:pr-14 !important;
386
+ }
387
+ .govgr-pr-11 {
388
+ @apply pr-10 md:pr-16 !important;
389
+ }
390
+ .govgr-pr-12 {
391
+ @apply pr-11 md:pr-20 !important;
392
+ }
303
393
  .govgr-grid {
304
394
  @apply grid grid-cols-12;
305
395
  }
@@ -402,4 +492,10 @@
402
492
  .govgr-print-hidden {
403
493
  @apply print:hidden !important;
404
494
  }
495
+ .govgr-print-visible-block {
496
+ @apply print:block !important;
497
+ }
498
+ .govgr-print-visible-inline {
499
+ @apply print:inline !important;
500
+ }
405
501
  };
@@ -118,6 +118,8 @@ module.exports = {
118
118
  },
119
119
  width: {
120
120
  fit: "fit-content",
121
+ '2xl':'42rem' ,
122
+ '4xl':'56rem' ,
121
123
  },
122
124
  maxWidth: {
123
125
  fit: "fit-content",
package/themes.plugin.js CHANGED
@@ -36,10 +36,7 @@ function addThemes({ addBase, addComponents, theme,config }) {
36
36
  { }
37
37
  );
38
38
  }
39
- const base = {
40
- }
41
-
42
-
39
+ const base = {}
43
40
  const themes = config("themes");
44
41
  const defaultTheme = config('defaultTheme');
45
42
  for (const customTheme in themes) {
@@ -47,18 +44,18 @@ function addThemes({ addBase, addComponents, theme,config }) {
47
44
  const customThemeObject = require(themes[customTheme]);
48
45
  if (customThemeObject.overrides) {
49
46
  if(config('mode') === 'jit'){
50
- console.log('Loading theme css from source!')
47
+ console.log('Loading theme css from source...')
51
48
  const css = fs.readFileSync(path.resolve(path.dirname(themes[customTheme]),'overrides/index.css')).toString();
52
49
  const ctx = { };
53
50
  const {plugins, options} = postcssrc.sync(ctx)
54
51
  const result = postcss(plugins)
55
52
  .process(css, options).root;
56
53
  const cssJs = postcssJs.objectify(result);
57
- addComponents({[`.${customTheme}`]: cssJs});
54
+ base[`.${customTheme}`]= cssJs;
58
55
  }else{
59
- customThemeObject.overrides.forEach(async(override) => {
56
+ customThemeObject.overrides.forEach((override) => {
60
57
  const cssJs = require(path.resolve(path.dirname(themes[customTheme]),override));
61
- addComponents({[`.${customTheme}`]: cssJs});
58
+ base[`.${customTheme}`] = cssJs;
62
59
  });
63
60
  }
64
61
  }