@istaging/fe-shared-component
v1.2.0
Published
[](https://main--64f8b4a4c0a8a5007b4b4a4c.chromatic.com/) [
- 組件開發 / Component Development: Storybook 9.1.4
- 測試 / Testing: Vitest 3.2.4 with Playwright for E2E testing
- 建置工具 / Build Tool: Vite with Rollup
- 程式碼檢查 / Linting: ESLint 9.33.0 with React and Storybook plugins
- 程式碼格式化 / Code Formatting: Prettier 3.6.2
- 套件管理 / Package Manager: pnpm 10.10.0
- 版本管理 / Version Management: bumpp
- CSS 處理 / CSS Processing: PostCSS with px-to-rem conversion
🚀 快速開始 / Quick Start
📦 安裝組件庫
npm install @istaging/fe-shared-component
# 或
pnpm add @istaging/fe-shared-component🎨 引入樣式
/* Tailwind v4 專案 */
/* 給Tailwind v4解析時使用 */
@import "@istaging/fe-shared-component/foundations/tailwindv4/index.css";
/* 直接使用已編譯好的 global CSS(會在 :root 注入 tokens) */
@import "@istaging/fe-shared-component/foundations/css/index.css";
/* 或:只想在特定區域啟用 iStaging tokens,可使用 scoped 版本 */
/* 這個檔案只會在 .istaging-theme / [data-istaging-theme] 範圍內注入 tokens,避免污染全域 :root */
@import "@istaging/fe-shared-component/foundations/css/scoped.css";// Tailwind v3 或 其他 CSS-in-JS 專案
import "@istaging/fe-shared-component/foundations/colors/js/index.js";🧩 元件使用
import Button from "@istaging/fe-shared-component/components/Button";
function App() {
return (
<div>
<Button variant="solid" size="md">
點擊我
</Button>
</div>
);
}🛠️ 開發指南 / Development Guide
📖 開發指南
🎨 組件規範
🏗️ 專案結構
📦 打包過程
🔨 專案設定與雜項
⚖️ 授權 / License
此專案為 iStaging 內部使用,未經授權不得外傳。
注意 / Note: 此專案仍在積極開發中,API 可能會在正式版發布前有所變更。
