@obosbbl/grunnmuren-tailwind 0.7.2 → 0.8.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 (2) hide show
  1. package/package.json +4 -4
  2. package/tailwind-base.cjs +21 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Grunnmuren Tailwind preset",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -19,10 +19,10 @@
19
19
  "@tailwindcss/typography": "0.5.7"
20
20
  },
21
21
  "devDependencies": {
22
- "tailwindcss": "3.1.8",
23
- "postcss": "8.4.17"
22
+ "tailwindcss": "3.2.1",
23
+ "postcss": "8.4.18"
24
24
  },
25
25
  "peerDependencies": {
26
- "tailwindcss": "^3"
26
+ "tailwindcss": "^3.2"
27
27
  }
28
28
  }
package/tailwind-base.cjs CHANGED
@@ -375,7 +375,12 @@ module.exports = (userOptions) => {
375
375
  prose: '696px',
376
376
  },
377
377
  screens: {
378
- // replicate the smaller than breakpoint from Windi. Even though we are mobile first, it is really nice with an escape hatch sometimes
378
+ 'max-md': { max: '767.9px' },
379
+ /**
380
+ * @deprecated Tailwind 3.2 has built in support for max-width breakpoints, but it only works
381
+ * with a "simple screens" configuration... We add `max-md` manually here, allow everyone to migrate off
382
+ * `<md`, then we can remove `screens` enitrely from this config.
383
+ */
379
384
  '<md': { max: '767.9px' },
380
385
  },
381
386
  spacing: {
@@ -428,6 +433,9 @@ module.exports = (userOptions) => {
428
433
  DEFAULT: '#fff5d2',
429
434
  },
430
435
  },
436
+ borderColor: ({ theme }) => ({
437
+ DEFAULT: theme('colors.gray.light', 'currentColor'),
438
+ }),
431
439
  fontFamily: {
432
440
  sans: [fontFamily, 'sans-serif'],
433
441
  },
@@ -439,6 +447,8 @@ module.exports = (userOptions) => {
439
447
  css: {
440
448
  '--tw-prose-headings': theme('colors.black'),
441
449
  '--tw-prose-lead': theme('colors.black'),
450
+ '--tw-prose-quotes': theme('colors.blue.dark'),
451
+ '--tw-prose-quote-borders': theme('colors.green.DEFAULT'),
442
452
  // TODO: Increase bullet size. See design sketches
443
453
  '--tw-prose-bullets': theme('colors.green.DEFAULT'),
444
454
  color: theme('colors.black'),
@@ -462,6 +472,16 @@ module.exports = (userOptions) => {
462
472
  marginTop: '1.5em',
463
473
  marginBottom: '1.5em',
464
474
  },
475
+ blockquote: {
476
+ fontWeight: '700',
477
+ fontStyle: 'normal',
478
+ },
479
+ 'blockquote p:first-of-type::before': {
480
+ content: '"«"',
481
+ },
482
+ 'blockquote p:last-of-type::after': {
483
+ content: '"»"',
484
+ },
465
485
  '[class~="lead"]': {
466
486
  fontWeight: 500,
467
487
  },