@obosbbl/grunnmuren-tailwind 0.8.3 → 0.8.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/tailwind-base.cjs +26 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Grunnmuren Tailwind preset",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -16,11 +16,11 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@tailwindcss/aspect-ratio": "0.4.2",
19
- "@tailwindcss/typography": "0.5.8"
19
+ "@tailwindcss/typography": "0.5.9"
20
20
  },
21
21
  "devDependencies": {
22
- "tailwindcss": "3.2.4",
23
- "postcss": "8.4.18"
22
+ "tailwindcss": "3.2.7",
23
+ "postcss": "8.4.21"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "tailwindcss": "^3.2"
package/tailwind-base.cjs CHANGED
@@ -116,10 +116,13 @@ const radio = plugin(function ({ addComponents, theme }) {
116
116
  borderRadius: '50%',
117
117
  border: `2px solid ${theme('colors.gray.dark')}`,
118
118
  cursor: 'pointer',
119
- marginRight: '0.75rem',
120
119
  // use grid to handle the checked:before styles
121
120
  display: 'inline-grid',
122
121
  placeContent: 'center',
122
+ // Prevent flex container from altering the size of the radio button
123
+ flex: '0 0 auto',
124
+ // magic number that tries to keep the input horizontally centered in relation to the first line of the label text
125
+ transform: 'translateY(0.095em)',
123
126
  '&:checked': {
124
127
  borderColor: theme('colors.green.DEFAULT'),
125
128
  },
@@ -461,23 +464,39 @@ module.exports = (userOptions) => {
461
464
  fontWeight: 400,
462
465
  },
463
466
  h1: {
464
- fontWeight: 'bold',
467
+ fontWeight: theme('fontWeight.bold'),
468
+ fontSize: theme('fontSize.3xl'),
469
+ '@media (min-width: theme("screens.md"))': {
470
+ fontSize: theme('fontSize.5xl'),
471
+ },
465
472
  },
466
473
  h2: {
467
- fontWeight: 'bold',
474
+ fontWeight: theme('fontWeight.bold'),
475
+ fontSize: theme('fontSize.2xl'),
476
+ '@media (min-width: theme("screens.md"))': {
477
+ fontSize: theme('fontSize.4xl'),
478
+ },
468
479
  },
469
480
  h3: {
470
- fontWeight: 'bold',
481
+ fontWeight: theme('fontWeight.bold'),
482
+ fontSize: theme('fontSize.xl'),
483
+ '@media (min-width: theme("screens.md"))': {
484
+ fontSize: theme('fontSize.2xl'),
485
+ },
471
486
  },
472
487
  h4: {
473
- fontWeight: 'bold',
488
+ fontWeight: theme('fontWeight.bold'),
489
+ fontSize: theme('fontSize.lg'),
490
+ '@media (min-width: theme("screens.md"))': {
491
+ fontSize: theme('fontSize.xl'),
492
+ },
474
493
  },
475
494
  li: {
476
495
  marginTop: '1.5em',
477
496
  marginBottom: '1.5em',
478
497
  },
479
498
  blockquote: {
480
- fontWeight: '700',
499
+ fontWeight: theme('fontWeight.bold'),
481
500
  fontStyle: 'normal',
482
501
  },
483
502
  'blockquote p:first-of-type::before': {
@@ -487,7 +506,7 @@ module.exports = (userOptions) => {
487
506
  content: '"»"',
488
507
  },
489
508
  '[class~="lead"]': {
490
- fontWeight: 500,
509
+ fontWeight: theme('fontWeight.medium'),
491
510
  },
492
511
  },
493
512
  },