Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snelsi/nextjs-radix-themes-tailwind-template

✨ Minimalistic Next.js + Radix Themes + Tailwind CSS template to bootstrap your next project
https://github.com/snelsi/nextjs-radix-themes-tailwind-template

eslint nextjs prettier radix-themes tailwindcss template typescript

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

![Next.js + Radix Themes + Tailwind CSS template](public/cover.jpg)

This is a minimalistic [Next.js](https://nextjs.org/) + [Radix Themes](https://www.radix-ui.com/) 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:

```bash
pnpm install
```

2. Run the development server:

```bash
pnpm dev
```

Open [http://localhost:3000](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:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

#### Radix Themes:

- [Radix Themes Documentation](https://www.radix-ui.com/themes/docs) - learn about Radix UI themes and API.
- [Radix Themes Playground](https://www.radix-ui.com/themes/playground) - an interactive playground of Radix UI themes components.

#### Tailwind CSS:

- [Tailwind CSS Documentation](https://tailwindcss.com/docs) - learn about Tailwind CSS features and API.
- [Tailwind CSS Play](https://play.tailwindcss.com/) - an interactive playground of Tailwind CSS components.

Check out [Next.js GitHub repository](https://github.com/vercel/next.js/) and [Radix Themes GitHub repository](https://github.com/radix-ui/themes) - 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