@obosbbl/grunnmuren-tailwind 0.7.3 → 0.8.1

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 +3 -3
  2. package/tailwind-base.cjs +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "0.7.3",
3
+ "version": "0.8.1",
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",
22
+ "tailwindcss": "3.2.1",
23
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
@@ -333,6 +333,9 @@ module.exports = (userOptions) => {
333
333
  addUtilities({
334
334
  // imitates a bold font, but doesn't cause layout due to element width change like with font-weight
335
335
  // Note that this CSS isn't standardized, but it works in Fx, Chrome, Safari and Edge
336
+ /**
337
+ * @deprecated use font-bold instead
338
+ */
336
339
  '.fake-font-bold': {
337
340
  '-webkit-text-stroke': '1px',
338
341
  },
@@ -375,7 +378,12 @@ module.exports = (userOptions) => {
375
378
  prose: '696px',
376
379
  },
377
380
  screens: {
378
- // replicate the smaller than breakpoint from Windi. Even though we are mobile first, it is really nice with an escape hatch sometimes
381
+ 'max-md': { max: '767.9px' },
382
+ /**
383
+ * @deprecated Tailwind 3.2 has built in support for max-width breakpoints, but it only works
384
+ * with a "simple screens" configuration... We add `max-md` manually here, allow everyone to migrate off
385
+ * `<md`, then we can remove `screens` enitrely from this config.
386
+ */
379
387
  '<md': { max: '767.9px' },
380
388
  },
381
389
  spacing: {
@@ -428,6 +436,9 @@ module.exports = (userOptions) => {
428
436
  DEFAULT: '#fff5d2',
429
437
  },
430
438
  },
439
+ borderColor: ({ theme }) => ({
440
+ DEFAULT: theme('colors.gray.light', 'currentColor'),
441
+ }),
431
442
  fontFamily: {
432
443
  sans: [fontFamily, 'sans-serif'],
433
444
  },