Created
September 2, 2023 21:46
-
-
Save infomiho/e0665c2cfc489142e875ad7cc55221c3 to your computer and use it in GitHub Desktop.
Wasp + DaisyUI setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: { | |
tailwindcss: {}, | |
autoprefixer: {}, | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @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