Skip to content

Commit 2ca59db

Browse files
authored
examples: removes Tailwind from start-bare example (#4809)
The `start-bare` example includes Tailwind with a broken config (missing `tailwindcss()` in vite.config.ts plugins), which contradicts the 'bare' concept. Since `start-tailwind-v4` already provides a properly configured Tailwind example, this PR removes Tailwind from `start-bare` to make it actually bare.
1 parent 57bac25 commit 2ca59db

File tree

10 files changed

+6
-28
lines changed

10 files changed

+6
-28
lines changed

examples/react/start-bare/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
"zod": "^3.24.2"
1818
},
1919
"devDependencies": {
20-
"@tailwindcss/vite": "^4.0.8",
2120
"@types/node": "^22.5.4",
2221
"@types/react": "^19.0.8",
2322
"@types/react-dom": "^19.0.3",
24-
"tailwindcss": "^4.0.8",
2523
"typescript": "^5.7.2",
2624
"vite": "^6.3.5",
2725
"vite-tsconfig-paths": "^5.1.4"

examples/react/start-bare/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
3232
<HeadContent />
3333
</head>
3434
<body>
35-
<div className="p-2 flex gap-2 text-lg">
35+
<div>
3636
<Link to="/">Index</Link>
3737
<Link to="/about">About</Link>
3838
</div>

examples/react/start-bare/src/routes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({
66
function RouteComponent() {
77
return (
88
<main>
9-
<h1 className="text-3xl text-blue-500 mb-5">Hello world!</h1>
9+
<h1>Hello world!</h1>
1010
</main>
1111
)
1212
}

examples/react/start-bare/src/styles/app.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import 'tailwindcss';
2-
31
body {
42
font-family:
53
Gordita, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',

examples/solid/start-bare/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
"zod": "^3.24.2"
1919
},
2020
"devDependencies": {
21-
"@tailwindcss/vite": "^4.0.8",
2221
"@types/node": "^22.10.2",
2322
"vite-plugin-solid": "^2.11.2",
2423
"combinate": "^1.1.11",
25-
"tailwindcss": "^4.0.0",
2624
"typescript": "^5.7.2",
2725
"vite": "^6.3.5",
2826
"vite-tsconfig-paths": "^5.1.4"

examples/solid/start-bare/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const Route = createRootRoute({
1414
function RootDocument({ children }: { children: Solid.JSX.Element }) {
1515
return (
1616
<>
17-
<div class="p-2 flex gap-2 text-lg">
17+
<div>
1818
<Link to="/">Index</Link>
1919
<Link to="/about">About</Link>
2020
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const Route = createFileRoute('/')({
77
function RouteComponent() {
88
return (
99
<main>
10-
<h1 class="text-3xl text-blue-500 mb-5">Hello world!</h1>
10+
<h1>Hello world!</h1>
1111
<Counter />
1212
</main>
1313
)

examples/solid/start-bare/src/styles/app.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import 'tailwindcss';
2-
31
body {
42
font-family:
53
Gordita, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite'
22
import tsConfigPaths from 'vite-tsconfig-paths'
33
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
4-
import tailwindcss from '@tailwindcss/vite'
54

65
export default defineConfig({
76
server: {
@@ -12,6 +11,5 @@ export default defineConfig({
1211
projects: ['./tsconfig.json'],
1312
}),
1413
tanstackStart(),
15-
tailwindcss(),
1614
],
1715
})

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)