Opinionated design system for React, based on Chakra UI + Next.js, written in TypeScript.
This product is a theme designed for Next.js apps. It provides a default theme with semantic tokens and is 100% TypeScript, transpiled to ESM (requires Next.js 12+). It includes various components such as links, cards, SVG, redirects, and NoSSR. The theme also offers installation instructions and customization options.
To install the theme in your Next.js app, follow these steps:
In your Next.js app, run the following command to install the theme:
npm install nextjs-theme
Use the theme tools to resolve theme tokens across color modes. You can use the useColorModeToken function for this:
import { useColorModeToken } from "nextjs-theme";
// Usage example
const [bgColor, textColor] = useColorModeToken("colors:body", "text:dim");
The theme provides the following semantic tokens:
The Next.js theme is a customizable and feature-rich theme for use in Next.js apps. It provides a default theme with semantic tokens, TypeScript support, and various components such as links, cards, SVG, redirects, and NoSSR. The theme can be easily installed and customized to fit the needs of your app.