Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/angelhtml/nextjs_color-mode

Next Js color mode only using react hook and theme controller 🌙
https://github.com/angelhtml/nextjs_color-mode

angelcodestyle css cssmodules dark-mode jsx nextjs nextjs-template purecss react-hooks reactjs theme themes toggle-switch ui ui-components

Last synced: 28 days ago
JSON representation

Next Js color mode only using react hook and theme controller 🌙

Awesome Lists containing this project

README

        

Next js color mode





Theme controller


you customize the theme from this jsx component

~/themes/themes.jsx

``` Javascript

exports.themes = {
primery: {
bg: {
dark: "#330038",
light: "#fff"
},
color: {
dark: "#fff",
light: "black"
},
border: {
dark: "#5f0069",
light: "#b600b6"
}
},
secondary: {
bg: {
dark: "purple",
light: "#f0f"
},
color: {
dark: "white",
light: "silver"
}
}
}
```