Skip to content

Commit

Permalink
add tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 20, 2024
1 parent d2db10d commit f67e5b7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tanstack-start/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {createRootRoute, Outlet, ScrollRestoration} from '@tanstack/react-router
import {TanStackRouterDevtools} from '@tanstack/router-devtools'
import {Meta, Scripts} from '@tanstack/start'
import type {ReactNode} from 'react'
import appCss from '../styles/app.css?url'

export const Route = createRootRoute({
head: () => ({
Expand All @@ -16,11 +17,10 @@ export const Route = createRootRoute({
{
title: 'TanStack Start Starter',
},
{
rel: 'icon',
type: 'image/png',
href: '/favicon.png',
},
],
links: [
{rel: 'stylesheet', href: appCss},
{rel: 'icon', type: 'image/png', href: '/favicon.png'},
],
}),
component: RootComponent,
Expand Down
3 changes: 3 additions & 0 deletions tanstack-start/app/styles/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 3 additions & 0 deletions tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3"
}
}
3 changes: 3 additions & 0 deletions tanstack-start/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('tailwindcss'), require('autoprefixer')],
}
4 changes: 4 additions & 0 deletions tanstack-start/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{js,ts,jsx,tsx}'],
}

0 comments on commit f67e5b7

Please sign in to comment.