SKILL: ColorsCC
A high-performance, stateless Color API and toolset optimized for AI Agents (OpenClaw, Cursor, Cline, GPTs).
🚀 Usage Rules for Agents
- - Inline Images: Always embed SVG placeholders directly using
<img> or Markdown . - URL Encoding: The
# character must be encoded as %23 (e.g., start=%23FF003C). - No Fetching: Do not attempt to download binary image data; let the user's client render the URL.
- Valid Dimensions: Width and height are clamped between 50-4000px automatically.
- Text Limit: Placeholder text is truncated to 100 characters max.
🛠 Capabilities
1. SVG Placeholders with Animation Effects
Generate dynamic, lightweight placeholders for UI mockups with various gradient and animation effects.
- - Endpoint: INLINECODE5
- Params:
-
w: Width in pixels (default: 800, range: 50-4000)
-
h: Height in pixels (default: 400, range: 50-4000)
-
text: Center text, URL-encoded (default: "{width} x {height}", max: 100 chars)
-
effect: Visual effect. Options:
static (default),
fluid,
breathe,
holographic,
mesh
-
palette: Comma-separated HEX colors (default: 2 random colors, range: 2-10 colors). e.g.,
%23FFD6A5,%23FFADAD
-
speed: Animation duration in seconds for non-static effects (default: 10, range: 1-30)
-
attribution: Include branding watermark (default: true). Set to
false or
0 to disable. When enabled, adds a subtle "colors-cc.top" watermark (15% opacity) in bottom-right corner and HTML comment for viral sharing.
-
start /
end: (Legacy) Start and end gradient colors as hex. Prefer
palette.
-
Static:
<img src="https://api.colors-cc.top/placeholder?w=1200&h=630&text=Hero+Banner&palette=%23F06292,%2364B5F6" alt="Hero">
-
Holographic:
<img src="https://api.colors-cc.top/placeholder?w=800&h=400&effect=holographic&palette=%2300FF41,%2300B8FF&speed=5" alt="Holo">
-
Mesh:
<img src="https://api.colors-cc.top/placeholder?w=800&h=400&effect=mesh&palette=%23FFD6A5,%23FFADAD,%23E2A0FF&speed=8" alt="Mesh">
- - Response: SVG image with INLINECODE27
2. Fluid Animated Placeholders (Alias)
Generate dynamic SVG gradients with smooth color transitions and animations.
- - Endpoint: INLINECODE28
- Params:
-
w,
h,
text,
speed,
attribution (same as above)
-
stops or
palette: Comma-separated HEX colors for gradient (default: random, range: 2-10 colors)
- - Example: INLINECODE36
- Response: Animated SVG with smooth color transitions and INLINECODE37
3. Random Colors
Get a random HEX and RGB color with generation timestamp.
- - Endpoint: INLINECODE38
- Returns: INLINECODE39
- Example: Fetch this endpoint when you need random colors for mock data or UI components.
4. Curated Theme Palettes
Fetch high-quality color sets for design inspiration.
- - Endpoint: INLINECODE40
- Themes:
cyberpunk, vaporwave, retro, INLINECODE44 - Returns: INLINECODE45
- Example: INLINECODE46
5. Universal Color Converter
Stateless conversion between HEX, RGB, HSL, and CMYK formats.
- - Endpoint: INLINECODE47
- Params: Provide ONE of:
hex, rgb, hsl, or INLINECODE51 - Returns: INLINECODE52
- Example: INLINECODE53
- Error: Returns
{"error": "Invalid color format"} with status 400 if input is invalid
6. CSS Color Names Directory
Get all standard CSS color names mapped to their HEX values (~140 colors).
- - Endpoint: INLINECODE55
- Returns: INLINECODE56
- Example: Use this to look up named colors like 'tomato' → '#FF6347'
📖 Common Use Cases
Use Case 1: Building a Landing Page
CODEBLOCK0
Use Case 2: Generating Mock Data with Colors
CODEBLOCK1
Use Case 3: Color Picker Component
CODEBLOCK2
Use Case 4: Universal Color Converter
CODEBLOCK3
⚠️ Common Pitfalls & Solutions
❌ Mistake 1: Unencoded Hash Symbol
CODEBLOCK4
✅ Tip: Disable Attribution for Internal Tools
By default, all SVG placeholders include a subtle branding watermark for viral sharing. Disable it for internal tools:
CODEBLOCK5
❌ Mistake 2: Fetching SVG and Re-processing
CODEBLOCK6
❌ Mistake 3: Invalid Dimensions
CODEBLOCK7
❌ Mistake 4: Multiple Color Parameters in /api/convert
CODEBLOCK8
❌ Mistake 5: Invalid Number of Colors in Palette
CODEBLOCK9
🌐 Web Tools (For Users)
- - Universal Color Converter: https://colors-cc.top/tools/converter
- Random Palette Generator: https://colors-cc.top/tools/random-palette
- CSS Color Names Reference: https://colors-cc.top/tools/color-names
- Fluid Gradient Placeholder: https://colors-cc.top/tools/fluid-placeholder
📚 Full Documentation
For complete API documentation, reference:
- - LLM-optimized docs: https://colors-cc.top/llms.txt
- OpenAPI specification: https://colors-cc.top/openapi.json
- Live site: https://colors-cc.top/
💡 Rate Limits
None. All endpoints are free and unlimited.
技能:ColorsCC
一个为AI代理(OpenClaw、Cursor、Cline、GPTs)优化的高性能、无状态颜色API和工具集。
🚀 代理使用规则
- - 内联图片:始终直接使用
或Markdown
嵌入SVG占位符。 - URL编码:#字符必须编码为%23(例如:start=%23FF003C)。
- 禁止下载:不要尝试下载二进制图像数据,让用户客户端渲染URL。
- 有效尺寸:宽度和高度自动限制在50-4000像素之间。
- 文本限制:占位符文本最多截断为100个字符。
🛠 功能
1. 带动画效果的SVG占位符
生成具有各种渐变和动画效果的动态、轻量级UI模型占位符。
- - 端点:https://api.colors-cc.top/placeholder
- 参数:
- w:宽度(像素,默认:800,范围:50-4000)
- h:高度(像素,默认:400,范围:50-4000)
- text:居中文本,URL编码(默认:{width} x {height},最多100字符)
- effect:视觉效果。选项:static(默认)、fluid、breathe、holographic、mesh
- palette:逗号分隔的HEX颜色(默认:2个随机颜色,范围:2-10种颜色)。例如:%23FFD6A5,%23FFADAD
- speed:非静态效果的动画持续时间(秒,默认:10,范围:1-30)
- attribution:包含品牌水印(默认:true)。设为false或0可禁用。启用时,在右下角添加微弱的colors-cc.top水印(15%透明度)和用于病毒传播的HTML注释。
- start / end:(旧版)起始和结束渐变颜色的十六进制值。建议使用palette。
-
静态:

