The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
import { createContext } from "react"
export type ThemeOption = "light" | "dark" | "system"
export type ThemeValue = "light" | "dark"
type ThemeContextValue = {
theme: ThemeOption
setTheme: (theme: ThemeOption) => void
}
export const ThemeContext = createContext<ThemeContextValue | null>(null)