Framework setup
Load Calix styles in Vite, Next.js App Router, or Remix.
Use this page after installation, before copying a picker. Choose one style route: the default theme, the minimal theme, or no Calix theme. Do not import both CSS files.
Vite
Put one theme import in your application entry file, commonly src/main.tsx:
Use @alydev/themes/minimal.css instead for structural styles only. Omit this
line entirely if your application supplies the styles.
Next.js App Router
Import one theme in app/layout.tsx, so it is loaded once for the application:
The component that renders DatePicker, Calendar, or a Calix hook needs a
"use client" directive. Your root layout does not.
Remix
Import the CSS URL and expose it from app/root.tsx through Remix links:
Replace default.css with minimal.css for the structural theme. Omit both the
import and links export when styling Calix yourself.
Styles or no styles
The theme package is optional. It provides CSS only—no provider, setup function,
or JavaScript runtime is required. If you skip it, use Theming
to target stable class names and data-* state attributes.
Next: copy your first picker.