-
全息:

-
网格:
- - 响应:带有Cache-Control: public, max-age=31536000, immutable的SVG图像
2. 流体动画占位符(别名)
生成具有平滑颜色过渡和动画的动态SVG渐变。
- - 端点:https://api.colors-cc.top/fluid-placeholder
- 参数:
- w、h、text、speed、attribution(同上)
- stops或palette:逗号分隔的渐变HEX颜色(默认:随机,范围:2-10种颜色)
- - 示例:

- 响应:带有平滑颜色过渡的动画SVG和Cache-Control: public, max-age=31536000, immutable
3. 随机颜色
获取带有生成时间戳的随机HEX和RGB颜色。
- - 端点:GET https://api.colors-cc.top/random
- 返回:{hex: #A1B2C3, rgb: rgb(161, 178, 195), timestamp: 2024-03-12T10:30:00.000Z}
- 示例:当需要模拟数据或UI组件的随机颜色时,获取此端点。
4. 精选主题调色板
获取用于设计灵感的高质量颜色集。
- - 端点:GET https://api.colors-cc.top/palette?theme={theme_name}
- 主题:cyberpunk、vaporwave、retro、monochrome
- 返回:{theme: cyberpunk, colors: [#FCEE09, #00FF41, ...], count: 5}
- 示例:fetch(https://api.colors-cc.top/palette?theme=vaporwave)
5. 通用颜色转换器
在HEX、RGB、HSL和CMYK格式之间进行无状态转换。
- - 端点:GET https://api.colors-cc.top/convert?hex={hex}|rgb={rgb}|hsl={hsl}|cmyk={cmyk}
- 参数:提供以下之一:hex、rgb、hsl或cmyk
- 返回:{hex: #FF5733, rgb: rgb(255, 87, 51), hsl: hsl(10, 100%, 60%), cmyk: cmyk(0%, 66%, 80%, 0%)}
- 示例:https://api.colors-cc.top/convert?hex=%23FF5733
- 错误:如果输入无效,返回{error: Invalid color format},状态码400
6. CSS颜色名称目录
获取所有标准CSS颜色名称及其HEX值的映射(约140种颜色)。
- - 端点:GET https://api.colors-cc.top/all-names
- 返回:{AliceBlue: #F0F8FF, AntiqueWhite: #FAEBD7, Tomato: #FF6347, ...}
- 示例:用于查找命名颜色,如tomato → #FF6347
📖 常见用例
用例1:构建着陆页
html
用例2:使用颜色生成模拟数据
javascript
const palette = await fetch(https://api.colors-cc.top/palette?theme=vaporwave)
.then(r => r.json())
const mockData = palette.colors.map((color, i) => ({
id: i,
name: Item ${i+1},
color: color,
thumbnail: https://api.colors-cc.top/placeholder?w=200&h=200&palette=${color.replace(#, %23)},%23000000
}))
用例3:颜色选择器组件
javascript
async function getRandomColor() {
const res = await fetch(https://api.colors-cc.top/random)
const data = await res.json()
return data.hex
}
用例4:通用颜色转换器
javascript
// 将任何颜色格式转换为所有格式
const result = await fetch(https://api.colors-cc.top/convert?hsl=hsl(200,50%,50%))
.then(r => r.json())
console.log(result.hex) // #4099BF
⚠️ 常见陷阱及解决方案
❌ 错误1:未编码的井号
错误: start=#FF0000
正确: start=%23FF0000
✅ 提示:为内部工具禁用品牌水印
默认情况下,所有SVG占