Skip to content
cccskills
FreePublished on GitHub

css-design-tokens

CSS design tokens and color system for vehicle insurance platform. Use when defining colors, spacing, typography, or design variables. Keywords: eye-care colors #5B8DEF/#8B95A5/#C5CAD3, CSS variables, spacing system, color palette, typography scale, design tokens, variables.css, theme colors.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (1)

  • SKILL.md6.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

CSS Design Tokens - 设计规范变量

车险签单数据分析平台的CSS设计规范和变量系统。


🎨 护眼配色体系

图表主色 (Chart Primary Colors)

核心色板 - 护眼蓝灰系:

--chart-primary-blue: #5B8DEF;    /* D (最新周期) - 主蓝色 */
--chart-secondary-gray: #8B95A5;  /* D-7 (上周) - 次灰色 */
--chart-light-gray: #C5CAD3;      /* D-14 (前周) - 浅灰色 */

使用场景:

  • 周对比图表: 3条折线分别使用这3种颜色
    • #5B8DEF (主蓝): 最新7天数据(D)
    • #8B95A5 (次灰): 上一个7天(D-7)
    • #C5CAD3 (浅灰): 前一个7天(D-14)

ECharts使用示例:

const chartOption = {
  color: ['#5B8DEF', '#8B95A5', '#C5CAD3'],  // 护眼配色
  // ... other options
}

状态色 (Status Colors)

--status-success: #52C41A;   /* 上升 ↑ - 成功绿 */
--status-warning: #F5222D;   /* 下降 ↓ - 警示红 */
--status-neutral: #8B95A5;   /* 持平 — - 中性灰 */

使用场景:

  • KPI趋势指示 (↑ ↓ —)
  • Toast通知 (成功/错误/信息)
  • 数据变化高亮

主色 (Primary Palette)

--primary-50: #f3e8ff;
--primary-100: #e9d5ff;
--primary-500: #a855f7;   /* 主按钮、链接 */
--primary-600: #9333ea;
--primary-700: #7e22ce;

使用场景:

  • 主按钮背景: --primary-500
  • 主按钮悬停: --primary-600
  • 链接文字: --primary-500

中性色 (Neutral Colors)

--gray-50: #f9fafb;    /* 浅背景 */
--gray-100: #f3f4f6;   /* 卡片背景 */
--gray-300: #d1d5db;   /* 边框 */
--gray-500: #6b7280;   /* 次要文字 */
--gray-700: #374151;   /* 辅助文字 */
--gray-900: #111827;   /* 主要文字 */

文字颜色映射:

--text-primary: var(--gray-900);
--text-secondary: var(--gray-500);
--text-muted: rgba(17, 24, 39, 0.7);

表面与阴影 (Surface & Shadows)

--surface-default: #ffffff;
--surface-elevated: #ffffff;
--surface-primary-tint: rgba(168, 85, 247, 0.08);

--shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
--shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);

📏 CSS 变量规范

间距系统 (Spacing)

4px基准网格:

--space-1: 0.25rem;   /* 4px */
--space-2: 0.5rem;    /* 8px */
--space-3: 0.75rem;   /* 12px */
--space-4: 1rem;      /* 16px */
--space-5: 1.25rem;   /* 20px */
--space-6: 1.5rem;    /* 24px */
--space-8: 2rem;      /* 32px */

使用建议:

  • 组件内部间距: --space-3 (12px) 或 --space-4 (16px)
  • 组件外部间距: --space-6 (24px) 或 --space-8 (32px)

圆角 (Border Radius)

--radius-sm: 0.5rem;   /* 8px - 小按钮、标签 */
--radius-md: 0.75rem;  /* 12px - 卡片、输入框 */
--radius-lg: 1rem;     /* 16px - 对话框、大卡片 */

字体系统 (Typography)

--text-xs: 0.75rem;   /* 12px - 辅助文字 */
--text-sm: 0.875rem;  /* 14px - 次要文字 */
--text-base: 1rem;    /* 16px - 正文(默认) */
--text-lg: 1.125rem;  /* 18px - 小标题 */
--text-xl: 1.25rem;   /* 20px - 标题 */
--text-2xl: 1.5rem;   /* 24px - 大标题 */
--text-3xl: 1.875rem; /* 30px - 数值展示 */

字体族:

--font-family-base: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

边框 (Borders)

--border-accent-width: 0.25rem;  /* 4px - 强调边框(左侧装饰线) */

🌗 主题系统

护眼模式 (当前默认)

设计理念:

  • 基于眼科医学研究,减少蓝光刺激
  • 温暖的米白色背景 #fefcf3
  • 降低对比度,避免强烈黑白对比

颜色配置:

