Skip to content

Commit 6686a0b

Browse files
committed
add tw to bare
1 parent bea2304 commit 6686a0b

File tree

7 files changed

+177
-83
lines changed

7 files changed

+177
-83
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { defineConfig } from '@tanstack/solid-start/config'
22
import tsConfigPaths from 'vite-tsconfig-paths'
3+
import tailwindcss from '@tailwindcss/vite'
34

45
export default defineConfig({
56
vite: {
67
plugins: [
78
tsConfigPaths({
89
projects: ['./tsconfig.json'],
910
}),
11+
tailwindcss(),
1012
],
1113
},
1214
})

examples/solid/start-bare/app/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const Route = createFileRoute('/')({
77
function RouteComponent() {
88
return (
99
<main>
10-
<h1>Hello world!</h1>
11-
<Counter />
10+
<h1 class="text-3xl text-blue-500 mb-5">Hello world!</h1>
11+
<Counter />
1212
</main>
1313
)
1414
}
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

5-
@layer base {
6-
html {
7-
color-scheme: light dark;
8-
}
9-
10-
* {
11-
@apply border-gray-200 dark:border-gray-800;
12-
}
3+
body {
4+
font-family:
5+
Gordita, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
6+
sans-serif;
7+
}
138

14-
html,
15-
body {
16-
@apply text-gray-900 bg-gray-50 dark:bg-gray-950 dark:text-gray-200;
17-
}
9+
a {
10+
margin-right: 1rem;
11+
}
1812

19-
.using-mouse * {
20-
outline: none !important;
21-
}
13+
main {
14+
text-align: center;
15+
padding: 1em;
16+
margin: 0 auto;
2217
}

examples/solid/start-bare/package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
"sideEffects": false,
55
"type": "module",
66
"scripts": {
7-
"dev": "vinxi dev --port 3000",
8-
"dev:e2e": "vinxi dev",
9-
"build": "vinxi build && tsc --noEmit",
10-
"start": "vinxi start",
11-
"test:e2e": "playwright test --project=chromium"
7+
"dev": "vinxi dev",
8+
"build": "vinxi build",
9+
"start": "vinxi start"
1210
},
1311
"dependencies": {
1412
"@tanstack/solid-router": "workspace:^",
@@ -20,13 +18,10 @@
2018
"zod": "^3.24.1"
2119
},
2220
"devDependencies": {
23-
"@playwright/test": "^1.50.1",
21+
"@tailwindcss/vite": "^4.0.8",
2422
"@types/node": "^22.10.2",
25-
"@tanstack/router-e2e-utils": "workspace:^",
2623
"vite-plugin-solid": "^2.11.2",
2724
"combinate": "^1.1.11",
28-
"postcss": "^8.5.1",
29-
"autoprefixer": "^10.4.20",
3025
"tailwindcss": "^3.4.17",
3126
"typescript": "^5.7.2",
3227
"vite-tsconfig-paths": "^5.1.4"

examples/solid/start-bare/playwright.config.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

examples/solid/start-bare/postcss.config.mjs

Lines changed: 0 additions & 6 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 156 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)