| id | css_architecture |
| name | css_architecture |
| description | Tailwind、Bootstrap、SCSS、Vanilla CSS 方案指南 |
🎨 CSS 架構技能
CSS 方案選擇
快速選擇
| 需求 | 推薦 |
|---|
| 快速開發 | Tailwind / Bootstrap |
| 客製化設計 | Tailwind / SCSS |
| 標準元件 | Bootstrap |
| 設計系統 | SCSS / CSS Variables |
| 輕量 | Vanilla CSS |
CSS 架構方法論
BEM (Block Element Modifier)
.card { }
.card__title { }
.card__body { }
.card--featured { }
.card__title--large { }
SMACSS (分類)
base/ 基礎樣式
layout/ 佈局
modules/ 模組/元件
state/ 狀態
theme/ 主題
CSS Variables 設計系統
:root {
--color-primary: #3b82f6;
--color-secondary: #64748b;
--font-sans: 'Inter', sans-serif;
--text-base: 1rem;
--space-4: 1rem;
--space-8: 2rem;
--radius-md: 8px;
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}
響應式設計
.container {
padding: 1rem;
}
@media (min-width: 768px) {
.container {
padding: 2rem;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
margin: 0 auto;
}
}
相關技能