@farming-labs/theme 0.0.25 → 0.0.27
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/dist/docs-layout.mjs +2 -1
- package/package.json +2 -2
package/dist/docs-layout.mjs
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "0.0.27",
|
|
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.
|
|
107
|
+
"@farming-labs/docs": "0.0.27"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"@farming-labs/docs": ">=0.0.1",
|