Next Presets

50+ shadcn/ui color presets with light/dark mode support for React.

@codecanon/next-presets is a React library for managing and switching between 50+ beautiful color presets built on top of shadcn/ui. Each preset defines a complete set of CSS variables for both light and dark mode — background, foreground, primary, accent, muted, sidebar, chart colors, and more.

Highlights

FeatureDetails
Presets50+ built-in themes (violet-bloom, catppuccin, cyberpunk, …)
Dark / LightFull dual-mode per preset, system preference detection
PersistencelocalStorage with cross-tab sync
Picker UISlide-out sheet with search and arrow-key navigation
PreviewLive mini-app preview card per preset
Custom presetsExtend with your own via @variant preset-light / preset-dark
Peer depsReact 19, next-themes

Entry points

ImportContents
@codecanon/next-presetsProviders, hooks, components, constants, types
@codecanon/next-presets/default/<id>.cssRequired first. Sets default :root variables (e.g. default/nuteral.css)
@codecanon/next-presets/styles.cssRequired second. All-in-one components + 50+ presets scoped to [data-preset="..."]
@codecanon/next-presets/presets.cssOptional. Import all 50+ preset styles = scoped to [data-preset="..."]
@codecanon/next-presets/components.cssOptional. Import ui specific styles
@codecanon/next-presets/presets/<id>.cssOptional. Import specific presets (e.g. presets/nuteral.css)
@codecanon/next-presets/custom-variants.css@variant directives for writing custom presets

Quick navigation

On this page