尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Designed with intention.
Calarys is a small, curated library of premium, interaction-focused React components, paired with a documentation site where every component can be explored, tuned live and copied as code.
Each component is built around one carefully crafted interaction — a button that is pulled toward the cursor, a card lit by a spotlight that follows the pointer, a toggle with a tactile, springy thumb — and exposes its look and feel through a small set of typed props.
| Component | Category | Description |
|---|---|---|
MagneticButton | buttons | A button that is magnetically attracted to the cursor within a configurable radius. |
SpotlightCard | cards | A card with a soft radial spotlight that follows the pointer. |
Toggle | controls | An accessible switch (native checkbox) with smooth transitions, three sizes and custom colors. |
See packages/ui/README.md for the full props reference.
[email protected])calarys/
├── apps/
│ └── docs/ # @calarys/docs — Next.js site: landing, component explorer, live playground
├── packages/
│ └── ui/ # @calarys/ui — the component library (source-only TypeScript package)
├── package.json # root scripts
└── pnpm-workspace.yaml
Requirements: Node.js 20+ and pnpm 10 (corepack enable picks up the pinned version).
pnpm install
pnpm dev # start the docs site at http://localhost:3000
| Script | What it does |
|---|---|
pnpm dev | Runs the docs site in development mode. |
pnpm build | Builds the docs site for production. |
pnpm lint | Lints every workspace package with ESLint. |
pnpm typecheck | Type-checks every workspace package. |
pnpm test | Runs the Vitest suites of every workspace package. |
@calarys/uiThe package currently lives inside this workspace and is consumed as source (no build step). Add it as a workspace dependency, import the shared tokens once, then use the components:
// app/layout.tsx
import "@calarys/ui/styles.css";
import { MagneticButton, SpotlightCard, Toggle } from "@calarys/ui";
<MagneticButton radius={140} strength={0.35}>Get started</MagneticButton>
<SpotlightCard spotlightColor="#fff3c4" shadow>
<h3>Timeless design</h3>
</SpotlightCard>
<Toggle size="lg" defaultChecked onChange={(checked) => console.log(checked)} />
CONTRIBUTING.md — workflow and step-by-step guide for adding a componentpackages/ui/README.md — component API referenceapps/docs/README.md — how the docs site, registry and playground workCLAUDE.md — guidance for AI coding agents working in this repo