1. 基本カラーネーム
Text
color: red;
2. 拡張カラーネーム
Text
background-color: tomato;
3. 16進数コード (6桁)
#3B82F6
color: #3b82f6;
4. 16進数コード (3桁短縮)
#F00
color: #f00;
5. 16進数 + 不透明度 (8桁)
50% Alpha
background: #3b82f680;
6. RGB関数
rgb()
color: rgb(34, 197, 94);
7. RGBA関数 (不透明度)
Alpha 0.4
background: rgba(34,197,94,0.4);
8. HSL関数
hsl()
color: hsl(217, 91%, 60%);
9. HSLA関数 (不透明度付き)
Alpha 0.5
background: hsla(217,91%,60%,0.5);
10. CSS変数 (Variables)
--main-color
color: var(--main-color);
11. 線形グラデーション (Linear)
Linear
background: linear-gradient(...);
12. 円形グラデーション (Radial)
Radial
background: radial-gradient(...);
13. 文字へのグラデーション
★GRADIENT TEXT★
-webkit-background-clip: text;
14. 完全透過キーワード
Transparent
background-color: transparent;
15. 親色の継承 (Inherit)
Inherit Color
border-color: inherit;
16. 現在の文字色と連動
currentColor
border-color: currentColor;
17. 影の色 (Box Shadow)
Shadow Color
box-shadow: 0 0 10px #a855f7;
18. 文字の影 (Text Shadow)
Glow / Shadow
text-shadow: 2px 2px 0 #000;
19. 輪郭・外枠の色 (Outline)
Outline
outline: 2px solid #eab308;
20. SVGアイコン等の色 (Fill)
▼ SVG Fill
fill: #10b981;