尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A themeable base layer for a content-heavy clinical SaaS product. Built on shadcn
(the luma style, which runs on Base UI, not Radix) with Tailwind v4 and Next.js.
Ships 62 components with every variant, 24 accent palettes, 7 neutral palettes, 10 typefaces, and 6,031 Hugeicons — all switchable at runtime.
This repository is the library and its gallery, nothing else. It is the starting point a product gets built on top of.
npm install
npm run dev # http://localhost:3000
Other scripts: npm run build, npm run typecheck, npm run format.
| Route | Contents |
|---|---|
/ | Overview, principles, component index |
/foundations | Color, typography, radius, spacing, elevation, icon sizes |
/icons | Stroke weights, sizes, the design-system set, full icon search |
/components/[slug] | One page per component: description, guidance, every variant |
Anything reusable lives in src/design-system — that is the single source of
truth. src/app/(design-system) is only the gallery that documents it.
src/
design-system/ The library
ui/ The 62 shadcn components
examples/ Official shadcn demos, one per component
providers/ Theme + design-system state
tokens/ themes.ts, fonts.ts (themes.ts is GENERATED)
icons.tsx GENERATED Hugeicons wrappers
component-icons.ts GENERATED slug -> icon map
theme-customizer.tsx The Customize panel
app/
(design-system)/ The gallery — /, /foundations, /icons, /components
layout.tsx Root: fonts + providers only
globals.css Hand-written tokens
themes.css GENERATED palettes — do not edit
components/ Gallery chrome only (the sidebar shell)
lib/ examples.ts (gallery catalogue), brand.ts, utils.ts
hooks/
scripts/ Generators
(design-system) is a route group: the parentheses give the gallery its own
layout without affecting URLs. Add a sibling group — (app), say — for
product screens and it gets its own chrome while the gallery keeps its sidebar.
| Building… | Put it in |
|---|---|
| A component the product could reuse | src/design-system/ui/ |
| A product screen | a new route group under src/app/ |
| A new design token | src/app/globals.css |
| Docs about the system | src/app/(design-system)/ |
The product name lives in one place, src/lib/brand.ts. Change BRAND_NAME
there and every title and header follows.
Served from public/brand/ — favicon/ (light/dark at 16/32/48/180 plus the
512 marks) and logo/ (the lockup in both tones).
The product name is one constant, BRAND_NAME in src/lib/brand.ts,
alongside LOGO with the two lockup paths. Nothing hardcodes the name. The
favicon is declared through Next's metadata API in src/app/layout.tsx;
src/app/favicon.ico is a multi-resolution fallback built from the light mark.
The current artwork is the teal "Human / Optimization Lab" lockup, supplied as a
2028×539 PNG on transparent. Every file under public/brand/ is cut from it:
Files are prefixed hol-. When the artwork changes, give the files new names
rather than overwriting — Next's image optimizer and browsers cache by URL, so
same-named replacements keep showing the old logo.
Two favicon variants ship and the browser picks with prefers-color-scheme.
The header does the same swap in CSS, because next-themes toggles a class rather
than following the OS setting.
Everything is driven by CSS variables on <html>, set by
src/design-system/providers/design-system-provider.tsx and persisted to localStorage:
data-base · data-accent · data-font · data-heading · data-radius · data-icon-stroke
Base palettes and accent palettes touch disjoint variables, which is why they compose independently instead of needing one block per combination.
--accent is not a hover tint here. In this preset it equals --primary
(the full brand color). Use bg-surface-hover / bg-surface-selected instead.--primary is darker than light-mode. It fails contrast as text
on dark surfaces, so accents use --primary-tint, which resolves to --chart-1
(the light end of the accent ramp) in dark mode.--primary-surface.`bg-${x}`). Always write
literal class strings.Every page carries Comment Kit: a button in the
bottom-left corner, pins on the element being discussed, threads in a sidebar.
Comments are shared through Supabase (dc_comments table, comment-images
bucket, from comment-kit/schema.sql).
public/comment-kit/; mounted in src/app/layout.tsx.NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY.
Without them it still works, storing comments in the browser only.?comments=off hides it (sticky); ?comments=on brings it back.These are produced by scripts/ and should not be hand-edited:
| Script | Output |
|---|---|
gen-all.mjs | scripts/.cache/themes-all.json (calls the shadcn registry) |
gen-css.mjs | src/app/themes.css, src/design-system/tokens/themes.ts |
gen-component-icons.mjs | src/design-system/component-icons.ts |
Run with node scripts/<name>.mjs. Paths resolve relative to the repo, so the
project can live anywhere.
src/design-system/examples/example.tsx is a local gallery-friendly rewrite. Any
npx shadcn add -o reverts it to the registry's full-page version — restore it.shadcn add -o also reverts the spinner.tsx type fix and re-adds
strokeWidth={2} to icons, which overrides the global stroke token. Strip both.form is an empty stub in this style; field replaces it.react/display-name rule crashes on
ESLint 10. Inherited from the scaffold; does not affect dev or build.