@classic-homes/theme-styles 0.1.54 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-styles",
3
- "version": "0.1.54",
3
+ "version": "0.2.1",
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
@@ -5,21 +5,24 @@
5
5
  * following Classic Homes brand guidelines.
6
6
  */
7
7
 
8
- @layer classic-theme.base {
9
- /*
10
- * Import brand fonts from Google Fonts.
11
- *
12
- * PERFORMANCE NOTE: This @import inside a CSS layer causes a render-blocking
13
- * network request. For best performance, load fonts via <link> in your HTML <head>:
14
- *
15
- * <link rel="preconnect" href="https://fonts.googleapis.com">
16
- * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
17
- * <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">
18
- *
19
- * If you load fonts via HTML, you can safely remove this @import.
20
- */
21
- @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');
8
+ /*
9
+ * Import brand fonts from Google Fonts.
10
+ *
11
+ * This must stay at the top of the file: @import is only valid before any
12
+ * other rule, and browsers silently drop it inside a @layer block.
13
+ *
14
+ * PERFORMANCE NOTE: This @import causes a render-blocking network request.
15
+ * For best performance, load fonts via <link> in your HTML <head>:
16
+ *
17
+ * <link rel="preconnect" href="https://fonts.googleapis.com">
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">
20
+ *
21
+ * If you load fonts via HTML, you can safely remove this @import.
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');
22
24
 
25
+ @layer classic-theme.base {
23
26
  /* Base HTML setup */
24
27
  html {
25
28
  font-family: var(