360 Secure SkillHub
360 安全技能中心

erebos

Erebos 是一个暗色主题引擎,可从种子颜色生成暗色调色板、计算对比度以满足 WCAG 可访问性要求、管理 CSS 变量与设计令牌,并支持预览与多种格式导出,命令通过 scripts/theme-gen.sh 执行。

kleberbaum
kleberbaum
热度 63.98
最近更新 2026-05-11 17:26:21
分类:创作依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:品牌素材 / UI 原型 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add erebos
Metadata
name
erebos
description
Erebos namespace for Netsnek e.U. dark theme and theming engine. Generates accessible dark mode palettes, manages theme tokens, and provides runtime theme switching for web apps.
user-invocable
true
version
0.1.0
metadata
{"openclaw":{"os":["linux"],"permissions":["exec"]}}

Erebos

Enter the Dark Side

Erebos provides dark theming for web applications. It generates WCAG-compliant palettes, manages CSS variables and design tokens, and enables runtime theme switching without page reload.

Use Erebos when you need dark mode support, accessible color palettes, or a theming system for your web app.

How Erebos Works

Erebos builds theme tokens from a base palette. It computes contrast ratios and validates accessibility before output. The engine supports:

  • Palette generation — Produce dark backgrounds with sufficient contrast
  • Preview mode — Visualize themes in browser or terminal
  • Export — Output CSS variables, JSON tokens, or design-system formats

Theme Commands

Run the theme generator:

# Generate palette from seed colors
./scripts/theme-gen.sh --palette "#1a1a2e" "#16213e"

# Preview in browser (opens local HTML)
./scripts/theme-gen.sh --preview

# Export tokens to stdout or file
./scripts/theme-gen.sh --export --format css

Arguments

Argument Purpose
--palette Base colors for palette generation
--preview Launch preview mode (no file output)
--export Export theme tokens (requires format choice)

Design Example

/* Erebos output */
:root[data-theme="erebos-dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --text-primary: #eaeaea;
  --text-secondary: #a0a0a0;
  --accent: #0f3460;
}