Skip to content

pantoken-root / shadcn

shadcn ​

Compatibility ​

Target: shadcn/ui CSS variables. Current format: Tailwind 4.3.3 compiles the Pantoken primary theme alias. Minimum host version: 4.3.3. Tested through 4.3.3. Newer releases require review.

Full compatibility matrix

实验性

@pantoken/shadcn — 使用 Instructure 设计代币的 shadcn/ui 主题。

toShadcnCss 生成一个 :root 块,将 shadcn 的 CSS 变量指向 var(--instui-*)。 将其与 @pantoken/css 一起放置(后者定义自定义属性),shadcn 组件即可采用 Instructure 的外观。图标会自动对齐 —— shadcn 和 Instructure 都使用 Lucide。

接口 ​

变量 ​

函数 ​

引用 ​

default ​

重命名并重新导出 shadcnCss