@alydev/themes
v2.1.1
Published
Optional CSS-variable themes for Calix. No JavaScript, no Tailwind.
Maintainers
Readme
@alydev/themes
Optional, framework-free stylesheets for Calix. Pure CSS driven by custom properties — no JavaScript, no Tailwind, no shadcn.
pnpm add @alydev/themesimport "@alydev/themes/default.css"; // full-featured default theme
// or
import "@alydev/themes/minimal.css"; // lean, structural styling onlyImport one file once at your application's CSS entry point—src/main.tsx in
Vite, app/layout.tsx in Next.js App Router, or Remix's links export. See
the exact snippets in Framework setup.
Skip both imports when styling Calix yourself.
Theme by overriding variables (see tokens.css):
:root {
--calix-accent: #6d28d9;
--calix-surface: #17171d;
--calix-text: #f4f4f5;
--calix-radius: 10px;
--calix-font: "Vazirmatn", system-ui, sans-serif;
}Useful routine tokens: --calix-accent, --calix-on-accent,
--calix-surface, --calix-surface-raised, --calix-text, --calix-muted,
--calix-border, --calix-hover, --calix-radius, --calix-radius-sm,
--calix-cell-size, --calix-gap, --calix-font, and --calix-transition.
State and layout tokens: --calix-focus-ring, --calix-disabled-opacity,
--calix-weekend, --calix-outside-month, --calix-selected-shadow,
--calix-calendar-padding, and --calix-popover-z-index.
Built-in components are dark by default. Pass theme="light" to Calendar,
DatePicker, or TimeField to use the white theme. A high-contrast variant
activates under prefers-contrast: more.
