Skip to content

Next Js color mode only using react hook and theme controller ๐ŸŒ™

Notifications You must be signed in to change notification settings

angelhtml/NextJs_color-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Next js color mode

Theme controller

you customize the theme from this jsx component

~/themes/themes.jsx

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"
        }
    }
}