8000 GitHub - bonniss/refine-mantine-v7: ❀️‍πŸ”₯ Refine + Mantine v7 starter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bonniss/refine-mantine-v7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

mantine pokemon

❀️‍πŸ”₯ Refine + Mantine v7

Refine's Mantine integration only supports Mantine v5. This template build on top of Mantine v7 + Vite template, adding:

  • Headless Refine v4 integration (based on this tutorial).
  • TailwindCSS v4.
  • Sample resources of blog-post and category.
  • i18n.
  • Notification provider.
  • Dockerfile to deploy via Nginx.

Features

This template comes with the following features:

npm scripts

Build and dev scripts

  • dev – start development server
  • build – build production version of the app
  • preview – locally preview production build

Testing scripts

  • typecheck – checks TypeScript types
  • lint – runs ESLint
  • prettier:check – checks files with Prettier
  • vitest – runs vitest tests
  • vitest:watch – starts vitest watch
  • test – runs vitest, prettier:check, lint and typecheck scripts

Other scripts

  • up:mantine – upgrade Mantine's packages
  • up:refine – upgrade Refine's packages
  • storybook – starts storybook dev server
  • storybook:build – build production storybook bundle to storybook-static
  • prettier:write – formats all files with Prettier

Development

Theming and styling

Mantine@7 offers several approaches of theming and styling. Learn here.

Mantine@7 also offers a system of CSS variables that you can use them in your stylesheets. To get CSS variables autocomplete and PostCSS support, follow here to set up your VS Code.

Last but not least, you have full power of TailwindCSS v4 with dark mode support out of the box.

Change favicon

Favicon and markup for favicon are generated by favicon-generator. To tweak your own image, generate and replace those files:

public/android-icon-36x36.png
public/android-icon-48x48.png
public/android-icon-72x72.png
public/android-icon-96x96.png
public/android-icon-144x144.png
public/android-icon-192x192.png
public/apple-icon-57x57.png
public/apple-icon-60x60.png
public/apple-icon-72x72.png
public/apple-icon-76x76.png
public/apple-icon-114x114.png
public/apple-icon-120x120.png
public/apple-icon-144x144.png
public/apple-icon-152x152.png
public/apple-icon-180x180.png
public/apple-icon-precomposed.png
public/apple-icon.png
public/browserconfig.xml
public/favicon-16x16.png
public/favicon-32x32.png
public/favicon-96x96.png
public/favicon.ico
public/manifest.json
public/ms-icon-70x70.png
public/ms-icon-144x144.png
public/ms-icon-150x150.png
public/ms-icon-310x310.png

TL;DR: Why use TailwindCSS alongside Mantine?

Mantine v7 is leaner, faster, and more focused than ever β€” dropping CSS-in-JS and encouraging a simpler styling approach. It gives you logic-rich, accessible components out of the box, and a solid theme system to build on.

But for many developers, that’s only half the picture.

TailwindCSS fills the gap with lightning-fast layout, responsive utilities, gradients, motion, and fine-grained visual control β€” all without leaving your markup.

Instead of competing, Mantine and Tailwind complement each other beautifully:

  • Use Mantine for structure, accessibility, and interactive components.
  • Use TailwindCSS for layout, styling, and animation.
  • And optionally, reach for motion plugins like tailwindcss-motion to enhance UI transitions β€” no Transition components or CSS keyframes required.

The result? A frontend stack that feels composable, expressive, and fast to work with.

In short: Use Case-to-Tool Matrix

Use Case Best Tool
Complex components (modal, popover, drawer) Mantine
Layout, grid, spacing, flex Tailwind
Fast prototyping or tweaking spacing Tailwind
Form handling & validation Mantine
Typography, hover states, gradients Tailwind
Transitions and motion Tailwind (with plugins)
Marketing pages, hero sections, UI blocks Tailwind UI Libraries (e.g. Preline, HyperUI, Sailboat), ui.mantine.dev
Dashboards & scaffolding layouts Tailwind UI Libraries (e.g. Meraki, Flowbite, Flyon), ui.mantine.dev

🧱 Layout & Spacing

Feature Mantine v7 TailwindCSS
Horizontal layout <Group /> flex items-center space-x-2
Vertical stack <Stack /> flex flex-col space-y-4
Responsive layout Manual media queries in CSS sm:, md:, lg: responsive prefixes
Custom spacing Theme-based spacing tokens p-4, gap-6, m-2 directly in JSX
Grid system <Grid />, <Col /> grid grid-cols-3 gap-4

πŸ’‘ For layout + spacing, Tailwind is faster and more expressive β€” especially for prototyping.

🧾 Typography & Text

Feature Mantine v7 TailwindCSS
Headings (<Title />) Props like order={2} text-2xl font-bold
Body text (<Text />) Theme-based tokens text-base text-gray-700
Longform / markdown content TypographyStylesProvider @tailwind/typography β†’ prose classes

🧠 Tailwind gives you atomic control, Mantine gives you semantic abstraction β€” mix as needed.

🎨 Styling & Gradients

Feature Mantine v7 TailwindCSS
Gradient backgrounds style={{ backgroundImage: ... }} bg-gradient-to-r from-pink-500 to-purple-500
Gradient text <Text variant="gradient" /> bg-clip-text text-transparent
Hover/focus states Use classNames + custom CSS hover:bg-blue-600 focus:ring
Rounded corners radius="md" or CSS Modules rounded-md, rounded-full
Shadow/elevation Props or CSS Modules shadow, shadow-lg, drop-shadow-sm

🎯 Tailwind gives you instant visual feedback, Mantine gives you theme safety.

πŸ“± Responsive Design

Feature Mantine v7 TailwindCSS
Breakpoints theme.breakpoints.md, etc. sm:, md:, lg: utilities
Responsive spacing Requires manual CSS p-4 md:p-8 lg:p-12
Show/hide on screen sizes Requires logic or MediaQuery hidden md:block, lg:flex
Adaptive typography Manual overrides text-sm md:text-base lg:text-lg

⚑ Tailwind makes responsiveness a breeze β€” especially when you don’t want to open a CSS file.

πŸŒ€ Animation & Motion

Feature Mantine v7 Tailwind + Plugins
Basic transitions <Transition />, <Collapse /> transition, duration-300, ease-in-out
Preset animations N/A (manual setup) tailwindcss-animate, tailwindcss-motion

πŸŒ€ With motion plugins, Tailwind gives you drop-in animation β€” no JS required.

🌐 The Tailwind Ecosystem: Copy-Paste UI That Complements Mantine

When it comes to layout, dashboards, and presentational UI, Tailwind’s ecosystem delivers fast, composable building blocks. Here are some free or freemium Tailwind UI libraries offering ready-to-use components:

Library What You Get
Preline UI Layouts, navbars, modals, responsive grids
HyperUI E-commerce, auth pages, clean sections
Meraki UI Dashboards, cards, headers, dark mode support
Flowbite Rich component set with optional JS (e.g. tabs)
Flyon UI Clean components with minimalist design
Sailboat UI Buttons, forms, cards, alerts β€” copy and paste
0