Skip to content
プロジェクト

kevintngo/looseleaf has 748 GitHub stars and 41 forks. GitHot measured +8 stars in 24 hours and +48 in 7 days. Last checked 2026-11-24 22:28 UTC. Last push 2026-11-01.

この数値の測り方

計測したスター増加

24時間
+8
7日間
+48
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

手描き風のshadcn/ui。紙に描いたような見た目の、アクセシビリティに配慮したReactコンポーネントを123個収録し、shadcnレジストリも備えています。

Web・アプリ

Looseleaf

shadcn/ui, drawn by hand.

kevintngo.github.io/looseleaf

Looseleaf

Looseleaf is a React + Tailwind v4 + Radix component library and shadcn registry where every surface is paper and every line is drawn with a pen: clean outlines and solid color, with stickers and stamps when you want them. It keeps shadcn/ui's parts, props and data-slot names, so you can swap it in without touching your JSX. The charm is decoration; the semantics are ordinary Radix.

123 components every shadcn/ui part, from button to sidebar to chart, plus paper objects, marks, stickers, a sketchpad and a chat kit
61 blocks sidebars, logins, sign-ups, dashboards, settings, pricing, chat, notes and landing sections
Art 160 icons, 48 doodles, 88 stickers, badges and stamps, and Stubby in 15 poses, all drawn in code
Kevin Sans one hand-drawn typeface, tuned for three roles: interface text, titles and stamps
Accessible keyboard, visible focus, AA text, 24 px targets, reduced motion, forced colors, RTL and three densities

Install

Add the registry to components.json once:

{
  "registries": { "@looseleaf": "https://kevintngo.github.io/looseleaf/r/{name}.json" }
}

Then add what you need:

npx shadcn@latest add @looseleaf/button
npx shadcn@latest add @looseleaf/login-01
npx shadcn@latest add @looseleaf/looseleaf

The theme brings Kevin Sans with it. To load the font by hand instead:

@import url("https://kevintngo.github.io/looseleaf/fonts/kevin-sans.css");
import { InkProvider } from "@/lib/ink/react"
import { Button } from "@/components/ui/button"

export function App() {
  return (
    <InkProvider>
      <Button>Save changes</Button>
    </InkProvider>
  )
}

Components land in your repo as source (components/ui/*.tsx, lib/ink/*): your code, not a dependency.

Develop

npm install
npm run dev              # the documentation site
npm run build            # static site in dist/
npm test                 # vitest
npm run registry:build   # registry.json and public/r/*.json

Run npm run registry:build after changing a component, so the registry serves the new source. Pushing to main deploys the site to GitHub Pages.

How it works

Everything that is drawn is one <svg data-ink> behind the real DOM label. The drawing is a pure, seeded TypeScript function (src/lib/ink/recipes/<component>-ink.ts) that writes SVG colored by CSS variables, so the same seed draws the same line on the server and in the browser. States are CSS, not React: hover, press and focus reveal layers that were drawn ahead of time. Every color, pen width and density is a token (--ll-*), aliased onto shadcn's semantic variables.

License

MIT, for the code, the art and Kevin Sans. IBM Plex Mono is SIL OFL 1.1.

関連プロジェクトを探す

読み込み中…