:root {
  --bg-primary: #fefcf3;      /* 温暖米白 */
  --bg-secondary: #f8f4e9;    /* 浅米色 */
  --bg-elevated: #ffffff;     /* 纯白 */
  --text-primary: #3a3a3a;    /* 深灰(降低对比度) */
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
}

暗黑模式 (未来扩展)

颜色配置:

[data-theme-mode="dark"] {
  --bg-primary: #0d0d0d;      /* 纯黑 */
  --bg-secondary: #1a1a1a;    /* 近黑 */
  --bg-elevated: #262626;     /* 深灰 */
  --text-primary: #f0f0f0;    /* 亮白 */
  --text-secondary: #c0c0c0;
  --text-muted: #909090;
}

✅ 使用最佳实践

规范 1: 使用CSS变量

/* ✅ 正确 */
.text {
  color: var(--text-primary);
  font-size: var(--text-base);
  padding: var(--space-4);
}

/* ❌ 错误: 硬编码 */
.text {
  color: #111827;
  font-size: 16px;
  padding: 16px;
}

规范 2: 语义化颜色

/* ✅ 正确: 使用语义化变量 */
.alert--success {
  color: var(--status-success);
}

/* ❌ 错误: 直接使用颜色值 */
.alert--success {
  color: #52C41A;
}

规范 3: 间距系统

/* ✅ 正确: 使用间距变量 */
.card {
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

/* ❌ 错误: 随意间距 */
.card {
  padding: 23px;
  margin-bottom: 17px;
}

🔗 相关资源

关键文件位置

相关 Skills

外部参考


✅ 总结

核心要点

  1. 护眼配色: 蓝灰系 #5B8DEF / #8B95A5 / #C5CAD3
  2. 间距系统: 4px基准网格 (space-1 到 space-8)
  3. 字体系统: 7级字体大小 (xs到3xl)
  4. 圆角系统: 3级圆角 (sm/md/lg)
  5. 主题模式: 护眼模式(当前) + 暗黑模式(未来)

适用场景

✅ 适用:

  • 定义新的设计变量
  • 修改配色方案
  • 调整间距/字体规范
  • 实现主题切换

❌ 不适用(请使用其他Skills):

  • 组件样式实现 → component-styling
  • Vue组件开发 → vue-component-dev

文档维护者: Claude Code AI Assistant 创建日期: 2025-11-09 下次审查: 2025-11-23

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Complete architecture reference for the A3 insurance platform — file locations, data flow, conventions, microservice map, and fullstack patterns

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

Drafts U.S. commercial real estate access and indemnity (right-of-entry) agreements for pre-closing due diligence. Covers license grants, non-invasive vs invasive testing gates, insurance/endorsement requirements, indemnity with discovery carve-outs, restoration and lien remedies, confidentiality, and anti-indemnity guardrails. Trigger: access agreement, right of entry, due diligence access, Phase I/II, invasive testing, pre-PSA site inspection.

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

当用户需要对意外险投保问卷进行专业、结构化的核保审查,提取职业类别、工作环境、作业内容、危险活动参与情况、交通出行习惯、特殊工作暴露及其他可能影响意外险承保判断的高风险信息,并生成适合意外险核保、补问流转和风险分层处理的结构化分析结果时使用本 skill。

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

Inspect, schema, and fill true AcroForm PDFs using sciClaw's pdf_form_inspect, pdf_form_schema, and pdf_form_fill tools. Use when: (1) checking whether a PDF is a real fillable AcroForm, (2) listing form field names, types, and choices, (3) filling a supported form from structured values, (4) preparing reviewable insurance, legal, administrative, or clinical form drafts, (5) reporting skipped fields or unused input keys after a fill. Do not use for scanned PDFs, OCR tasks, or XFA-only forms.

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

Guide actuarial analysis for insurance pricing. TRIGGERS - Use when user needs help with actuarial-analysis related tasks.

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards. USE THIS SKILL WHEN: - You need to review or audit actuarial models (reserving, pricing, capital) - Someone asks about loss triangle analysis or reserve adequacy - You are evaluating IBNR calculations, chain ladder methods, or Bornhuetter-Ferguson - A project involves insurance pricing, GLM rating models, or ratemaking - You need to assess Solvency II SCR calculations or RBC compliance - Someone mentions actuarial opinions, ASOP compliance, or SOA standards - You are reviewing stochastic models, ESG configurations, or DFA frameworks - A codebase uses actuarial libraries (chainladder, lifetables, ChainLadder R package) TRIGGER PHRASES: "actuarial", "loss reserving", "IBNR", "chain ladder", "premium pricing", "mortality table", "Solvency II", "capital adequacy", "ratemaking", "GLM pricing", "risk-based capital", "reserve analysis", "actuarial opinion"

The English summary is being prepared. Showing the original description.

FDU-INS/Insurance-Skills79Updated Jul 12, 2026

See all skills by FDU-INS

Report a problem with this skill