@obosbbl/grunnmuren-tailwind 2.0.0-canary.6 → 2.0.0-canary.8
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.
- package/package.json +2 -2
- package/tailwind-base.cjs +88 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obosbbl/grunnmuren-tailwind",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.8",
|
|
4
4
|
"description": "Grunnmuren Tailwind preset",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/code-obos/grunnmuren"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tailwindcss-animate": "^1.0.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"tailwindcss": "3.4.
|
|
23
|
+
"tailwindcss": "3.4.13"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"tailwindcss": "^3.4.0"
|
package/tailwind-base.cjs
CHANGED
|
@@ -154,8 +154,6 @@ module.exports = (options = {}) => {
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const containerSize = '92rem';
|
|
158
|
-
|
|
159
157
|
return {
|
|
160
158
|
plugins: [
|
|
161
159
|
...v1CompatibilityPlugins,
|
|
@@ -176,6 +174,44 @@ module.exports = (options = {}) => {
|
|
|
176
174
|
'text-decoration': 'underline',
|
|
177
175
|
},
|
|
178
176
|
'::selection': { '@apply bg-mint text-black': {} },
|
|
177
|
+
':root': {
|
|
178
|
+
'--gm-container-width': '92rem',
|
|
179
|
+
'--gm-container-gutter-width': '1rem',
|
|
180
|
+
|
|
181
|
+
'--gm-color-black': '#333',
|
|
182
|
+
'--gm-color-white': '#fff',
|
|
183
|
+
|
|
184
|
+
'--gm-color-gray': '#818181',
|
|
185
|
+
'--gm-color-gray-dark': '#595959',
|
|
186
|
+
'--gm-color-gray-light': '#e6e6e6',
|
|
187
|
+
'--gm-color-gray-lightest': '#f1f1f1',
|
|
188
|
+
|
|
189
|
+
'--gm-color-sky': '#bedfec',
|
|
190
|
+
'--gm-color-sky-light': '#deeff5',
|
|
191
|
+
'--gm-color-sky-lightest': '#ebf5f9',
|
|
192
|
+
|
|
193
|
+
'--gm-color-mint': '#cdece2',
|
|
194
|
+
'--gm-color-mint-light': '#e6f5f0',
|
|
195
|
+
'--gm-color-mint-lightest': '#f0f9f6',
|
|
196
|
+
|
|
197
|
+
'--gm-color-blue': '#0047ba',
|
|
198
|
+
'--gm-color-blue-light': '#bedfec',
|
|
199
|
+
'--gm-color-blue-lightest': '#deeff5',
|
|
200
|
+
'--gm-color-blue-dark': '#002169',
|
|
201
|
+
|
|
202
|
+
'--gm-color-green': '#008761',
|
|
203
|
+
'--gm-color-green-dark': '#00524c',
|
|
204
|
+
'--gm-color-green-light': '#cdece2',
|
|
205
|
+
'--gm-color-green-lightest': '#e6f5f0',
|
|
206
|
+
|
|
207
|
+
'--gm-color-red': '#c0385d',
|
|
208
|
+
'--gm-color-red-light': '#faedef',
|
|
209
|
+
|
|
210
|
+
'--gm-color-orange': '#e8a74a',
|
|
211
|
+
'--gm-color-orange-light': '#f8e5c9',
|
|
212
|
+
|
|
213
|
+
'--gm-color-yellow': '#fff5d2',
|
|
214
|
+
},
|
|
179
215
|
});
|
|
180
216
|
|
|
181
217
|
addComponents({
|
|
@@ -190,16 +226,16 @@ module.exports = (options = {}) => {
|
|
|
190
226
|
},
|
|
191
227
|
'.container': {
|
|
192
228
|
width: '100%',
|
|
193
|
-
paddingLeft: '
|
|
194
|
-
paddingRight: '
|
|
229
|
+
paddingLeft: 'var(--gm-container-gutter-width)',
|
|
230
|
+
paddingRight: 'var(--gm-container-gutter-width)',
|
|
195
231
|
marginLeft: 'auto',
|
|
196
232
|
marginRight: 'auto',
|
|
197
|
-
maxWidth:
|
|
233
|
+
maxWidth: 'var(--gm-container-width)',
|
|
198
234
|
},
|
|
199
235
|
'.container-prose': {
|
|
200
236
|
width: '100%',
|
|
201
|
-
paddingLeft: '
|
|
202
|
-
paddingRight: '
|
|
237
|
+
paddingLeft: 'var(--gm-container-gutter-width)',
|
|
238
|
+
paddingRight: 'var(--gm-container-gutter-width)',
|
|
203
239
|
marginLeft: 'auto',
|
|
204
240
|
marginRight: 'auto',
|
|
205
241
|
maxWidth: '45.5rem',
|
|
@@ -297,6 +333,26 @@ module.exports = (options = {}) => {
|
|
|
297
333
|
'.description': {
|
|
298
334
|
[description]: {},
|
|
299
335
|
},
|
|
336
|
+
/** Standard black focus outline */
|
|
337
|
+
'.outline-focus': {
|
|
338
|
+
'@apply outline outline-2 outline-black': {},
|
|
339
|
+
},
|
|
340
|
+
/** Standard black focus outline with offset */
|
|
341
|
+
'.outline-focus-offset': {
|
|
342
|
+
'@apply outline-focus outline-offset-2': {},
|
|
343
|
+
},
|
|
344
|
+
/** Standard black focus outline with negative offset (inset) */
|
|
345
|
+
'.outline-focus-inset': {
|
|
346
|
+
'@apply outline-focus -outline-offset-4': {},
|
|
347
|
+
},
|
|
348
|
+
/** Standard black focus ring */
|
|
349
|
+
'.ring-focus': {
|
|
350
|
+
'@apply ring-2 ring-black': {},
|
|
351
|
+
},
|
|
352
|
+
/** Standard black focus ring with offset */
|
|
353
|
+
'.ring-focus-offset': {
|
|
354
|
+
'@apply ring-focus ring-offset-2': {},
|
|
355
|
+
},
|
|
300
356
|
});
|
|
301
357
|
}),
|
|
302
358
|
plugin(function ({ addBase }) {
|
|
@@ -329,52 +385,52 @@ module.exports = (options = {}) => {
|
|
|
329
385
|
inherit: 'inherit',
|
|
330
386
|
current: 'currentColor',
|
|
331
387
|
transparent: 'transparent',
|
|
332
|
-
black: '
|
|
333
|
-
white: '
|
|
388
|
+
black: 'var(--gm-color-black)',
|
|
389
|
+
white: 'var(--gm-color-white)',
|
|
334
390
|
gray: {
|
|
335
|
-
DEFAULT: '
|
|
336
|
-
dark: '
|
|
337
|
-
light: '
|
|
338
|
-
lightest: '
|
|
391
|
+
DEFAULT: 'var(--gm-color-gray)',
|
|
392
|
+
dark: 'var(--gm-color-gray-dark)',
|
|
393
|
+
light: 'var(--gm-color-gray-light)',
|
|
394
|
+
lightest: 'var(--gm-color-gray-lightest)',
|
|
339
395
|
},
|
|
340
396
|
sky: {
|
|
341
|
-
DEFAULT: '
|
|
342
|
-
light: '
|
|
343
|
-
lightest: '
|
|
397
|
+
DEFAULT: 'var(--gm-color-sky)',
|
|
398
|
+
light: 'var(--gm-color-sky-light)',
|
|
399
|
+
lightest: 'var(--gm-color-sky-lightest)',
|
|
344
400
|
},
|
|
345
401
|
mint: {
|
|
346
|
-
DEFAULT: '
|
|
347
|
-
light: '
|
|
348
|
-
lightest: '
|
|
402
|
+
DEFAULT: 'var(--gm-color-mint)',
|
|
403
|
+
light: 'var(--gm-color-mint-light)',
|
|
404
|
+
lightest: 'var(--gm-color-mint-lightest)',
|
|
349
405
|
},
|
|
350
406
|
blue: {
|
|
351
407
|
// OBOS Blue/Primary brand
|
|
352
|
-
DEFAULT: '
|
|
353
|
-
light: '#BEDFEC',
|
|
354
|
-
lightest: '#DEEFF5',
|
|
408
|
+
DEFAULT: 'var(--gm-color-blue)',
|
|
355
409
|
// OBOS Ocean
|
|
356
|
-
dark: '
|
|
410
|
+
dark: 'var(--gm-color-blue-dark)',
|
|
411
|
+
light: 'var(--gm-color-blue-light)',
|
|
412
|
+
lightest: 'var(--gm-color-blue-lightest)',
|
|
357
413
|
},
|
|
358
414
|
green: {
|
|
359
415
|
// OBOS Green/Primary brand
|
|
360
|
-
DEFAULT: '
|
|
361
|
-
lightest: '#E6F5F0',
|
|
362
|
-
light: '#CDECE2',
|
|
416
|
+
DEFAULT: 'var(--gm-color-green)',
|
|
363
417
|
// OBOS Forest
|
|
364
|
-
dark: '
|
|
418
|
+
dark: 'var(--gm-color-green-dark)',
|
|
419
|
+
light: 'var(--gm-color-green-light)',
|
|
420
|
+
lightest: 'var(--gm-color-green-lightest)',
|
|
365
421
|
},
|
|
366
422
|
red: {
|
|
367
|
-
DEFAULT: '
|
|
423
|
+
DEFAULT: 'var(--gm-color-red)',
|
|
368
424
|
// error red
|
|
369
|
-
light: '
|
|
425
|
+
light: 'var(--gm-color-red-light)',
|
|
370
426
|
},
|
|
371
427
|
orange: {
|
|
372
|
-
DEFAULT: '
|
|
373
|
-
light: '
|
|
428
|
+
DEFAULT: 'var(--gm-color-orange)',
|
|
429
|
+
light: 'var(--gm-color-orange-light)',
|
|
374
430
|
},
|
|
375
431
|
yellow: {
|
|
376
432
|
// open house
|
|
377
|
-
DEFAULT: '
|
|
433
|
+
DEFAULT: 'var(--gm-color-yellow)',
|
|
378
434
|
},
|
|
379
435
|
},
|
|
380
436
|
fontFamily: {
|