react-switch
next-themes
react-switch | next-themes | |
---|---|---|
2 | 22 | |
1,318 | 4,418 | |
- | - | |
0.0 | 7.8 | |
5 months ago | 8 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-switch
-
react-switch VS react-custom-switcher - a user suggested alternative
2 projects | 7 Oct 2023
-
Dark Mode in Next.js with Tailwind CSS Typography
Next, let's create a switch for toggling the themes. You can easily create a toggle switch component using React Switch.
next-themes
-
Task tracker application using NextJS and SurrealDB
Next themes is used for themes switching
-
Introducing Shadcn UI: A reusable UI component collection
Shadcn UI supports dark mode for Next.js and Vite applications. For Next.js applications, Shadcn UI uses next-themes for the dark mode toggling functionality. When a user toggles between light and dark mode, the application switches between the light and dark theme tokens.
-
Implementing Tailwind CSS Dark Mode Toggle with No Flicker
Let’s start with Next.js. We’ll use the next-themes package, which allows us to handle dark mode very easily without worrying about blocking page rendering to check user preferences.
-
How to Build a Developer Blog using Next JS 13 and Contentlayer - Part three
"use client"; import React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; import { ThemeProviderProps } from "next-themes/dist/types"; // https://github.com/pacocoursey/next-themes/issues/152#issuecomment-1364280564 // needs to be called NextThemesProvider not ThemesProvider // not sure why export function Providers(props: ThemeProviderProps) { return ; }
-
Step-By-Step Guide to Adding Dark Mode and Multiple Themes to Your Next.js App
Next themes
- NextJs Portfolio
- How to avoid UI flickering with darkmode ?
-
No-brainer Dark Mode for Next.js
It is that simple. It has 74,528 weekly npm downloads and if it's good enough for @leeerob, it's good for me too. Get creative with your loading state and toggle button (or not && KISS). Check out their next-themes GH repo for more info.
-
Mantine 5.0 is out – 140+ hooks and components with dark theme support
also: https://github.com/pacocoursey/next-themes
-
Help me reach Lighthouse 100 performance score
i usually use https://github.com/pacocoursey/next-themes when dealing with themes, it doesnt flash
What are some alternatives?
react-toggle - Elegant, accessible toggle component for React. Also a glorified checkbox.
Next.js - The React Framework
react-ios-switch - React switch component https://clari.github.io/react-ios-switch
tailwindcss-theme-swapper - A helper for getting tailwind values into css custom properties and switching them between media queries and classes. You can try it out here: https://play.tailwindcss.com/Gt21fePNvv
nextjs-mdx-food-blog - A food blog built with Next.js, MDX, Tailwind CSS, and TypeScript
tailwind-with-css-variables - Repo for the Blog 'Using CSS variables with TailwindCSS'
Tailwind CSS - A utility-first CSS framework for rapid UI development.
use-dark-mode - A custom React Hook to help you implement a "dark mode" component.
darkmode-nextjs-tailwind
react-custom-switcher - Multi-option Switch/Toggle component for React with dragging, snap and customisable UI.
leerob.io - ✨ My portfolio built with Next.js, Tailwind, and Vercel.