@classic-homes/theme-tailwind-preset 0.2.0 → 0.4.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/index.js +22 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -25,6 +25,12 @@ module.exports = {
25
25
  // Enable dark mode via class on <html> element
26
26
  darkMode: ['class'],
27
27
 
28
+ future: {
29
+ // Gate hover:/group-hover: styles behind @media (hover: hover) and (pointer: fine)
30
+ // so touch devices never enter a sticky hover state (iOS double-tap on nav items).
31
+ hoverOnlyWhenSupported: true,
32
+ },
33
+
28
34
  theme: {
29
35
  // Container with brand max-widths
30
36
  container: {
@@ -71,6 +77,15 @@ module.exports = {
71
77
  border: 'hsl(var(--border))',
72
78
  input: 'hsl(var(--input))',
73
79
  ring: 'hsl(var(--ring))',
80
+ outline: {
81
+ DEFAULT: 'hsl(var(--outline))',
82
+ hover: 'hsl(var(--outline-hover))',
83
+ },
84
+ toolbar: {
85
+ DEFAULT: 'hsl(var(--toolbar))',
86
+ foreground: 'hsl(var(--toolbar-foreground))',
87
+ border: 'hsl(var(--toolbar-border))',
88
+ },
74
89
  background: {
75
90
  DEFAULT: 'hsl(var(--background))',
76
91
  hover: 'hsl(var(--background-hover))',
@@ -86,6 +101,8 @@ module.exports = {
86
101
  DEFAULT: 'hsl(var(--secondary))',
87
102
  foreground: 'hsl(var(--secondary-foreground))',
88
103
  hover: 'hsl(var(--secondary-hover))',
104
+ border: 'hsl(var(--secondary-border))',
105
+ soft: 'hsl(var(--secondary-soft))',
89
106
  },
90
107
  destructive: {
91
108
  DEFAULT: 'hsl(var(--destructive))',
@@ -177,12 +194,13 @@ module.exports = {
177
194
 
178
195
  fontSize: {
179
196
  ...tokens.fontSize,
180
- // Heading sizes for typography scale
181
- h1: ['2.25rem', { lineHeight: '2.5rem', fontWeight: '600' }], // 36px
182
- h2: ['1.875rem', { lineHeight: '2.25rem', fontWeight: '600' }], // 30px
197
+ // Heading sizes for typography scale (mirrors theme-styles base.css).
198
+ // h1 pairs with `font-serif italic` (Spectral 500); h2-h6 are Figtree 600.
199
+ h1: ['2.5rem', { lineHeight: '2rem', fontWeight: '500' }], // 40px
200
+ h2: ['1.75rem', { lineHeight: '2.25rem', fontWeight: '600' }], // 28px
183
201
  h3: ['1.5rem', { lineHeight: '2rem', fontWeight: '600' }], // 24px
184
202
  h4: ['1.25rem', { lineHeight: '1.75rem', fontWeight: '600' }], // 20px
185
- h5: ['1.125rem', { lineHeight: '1.75rem', fontWeight: '600' }], // 18px
203
+ h5: ['1.125rem', { lineHeight: '1.5rem', fontWeight: '600' }], // 18px
186
204
  h6: ['1rem', { lineHeight: '1.5rem', fontWeight: '600' }], // 16px
187
205
  },
188
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-tailwind-preset",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Tailwind CSS preset for the Classic theme system",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,