snelsi / nextjs-radix-themes-tailwind-template

✨ Minimalistic Next.js + Radix Themes + Tailwind CSS template to bootstrap your next project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js + Radix Themes + Tailwind CSS template

This is a minimalistic Next.js + Radix Themes template to bootstrap your next project with a modern design system.

  • Next.js: A React framework for building production-grade applications.
  • Radix Themes: An open-source component library optimized for fast development, easy maintenance, and accessibility.
  • Tailwind CSS: A utility-first CSS framework for rapidly building custom designs.

Features ✨

  • Uses the latest React 18 version.
  • Out of the box support for TypeScript.
  • next/font: Automatically optimize and load fonts from Google Fonts.
  • next-themes: Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing.
  • Prettier + ESLint preconfigured with all recommended configs / plugins.
  • Husky + Lint-Staged pre-commit hooks to ensure code quality.
  • Extendsthe default tailwind classes with the radix ones using radix-themes-tw.

Getting Started 🚀

  1. Install the dependencies:
pnpm install
  1. Run the development server:
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Learn More 📖

To learn more about technologies used, take a look at the following resources:

Next.js:

Radix Themes:

Tailwind CSS:

Check out Next.js GitHub repository and Radix Themes GitHub repository - your feedback and contributions are welcome!

Tokens and Classes 🎨

This preset overrides the default tailwind classes with the radix ones, except for the space tokens that starts with the rx suffix (for example you can use both px-2 based on tailwind spacing and px-rx-2 based on radix spacing).

For the complete list of tokens check the radix documentation: https://www.radix-ui.com/themes/docs/theme/token-reference

For the tailwind classes check the preset code: https://github.com/viktorbonino/radix-themes-tw/blob/main/src/index.ts

About

✨ Minimalistic Next.js + Radix Themes + Tailwind CSS template to bootstrap your next project


Languages

Language:TypeScript 98.0%Language:CSS 1.7%Language:JavaScript 0.3%