Light and dark toggle
A button that switches the page between light and dark.
A button that switches the page between light and dark.
npm install @mantine/core @tabler/icons-react clsx
First time with Mantine UI? Set it up once.
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: Mantine's PostCSS shorthands (@mixin, $mantine-breakpoint-*) are written out as plain CSS, so it runs without postcss-preset-mantine.