@farming-labs/svelte-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/svelte-theme",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Svelte UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
5
5
  "keywords": [
6
6
  "docs",
@@ -36,6 +36,9 @@
36
36
  "concrete": [
37
37
  "./src/themes/concrete.d.ts"
38
38
  ],
39
+ "command-grid": [
40
+ "./src/themes/command-grid.d.ts"
41
+ ],
39
42
  "hardline": [
40
43
  "./src/themes/hardline.d.ts"
41
44
  ]
@@ -79,6 +82,11 @@
79
82
  "import": "./src/themes/concrete.js",
80
83
  "default": "./src/themes/concrete.js"
81
84
  },
85
+ "./command-grid": {
86
+ "types": "./src/themes/command-grid.d.ts",
87
+ "import": "./src/themes/command-grid.js",
88
+ "default": "./src/themes/command-grid.js"
89
+ },
82
90
  "./css": "./styles/docs.css",
83
91
  "./fumadocs/css": "./styles/docs.css",
84
92
  "./styles/pixel-border.css": "./styles/pixel-border.css",
@@ -97,13 +105,15 @@
97
105
  "./styles/hardline.css": "./styles/hardline.css",
98
106
  "./hardline/css": "./styles/hardline-bundle.css",
99
107
  "./styles/concrete.css": "./styles/concrete.css",
100
- "./concrete/css": "./styles/concrete-bundle.css"
108
+ "./concrete/css": "./styles/concrete-bundle.css",
109
+ "./styles/command-grid.css": "./styles/command-grid.css",
110
+ "./command-grid/css": "./styles/command-grid-bundle.css"
101
111
  },
102
112
  "dependencies": {
103
113
  "gray-matter": "^4.0.3",
104
114
  "sugar-high": "^0.9.5",
105
- "@farming-labs/docs": "0.1.7",
106
- "@farming-labs/svelte": "0.1.7"
115
+ "@farming-labs/docs": "0.1.8",
116
+ "@farming-labs/svelte": "0.1.8"
107
117
  },
108
118
  "peerDependencies": {
109
119
  "svelte": ">=5.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,4 @@
1
+ export declare const commandGrid: (overrides?: {
2
+ ui?: Record<string, unknown>;
3
+ }) => import("@farming-labs/docs").DocsTheme;
4
+ export declare const CommandGridUIDefaults: Record<string, unknown>;
@@ -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 };