- Tailwind 4
- Theme toggle with
useContext()hook
npm i- import
tailwindcssinsidevite.config.js - Import tailwind inside
index.css
Dependencies:
lucide-reacticonstailwind-mergecreates util function to combine class names in tailwindradix-ui/react-toastfor toasterclsxrelated to radix ui
min-h-screen sets min-height: 100vh
max-sm:hidden hidden when <= 640px
inset-0 shorthand for top right bottom left
z-0 => z-index 0
hsl colors: hue saturation and lightness
- Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue.
- Saturation is a percentage value. 0% means a shade of gray, and 100% is the full color.
- Lightness is also a percentage. 0% is black, 50% is neither light or dark, 100% is white