@farming-labs/nuxt-theme 0.1.7 → 0.1.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/nuxt-theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Nuxt/Vue UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"import": "./src/themes/concrete.js",
|
|
53
53
|
"default": "./src/themes/concrete.js"
|
|
54
54
|
},
|
|
55
|
+
"./command-grid": {
|
|
56
|
+
"types": "./src/themes/command-grid.d.ts",
|
|
57
|
+
"import": "./src/themes/command-grid.js",
|
|
58
|
+
"default": "./src/themes/command-grid.js"
|
|
59
|
+
},
|
|
55
60
|
"./css": "./styles/docs.css",
|
|
56
61
|
"./fumadocs/css": "./styles/docs.css",
|
|
57
62
|
"./styles/pixel-border.css": "./styles/pixel-border.css",
|
|
@@ -70,11 +75,13 @@
|
|
|
70
75
|
"./styles/hardline.css": "./styles/hardline.css",
|
|
71
76
|
"./hardline/css": "./styles/hardline-bundle.css",
|
|
72
77
|
"./styles/concrete.css": "./styles/concrete.css",
|
|
73
|
-
"./concrete/css": "./styles/concrete-bundle.css"
|
|
78
|
+
"./concrete/css": "./styles/concrete-bundle.css",
|
|
79
|
+
"./styles/command-grid.css": "./styles/command-grid.css",
|
|
80
|
+
"./command-grid/css": "./styles/command-grid-bundle.css"
|
|
74
81
|
},
|
|
75
82
|
"dependencies": {
|
|
76
83
|
"sugar-high": "^0.9.5",
|
|
77
|
-
"@farming-labs/docs": "0.1.
|
|
84
|
+
"@farming-labs/docs": "0.1.8"
|
|
78
85
|
},
|
|
79
86
|
"peerDependencies": {
|
|
80
87
|
"nuxt": ">=3.0.0",
|
|
@@ -53,7 +53,7 @@ function renderTable(rows) {
|
|
|
53
53
|
})
|
|
54
54
|
.join("");
|
|
55
55
|
|
|
56
|
-
return `<table>${thead}<tbody>${bodyRows}</tbody></table>`;
|
|
56
|
+
return `<div class="fd-table-wrapper relative overflow-auto prose-no-margin my-6"><table>${thead}<tbody>${bodyRows}</tbody></table></div>`;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function renderMarkdown(text) {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createTheme } from "@farming-labs/docs";
|
|
2
|
+
|
|
3
|
+
const CommandGridUIDefaults = {
|
|
4
|
+
colors: {
|
|
5
|
+
primary: "#141414",
|
|
6
|
+
background: "#f8f6ed",
|
|
7
|
+
muted: "#3d3d3d",
|
|
8
|
+
border: "#141210",
|
|
9
|
+
},
|
|
10
|
+
typography: {
|
|
11
|
+
font: {
|
|
12
|
+
style: {
|
|
13
|
+
sans: "var(--font-ibm-plex-mono), 'IBM Plex Mono', 'Geist Mono', ui-monospace, monospace",
|
|
14
|
+
mono: "var(--font-ibm-plex-mono), 'IBM Plex Mono', 'Geist Mono', ui-monospace, monospace",
|
|
15
|
+
},
|
|
16
|
+
h1: { size: "3.3rem", weight: 400, lineHeight: "0.86", letterSpacing: "0.01em" },
|
|
17
|
+
h2: { size: "2.4rem", weight: 400, lineHeight: "0.92", letterSpacing: "0.012em" },
|
|
18
|
+
h3: { size: "1.42rem", weight: 600, lineHeight: "1.18", letterSpacing: "-0.01em" },
|
|
19
|
+
h4: { size: "1.05rem", weight: 600, lineHeight: "1.34", letterSpacing: "0em" },
|
|
20
|
+
body: { size: "0.98rem", weight: 400, lineHeight: "1.7" },
|
|
21
|
+
small: { size: "0.8rem", weight: 500, lineHeight: "1.45", letterSpacing: "0.02em" },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
radius: "0px",
|
|
25
|
+
layout: {
|
|
26
|
+
contentWidth: 900,
|
|
27
|
+
sidebarWidth: 304,
|
|
28
|
+
toc: { enabled: true, depth: 3, style: "directional" },
|
|
29
|
+
header: { height: 64, sticky: true },
|
|
30
|
+
},
|
|
31
|
+
sidebar: { style: "bordered" },
|
|
32
|
+
components: {
|
|
33
|
+
Callout: { variant: "soft", icon: true },
|
|
34
|
+
CodeBlock: { showCopyButton: true },
|
|
35
|
+
HoverLink: { linkLabel: "Open page", showIndicator: false },
|
|
36
|
+
Tabs: { style: "default" },
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const commandGrid = createTheme({
|
|
41
|
+
name: "command-grid",
|
|
42
|
+
ui: CommandGridUIDefaults,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export { CommandGridUIDefaults };
|