@farming-labs/next 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.
@@ -354,7 +354,16 @@ function buildApiReferenceTypographyCSS(typography) {
354
354
  if (cssVars) vars.push(cssVars);
355
355
  }
356
356
  if (vars.length === 0) return "";
357
- return `:root {\n ${vars.join("\n ")}\n}`;
357
+ const cssVars = vars.join("\n ");
358
+ return `:root {
359
+ ${cssVars}
360
+ }
361
+ body:has(.fd-api-reference-page) {
362
+ ${cssVars}
363
+ }
364
+ .fd-api-reference-page {
365
+ ${cssVars}
366
+ }`;
358
367
  }
359
368
  function ApiReferenceTypographyStyle({ typography }) {
360
369
  const css = buildApiReferenceTypographyCSS(typography);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -106,8 +106,8 @@
106
106
  "tsdown": "^0.20.3",
107
107
  "typescript": "^5.9.3",
108
108
  "vitest": "^4.1.8",
109
- "@farming-labs/theme": "0.2.43",
110
- "@farming-labs/docs": "0.2.43"
109
+ "@farming-labs/docs": "0.2.45",
110
+ "@farming-labs/theme": "0.2.45"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@farming-labs/docs": ">=0.0.1",