Skip to content

Commit 0ff89e0

Browse files
committed
chore: first release
1 parent 94a37c5 commit 0ff89e0

File tree

9 files changed

+218
-104
lines changed

9 files changed

+218
-104
lines changed

docs/app.config.ts

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
1-
import { defineConfig } from "@solidjs/start/config";
21
import { withSolidBase } from "@kobalte/solidbase/config";
2+
import { defineConfig } from "@solidjs/start/config";
33

4-
export default defineConfig(withSolidBase(
5-
// SolidStart config
6-
{
7-
server: {
8-
prerender: {
9-
crawlLinks: true
10-
}
11-
}
12-
},
13-
// SolidBase config
14-
{
15-
title: "@kobalte/themes",
16-
titleTemplate: ":title - @kobalte/themes",
17-
description: "Theme utilities for Solid & SolidStart",
18-
themeConfig: {
19-
sidebar: {
20-
"/": [
21-
{
22-
title: "Overview",
23-
collapsed: false,
24-
items: [
25-
{
26-
title: "Home",
27-
link: "/"
28-
},
29-
{
30-
title: "About",
31-
link: "/about"
32-
}
33-
]
34-
}
35-
]
36-
}
37-
}
38-
}
39-
));
4+
export default defineConfig(
5+
withSolidBase(
6+
// SolidStart config
7+
{
8+
server: {
9+
prerender: {
10+
crawlLinks: true,
11+
},
12+
},
13+
},
14+
// SolidBase config
15+
{
16+
title: "@kobalte/themes",
17+
titleTemplate: ":title - @kobalte/themes",
18+
description: "Theme utilities for Solid & SolidStart",
19+
themeConfig: {
20+
sidebar: {
21+
"/": [
22+
{
23+
title: "Overview",
24+
collapsed: false,
25+
items: [
26+
{
27+
title: "Home",
28+
link: "/",
29+
},
30+
{
31+
title: "About",
32+
link: "/about",
33+
},
34+
],
35+
},
36+
],
37+
},
38+
},
39+
},
40+
),
41+
);

docs/src/app.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
:root {
2-
--sb-hero-name-background: linear-gradient(-20deg, hsl(200, 98%, 39%) 30%, hsl(199, 95%, 74%));
3-
--sb-hero-background: linear-gradient(-45deg, hsl(200, 98%, 39%) 50%, hsl(199, 95%, 74%) 50%);
4-
}
2+
--sb-hero-name-background: linear-gradient(
3+
-20deg,
4+
hsl(200, 98%, 39%) 30%,
5+
hsl(199, 95%, 74%)
6+
);
7+
--sb-hero-background: linear-gradient(
8+
-45deg,
9+
hsl(200, 98%, 39%) 50%,
10+
hsl(199, 95%, 74%) 50%
11+
);
12+
}

docs/src/app.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Router } from "@solidjs/router";
22
import { FileRoutes } from "@solidjs/start/router";
33
import "./app.css";
4-
import {SolidBaseRoot} from "@kobalte/solidbase/client";
4+
import { SolidBaseRoot } from "@kobalte/solidbase/client";
55

66
export default function App() {
7-
return (
8-
<Router root={SolidBaseRoot}>
9-
<FileRoutes />
10-
</Router>
11-
);
7+
return (
8+
<Router root={SolidBaseRoot}>
9+
<FileRoutes />
10+
</Router>
11+
);
1212
}

docs/src/entry-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @refresh reload
2-
import { mount, StartClient } from "@solidjs/start/client";
2+
import { StartClient, mount } from "@solidjs/start/client";
33

44
mount(() => <StartClient />, document.getElementById("app")!);

docs/src/entry-server.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1+
import { getHtmlProps } from "@kobalte/solidbase/server";
12
// @refresh reload
2-
import { createHandler, StartServer } from "@solidjs/start/server";
3-
import {getHtmlProps} from "@kobalte/solidbase/server";
3+
import { StartServer, createHandler } from "@solidjs/start/server";
44

55
export default createHandler(() => (
6-
<StartServer
7-
document={({ assets, children, scripts }) => (
8-
<html {...getHtmlProps()}>
9-
<head>
10-
<meta charset="utf-8" />
11-
<meta name="viewport" content="width=device-width, initial-scale=1" />
12-
<link rel="icon" href="/favicon.ico" />
13-
{assets}
14-
</head>
15-
<body>
16-
<div id="app">{children}</div>
17-
{scripts}
18-
</body>
19-
</html>
20-
)}
21-
/>
6+
<StartServer
7+
document={({ assets, children, scripts }) => (
8+
<html {...getHtmlProps()}>
9+
<head>
10+
<meta charset="utf-8" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1" />
12+
<link rel="icon" href="/favicon.ico" />
13+
{assets}
14+
</head>
15+
<body>
16+
<div id="app">{children}</div>
17+
{scripts}
18+
</body>
19+
</html>
20+
)}
21+
/>
2222
));

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
"devDependencies": {
5151
"@biomejs/biome": "^1.9.4",
5252
"@octokit/core": "^6.1.4",
53-
"solid-js": "^1.9.5"
53+
"glob": "^11.0.3",
54+
"solid-js": "^1.9.5",
55+
"tsx": "^4.20.3"
5456
},
5557
"peerDependencies": {
5658
"solid-js": "^1.9.1"

0 commit comments

Comments
 (0)