@farming-labs/theme 0.2.43 → 0.2.45

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.
@@ -591,7 +591,9 @@ function buildTypographyCSS(typo) {
591
591
  }
592
592
  }
593
593
  if (vars.length === 0) return "";
594
- return `:root {\n ${vars.join("\n ")}\n}`;
594
+ return `:root,
595
+ body:has(#nd-docs-layout),
596
+ #nd-docs-layout {\n ${vars.join("\n ")}\n}`;
595
597
  }
596
598
  function TypographyStyle({ typography }) {
597
599
  const css = buildTypographyCSS(typography);
@@ -145,7 +145,9 @@ function buildTypographyCSS(typo) {
145
145
  }
146
146
  }
147
147
  if (vars.length === 0) return "";
148
- return `:root {\n ${vars.join("\n ")}\n}`;
148
+ return `:root,
149
+ body:has(#nd-docs-layout),
150
+ #nd-docs-layout {\n ${vars.join("\n ")}\n}`;
149
151
  }
150
152
  function TypographyStyle({ typography }) {
151
153
  const css = buildTypographyCSS(typography);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -146,7 +146,7 @@
146
146
  "tsdown": "^0.20.3",
147
147
  "typescript": "^5.9.3",
148
148
  "vitest": "^4.1.8",
149
- "@farming-labs/docs": "0.2.43"
149
+ "@farming-labs/docs": "0.2.45"
150
150
  },
151
151
  "peerDependencies": {
152
152
  "@farming-labs/docs": ">=0.0.1",
@@ -154,8 +154,20 @@
154
154
  "react": ">=19.2.0",
155
155
  "react-dom": ">=19.2.0"
156
156
  },
157
+ "peerDependenciesMeta": {
158
+ "next": {
159
+ "optional": true
160
+ },
161
+ "react": {
162
+ "optional": true
163
+ },
164
+ "react-dom": {
165
+ "optional": true
166
+ }
167
+ },
157
168
  "scripts": {
158
- "build": "tsdown",
169
+ "build": "node scripts/build-css-bundles.mjs && tsdown",
170
+ "build:css": "node scripts/build-css-bundles.mjs",
159
171
  "dev": "tsdown --watch",
160
172
  "typecheck": "tsc --noEmit",
161
173
  "test": "vitest run",