#Tailwind v4 on TanStack Start
1 messages · Page 1 of 1 (latest)
@agile jasper you need to specifiy the root for tailwind to scan your classes, in your styles.css
@import "tailwindcss" source("../")
since i didn't know this; sharing - https://tailwindcss.com/docs/detecting-classes-in-source-files#setting-your-base-path
awesome thank you guys @gleaming girder @vivid summit ♥️
thanks, I found another solution :
// app/routes/__root.tsx
import appCss from "../styles/styles.css?url"
export const Route = createRootRoute({
head: () => ({
meta: [
{
charSet: 'utf-8',
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
{
title: 'TanStack Start Starter',
},
],
links: [
{ rel: "stylesheet", href: appCss },
],
}),
component: RootComponent,
notFoundComponent: () => <div>Not Found</div>,
})