🌑 Text Shadow Generator

📐 計算公式 / 原理
基礎陰影 = 偏移X px 偏移Y px 模糊 px 陰影色;立體與復古預設生成 5 層,第 i 層偏移為 (偏移X × i) px (偏移Y × i) px、模糊不變,按逗號連線;霓虹與輝光預設為 0 0 模糊 / 2×模糊 / 3×模糊 三層同色;描邊預設為 (±1 px, ±1 px) 四個方向各一層;最終輸出 color 與 text-shadow 兩條宣告
按 offset / blur / color 拼裝 text-shadow(支援多層疊加)並即時預覽,用於標題裝飾與網頁視覺增強。

ToolBox

📚 深度解析:文字陰影生成器

💡 常見使用場景

  • 標題描邊。
  • 霓虹字。
  • 水印。
生成發光字

輸入:0 0 8px 青、兩層。

處理:拼 text-shadow。

輸出:CSS 與預覽。

❓ 常見問題(FAQ)

多層順序?
逗號分隔,先畫的後層疊在下。
發光色怎麼選?
用主題色半透明做發光,深淺控制強度,深底上更明顯。
會儲存或上傳我的內容嗎?
結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。

Formula & Standard References

Item Formula / Note Source / Standard
Outline emulation four equal offsets outward approximate a text outline CSS Text Decoration Level 3
Long shadow stacked offsets with increasing distances fake a long shadow CSS Text Decoration Level 3
Legibility heavy shadows overwhelm glyphs and should stay light for body text WCAG 2.2 (1.4.3)
⚠️ 使用說明與注意事項