Skip to content

Instantly share code, notes, and snippets.

@infomiho
Created September 2, 2023 21:46
Show Gist options
  • Save infomiho/e0665c2cfc489142e875ad7cc55221c3 to your computer and use it in GitHub Desktop.
Save infomiho/e0665c2cfc489142e875ad7cc55221c3 to your computer and use it in GitHub Desktop.
Wasp + DaisyUI setup
@tailwind base;
@tailwind components;
@tailwind utilities;
app daisyUiTest {
wasp: {
version: "^0.11.3"
},
title: "daisy-ui-test",
dependencies: [
("daisyui", "^3.6.4")
]
}
route RootRoute { path: "/", to: MainPage }
page MainPage {
component: import Main from "@client/MainPage.jsx"
}
import './Main.css'
const MainPage = () => {
return (
<div className="flex flex-col items-center justify-center h-screen bg-gray-100">
<h1 className="text-3xl bold">Hello</h1>
<button class="btn">This works</button>
</div>
)
}
export default MainPage
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [ "./src/**/*.{js,jsx,ts,tsx}" ],
theme: {
extend: {},
},
plugins: [require("daisyui")],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment