@obosbbl/grunnmuren-tailwind 2.0.0-canary.3 → 2.0.0-canary.5
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 +11 -6
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.5",
|
|
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.4"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"tailwindcss": "^3.4.0"
|
package/tailwind-base.cjs
CHANGED
|
@@ -223,9 +223,9 @@ module.exports = (options = {}) => {
|
|
|
223
223
|
// This is tailwind syntax for setting both the font-size and the line-height
|
|
224
224
|
const headingXl = `@apply font-display font-${headingXlText.fontWeight} text-[${headingXlText.small.fontSize}]/[${headingXlText.small.lineHeight}] md:text-[${headingXlText.large.fontSize}]/[${headingXlText.large.lineHeight}]`;
|
|
225
225
|
const headingL = `@apply font-display font-${headingLText.fontWeight} text-[${headingLText.small.fontSize}]/[${headingLText.small.lineHeight}] md:text-[${headingLText.large.fontSize}]/[${headingLText.large.lineHeight}]`;
|
|
226
|
-
const headingM = `@apply font-${headingMText.fontWeight} text-[${headingMText.small.fontSize}]/[${headingMText.small.lineHeight}] md:text-[${headingMText.large.fontSize}]/[${headingMText.large.lineHeight}]`;
|
|
227
|
-
const headingS = `@apply font-${headingSText.fontWeight} text-[${headingSText.small.fontSize}]/[${headingSText.small.lineHeight}] md:text-[${headingSText.large.fontSize}]/[${headingSText.large.lineHeight}]`;
|
|
228
|
-
const headingXs = `@apply font-${headingXsText.fontWeight} text-[${headingXsText.small.fontSize}]/[${headingXsText.small.lineHeight}] md:text-[${headingXsText.large.fontSize}]/[${headingXsText.large.lineHeight}]`;
|
|
226
|
+
const headingM = `@apply font-text font-${headingMText.fontWeight} text-[${headingMText.small.fontSize}]/[${headingMText.small.lineHeight}] md:text-[${headingMText.large.fontSize}]/[${headingMText.large.lineHeight}]`;
|
|
227
|
+
const headingS = `@apply font-text font-${headingSText.fontWeight} text-[${headingSText.small.fontSize}]/[${headingSText.small.lineHeight}] md:text-[${headingSText.large.fontSize}]/[${headingSText.large.lineHeight}]`;
|
|
228
|
+
const headingXs = `@apply font-text font-${headingXsText.fontWeight} text-[${headingXsText.small.fontSize}]/[${headingXsText.small.lineHeight}] md:text-[${headingXsText.large.fontSize}]/[${headingXsText.large.lineHeight}]`;
|
|
229
229
|
|
|
230
230
|
const paragraph = `@apply text-[${paragraphText.fontSize}]/[${paragraphText.lineHeight}]`;
|
|
231
231
|
const lead = `@apply font-medium text-[${leadText.small.fontSize}]/[${leadText.small.lineHeight}] md:text-[${leadText.large.fontSize}]/[${leadText.large.lineHeight}]`;
|
|
@@ -414,7 +414,7 @@ module.exports = (options = {}) => {
|
|
|
414
414
|
'--tw-prose-links': 'inherit',
|
|
415
415
|
'--tw-prose-quotes': 'inherit',
|
|
416
416
|
'--tw-prose-counters': theme('colors.black'),
|
|
417
|
-
'--tw-prose-bullets': theme('colors.
|
|
417
|
+
'--tw-prose-bullets': theme('colors.black'),
|
|
418
418
|
color: theme('colors.black'),
|
|
419
419
|
maxWidth: theme('maxWidth.prose'),
|
|
420
420
|
a: {
|
|
@@ -437,6 +437,7 @@ module.exports = (options = {}) => {
|
|
|
437
437
|
},
|
|
438
438
|
},
|
|
439
439
|
h3: {
|
|
440
|
+
fontFamily: 'OBOSText',
|
|
440
441
|
fontWeight: theme('fontWeight.medium'),
|
|
441
442
|
...typography.headingMText.small,
|
|
442
443
|
'@media (min-width: theme("screens.md"))': {
|
|
@@ -444,6 +445,7 @@ module.exports = (options = {}) => {
|
|
|
444
445
|
},
|
|
445
446
|
},
|
|
446
447
|
h4: {
|
|
448
|
+
fontFamily: 'OBOSText',
|
|
447
449
|
fontWeight: theme('fontWeight.medium'),
|
|
448
450
|
...typography.headingSText.small,
|
|
449
451
|
'@media (min-width: theme("screens.md"))': {
|
|
@@ -451,6 +453,7 @@ module.exports = (options = {}) => {
|
|
|
451
453
|
},
|
|
452
454
|
},
|
|
453
455
|
h5: {
|
|
456
|
+
fontFamily: 'OBOSText',
|
|
454
457
|
fontWeight: theme('fontWeight.bold'),
|
|
455
458
|
...typography.headingXsText.small,
|
|
456
459
|
'@media (min-width: theme("screens.md"))': {
|
|
@@ -458,8 +461,10 @@ module.exports = (options = {}) => {
|
|
|
458
461
|
},
|
|
459
462
|
},
|
|
460
463
|
li: {
|
|
461
|
-
|
|
462
|
-
|
|
464
|
+
...typography.paragraphText.small,
|
|
465
|
+
'@media (min-width: theme("screens.md"))': {
|
|
466
|
+
...typography.paragraphText.large,
|
|
467
|
+
},
|
|
463
468
|
},
|
|
464
469
|
p: {
|
|
465
470
|
...typography.paragraphText.small,
|