@classic-homes/theme-tailwind-preset 0.12.0 → 0.13.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 +1 -1
  2. package/theme.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-tailwind-preset",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "Tailwind CSS preset for the Classic theme system",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,
package/theme.js CHANGED
@@ -14,12 +14,12 @@ const tokens = require('@classic-homes/theme-tokens');
14
14
  const darkMode = ['class'];
15
15
 
16
16
  // Heading sizes for the typography scale (mirrors theme-styles base.css).
17
- // h1 pairs with `font-serif italic` (Spectral 500); h2-h6 are Figtree 600.
17
+ // h1 is `font-serif` (Spectral 400 upright, v2.5); h2-h6 are Figtree 600.
18
18
  // Exposed as `text-h1`..`text-h6` and emitted on the bare elements by
19
19
  // `headingBase` below, so the two never drift.
20
20
  const headingScale = {
21
21
  // 2.75rem leading: a 2rem line on 40px type made wrapped titles overlap
22
- h1: ['2.5rem', { lineHeight: '2.75rem', fontWeight: '500' }], // 40px
22
+ h1: ['2.5rem', { lineHeight: '2.75rem', fontWeight: '400' }], // 40px
23
23
  h2: ['1.75rem', { lineHeight: '2.25rem', fontWeight: '600' }], // 28px
24
24
  h3: ['1.5rem', { lineHeight: '2rem', fontWeight: '600' }], // 24px
25
25
  h4: ['1.25rem', { lineHeight: '1.75rem', fontWeight: '600' }], // 20px
@@ -51,7 +51,7 @@ const headingStyles = Object.fromEntries(
51
51
  level === 'h1'
52
52
  ? {
53
53
  fontFamily: `var(--font-serif, ${stack(tokens.fontFamily.serif)})`,
54
- fontStyle: 'italic',
54
+ fontStyle: 'normal',
55
55
  fontSize,
56
56
  lineHeight,
57
57
  fontWeight,