@farming-labs/theme 0.0.25 → 0.0.26

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.
@@ -309,7 +309,8 @@ function buildColorsCSS(colors) {
309
309
  vars.push(`${COLOR_MAP[key]}: ${value};`);
310
310
  }
311
311
  if (vars.length === 0) return "";
312
- return `.dark {\n ${vars.join("\n ")}\n}`;
312
+ const block = vars.join("\n ");
313
+ return `:root {\n ${block}\n}\n.dark {\n ${block}\n}`;
313
314
  }
314
315
  function ColorStyle({ colors }) {
315
316
  const css = buildColorsCSS(colors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -104,7 +104,7 @@
104
104
  "tsdown": "^0.20.3",
105
105
  "typescript": "^5.9.3",
106
106
  "vitest": "^3.2.4",
107
- "@farming-labs/docs": "0.0.25"
107
+ "@farming-labs/docs": "0.0.26"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "@farming-labs/docs": ">=0.0.1",