Components
All the React components are made with TailwindCSS.
Themes
By default, 2 themes are enabled: light & dark. It will automatically switch based on the user’s preferences.
To change or add themes:
- Add/remove themes in
tailwind.config.js
>daisyui.themes
(keep at least one) - Add the theme name to the
config.js
file intheme
&main
colors: {
theme: "YOUR_THEME",
main: themes[`[data-theme=YOUR_THEME]`]["primary"],
}
Here is a list of the 20+ available themes
Custom components
All custom-made components are inside the /components
folder of your FastSaas repo. Each component is documented in details in the code and in this documentation.
Example: This is a Hero component.
daisyUI components
FastSaas uses daisyUI as a UI kit for simple components like buttons, inputs, tabs, etc. Here are all the daisyUI components.
Example: Add className: "btn btn-primary"
to display this button:
Animations
Discover some cool animations in the config.tailwind.css
file:
className: "animate-opacity"
className: "animate-wiggle"
className: "animate-appearFromRight"
className: "animate-popup"
Custom font
-
Head over the the
layout.js
file in/app
-
Import your favorite font from next/font/google
import { Bricolage_Grotesque } from "next/font/google"
; -
Swap the current font in use
const font = Bricolage_Grotesque({ subsets: ["latin"] })
;