[WordPress] 外掛分享: Image to Design Tokens

首頁外掛目錄 › Image to Design Tokens
全新外掛
安裝啟用
尚無評分
57 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-01-18

內容簡介

<h3>總結:</h3>
<p>Image to Design Tokens 是專為設計師和開發人員設計的隱私導向工具,可從圖像中提取色彩調色板並生成設計系統令牌。</p>

<h3>問題與答案:</h3>
<ul>
<li>
<strong>問題:</strong>Image to Design Tokens 的主要特點是什麼?
<br>
<strong>答案:</strong>它使用瀏覽器本地處理圖像,從不將圖像上傳到伺服器。能生成淺色和深色模式下的設計令牌,並提供對比度指標。同時使用中間切割算法提取顏色和保留飽和的突出顏色。
</li>
<li>
<strong>問題:</strong>Image to Design Tokens 的工作原理是什麼?
<br>
<strong>答案:</strong>使用者可上傳或拖放圖像(如截圖、商標或視覺參考),該工具使用中間切割算法提取主導顏色,並為淺色和深色模式生成設計令牌。最後可複製生成的 CSS 自定義屬性。
</li>
<li>
<strong>問題:</strong>生成的設計令牌包括哪些項目?
<br>
<strong>答案:</strong>包括背景(bg)、表面、邊框、文字、標題、淡化文字、主要(強調或品牌顏色)和主要上(顯示在主要顏色上的文字)。
</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Image to Design Tokens」→ 直接安裝(推薦)

原文外掛簡介

Image to Design Tokens is a privacy-focused tool for designers and developers who need to extract color palettes from images and generate design system tokens.
Key Features

Browser-Only Processing – Images are processed locally in the browser using the Canvas API and are never uploaded to a server.
Light and Dark Mode Tokens – Generates design tokens for both light and dark modes with contrast ratio indicators.
Color Extraction – Uses the median cut algorithm with a bias toward preserving saturated accent colors.
Live Preview – Preview how generated tokens appear in a sample user interface before exporting.
Contrast Checking – Displays WCAG contrast ratio calculations to help evaluate accessibility.
Export – Copy generated CSS custom properties to the clipboard.
Save Palettes – Store up to 5 palettes locally using browser localStorage.

How It Works

Upload or drag-and-drop an image (such as a screenshot, logo, or visual reference)
The tool extracts dominant colors using the median cut algorithm
Design tokens are generated for both light and dark modes
Review contrast ratio indicators and preview the tokens
Copy the generated CSS custom properties

Generated Tokens

Background (bg)
Surface
Border
Text
Heading
Muted Text
Primary (accent or brand color)
On Primary (text displayed on the primary color)

Additional Information
This plugin can be used alongside other tools. For example, Promptless WP can consume exported design tokens as part of a broader page layout workflow.

延伸相關外掛

文章
Filter
Mastodon