@farming-labs/astro-theme 0.1.7 → 0.1.9
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/astro-theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Astro UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"concrete": [
|
|
36
36
|
"./src/themes/concrete.d.ts"
|
|
37
37
|
],
|
|
38
|
+
"command-grid": [
|
|
39
|
+
"./src/themes/command-grid.d.ts"
|
|
40
|
+
],
|
|
38
41
|
"hardline": [
|
|
39
42
|
"./src/themes/hardline.d.ts"
|
|
40
43
|
]
|
|
@@ -77,6 +80,11 @@
|
|
|
77
80
|
"import": "./src/themes/concrete.js",
|
|
78
81
|
"default": "./src/themes/concrete.js"
|
|
79
82
|
},
|
|
83
|
+
"./command-grid": {
|
|
84
|
+
"types": "./src/themes/command-grid.d.ts",
|
|
85
|
+
"import": "./src/themes/command-grid.js",
|
|
86
|
+
"default": "./src/themes/command-grid.js"
|
|
87
|
+
},
|
|
80
88
|
"./css": "./styles/docs.css",
|
|
81
89
|
"./fumadocs/css": "./styles/docs.css",
|
|
82
90
|
"./styles/pixel-border.css": "./styles/pixel-border.css",
|
|
@@ -95,12 +103,14 @@
|
|
|
95
103
|
"./styles/hardline.css": "./styles/hardline.css",
|
|
96
104
|
"./hardline/css": "./styles/hardline-bundle.css",
|
|
97
105
|
"./styles/concrete.css": "./styles/concrete.css",
|
|
98
|
-
"./concrete/css": "./styles/concrete-bundle.css"
|
|
106
|
+
"./concrete/css": "./styles/concrete-bundle.css",
|
|
107
|
+
"./styles/command-grid.css": "./styles/command-grid.css",
|
|
108
|
+
"./command-grid/css": "./styles/command-grid-bundle.css"
|
|
99
109
|
},
|
|
100
110
|
"dependencies": {
|
|
101
111
|
"sugar-high": "^0.9.5",
|
|
102
|
-
"@farming-labs/docs": "0.1.
|
|
103
|
-
"@farming-labs/astro": "0.1.
|
|
112
|
+
"@farming-labs/docs": "0.1.9",
|
|
113
|
+
"@farming-labs/astro": "0.1.9"
|
|
104
114
|
},
|
|
105
115
|
"peerDependencies": {
|
|
106
116
|
"astro": ">=4.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 };
|