@classic-homes/theme-styles 0.1.55 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-styles",
3
- "version": "0.1.55",
3
+ "version": "0.4.0",
4
4
  "description": "Base styles and utilities for the Classic Theme design system",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -116,8 +116,10 @@
116
116
  padding: 0;
117
117
  margin: -1px;
118
118
  overflow: hidden;
119
+ /* clip only — matching Tailwind's .sr-only. A clip-path here would survive
120
+ Tailwind's .not-sr-only reset (which doesn't touch clip-path), leaving
121
+ `sr-only sm:not-sr-only` text invisible but still taking up space. */
119
122
  clip: rect(0, 0, 0, 0);
120
- clip-path: inset(50%);
121
123
  white-space: nowrap;
122
124
  border-width: 0;
123
125
  }
package/src/base.css CHANGED
@@ -16,11 +16,11 @@
16
16
  *
17
17
  * <link rel="preconnect" href="https://fonts.googleapis.com">
18
18
  * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
19
- * <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap" rel="stylesheet">
19
+ * <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;900&family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap" rel="stylesheet">
20
20
  *
21
21
  * If you load fonts via HTML, you can safely remove this @import.
22
22
  */
23
- @import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');
23
+ @import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;900&family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');
24
24
 
25
25
  @layer classic-theme.base {
26
26
  /* Base HTML setup */
@@ -52,16 +52,22 @@
52
52
  min-height: 100vh;
53
53
  }
54
54
 
55
- /* Heading styles - use serif font per brand guidelines */
55
+ /* Headings: h1 is the display face (Spectral 500 italic); h2-h6 are Figtree 600 */
56
56
  h1,
57
57
  h2,
58
58
  h3,
59
59
  h4,
60
60
  h5,
61
61
  h6 {
62
+ color: hsl(var(--foreground));
63
+ margin-top: 0;
64
+ margin-bottom: 0.5em;
65
+ }
66
+
67
+ h1 {
62
68
  font-family: var(
63
69
  --font-serif,
64
- 'Source Serif 4',
70
+ 'Spectral',
65
71
  ui-serif,
66
72
  Georgia,
67
73
  Cambria,
@@ -69,31 +75,53 @@
69
75
  Times,
70
76
  serif
71
77
  );
72
- color: hsl(var(--foreground));
78
+ font-weight: 500;
79
+ font-style: italic;
80
+ font-size: 2.5rem; /* 40px */
81
+ line-height: 2rem;
82
+ }
83
+
84
+ h2,
85
+ h3,
86
+ h4,
87
+ h5,
88
+ h6 {
89
+ font-family: var(
90
+ --font-sans,
91
+ 'Figtree',
92
+ ui-sans-serif,
93
+ system-ui,
94
+ -apple-system,
95
+ BlinkMacSystemFont,
96
+ 'Segoe UI',
97
+ Roboto,
98
+ 'Helvetica Neue',
99
+ Arial,
100
+ sans-serif
101
+ );
73
102
  font-weight: 600;
74
- line-height: 1.2;
75
- margin-top: 0;
76
- margin-bottom: 0.5em;
77
103
  }
78
104
 
79
- h1 {
80
- font-size: 2.25rem;
81
- } /* 36px */
82
105
  h2 {
83
- font-size: 1.875rem;
84
- } /* 30px */
106
+ font-size: 1.75rem; /* 28px */
107
+ line-height: 2.25rem;
108
+ }
85
109
  h3 {
86
- font-size: 1.5rem;
87
- } /* 24px */
110
+ font-size: 1.5rem; /* 24px */
111
+ line-height: 2rem;
112
+ }
88
113
  h4 {
89
- font-size: 1.25rem;
90
- } /* 20px */
114
+ font-size: 1.25rem; /* 20px */
115
+ line-height: 1.75rem;
116
+ }
91
117
  h5 {
92
- font-size: 1.125rem;
93
- } /* 18px */
118
+ font-size: 1.125rem; /* 18px */
119
+ line-height: 1.5rem;
120
+ }
94
121
  h6 {
95
- font-size: 1rem;
96
- } /* 16px */
122
+ font-size: 1rem; /* 16px */
123
+ line-height: 1.5rem;
124
+ }
97
125
 
98
126
  /* Paragraph and text */
99
127
  p {