Next Pages Template

screenshot of Next Pages Template
nextjs
react

Next Pages Template

Mantine + Next.js pages router template

Overview

The Mantine Next Template is a starter template that allows users to quickly set up a project using Mantine and Next.js. With just a few button clicks, users can create a new repository with the necessary Mantine packages already included. The template comes with a range of features including server-side rendering setup, color scheme management, Storybook integration, Jest testing, ESLint setup, and various npm scripts.

Features

  • Server side rendering setup for Mantine: The template includes the necessary setup to enable server side rendering with Mantine and Next.js.
  • Color scheme stored in cookie: The color scheme chosen by the user is stored in a cookie to ensure consistency even after hydration.
  • Storybook with color scheme toggle: The template includes Storybook integration and a color scheme toggle feature, allowing developers to preview and showcase components in different color schemes.
  • Jest with react testing library: Jest and the react testing library are set up in the template, enabling developers to easily write and run unit tests for their Mantine components.
  • ESLint setup with eslint-config-mantine: The template includes ESLint setup using the eslint-config-mantine package, ensuring consistent code quality and adherence to Mantine coding standards.
  • npm scripts: The template comes with various npm scripts that perform tasks such as running the development server, building the application for production, exporting the static website, analyzing the application bundle, and running tests.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

Storybook

Storybook is a tool for developing and testing UI components in isolation. It provides a sandbox environment where you can experiment with different props and states to see how your component responds.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.