@almadar/ui 2.12.2 → 2.12.3

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/themes/index.css +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.12.2",
3
+ "version": "2.12.3",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
package/themes/index.css CHANGED
@@ -35,6 +35,28 @@
35
35
  border-color: var(--color-border, #e5e7eb);
36
36
  }
37
37
 
38
+ /**
39
+ * Font inheritance for headings.
40
+ *
41
+ * Host apps (Docusaurus, builder) often set their own heading font-family
42
+ * (e.g. --ifm-heading-font-family). This ensures headings inside themed
43
+ * containers use the theme's --font-family instead.
44
+ */
45
+ [data-theme] h1,
46
+ [data-theme] h2,
47
+ [data-theme] h3,
48
+ [data-theme] h4,
49
+ [data-theme] h5,
50
+ [data-theme] h6,
51
+ #ui-slot-portal-root h1,
52
+ #ui-slot-portal-root h2,
53
+ #ui-slot-portal-root h3,
54
+ #ui-slot-portal-root h4,
55
+ #ui-slot-portal-root h5,
56
+ #ui-slot-portal-root h6 {
57
+ font-family: var(--font-family, inherit);
58
+ }
59
+
38
60
  /* Core themes */
39
61
  @import "./wireframe.css";
40
62
  @import "./minimalist.css";