element-plus-design-color

v2026.09.25

Color design specifications for Element Plus. Invoke when user needs to understand the color palette, main colors, secondary colors, or neutral colors used in Element Plus.

GitHub
Install command
npx skhub add jiaiyan/element-plus-design-color
Markdown
SKILL.md

Color Design Specifications

Element Plus uses a specific set of palettes to specify colors, providing a consistent look and feel for the products you build.

When to Use

  • Understanding the color system
  • Applying brand colors correctly
  • Using semantic colors (success, warning, danger)
  • Working with neutral colors for text and backgrounds

Main Color

The main color of Element Plus is a bright and friendly blue.

ColorVariableValueUsage
Primary--el-color-primary#409effMain brand color
Primary Light-3--el-color-primary-light-3#79bbffHover state
Primary Light-5--el-color-primary-light-5#a0cfffLighter variant
Primary Light-7--el-color-primary-light-7#c6e2ffBackground
Primary Light-8--el-color-primary-light-8#d9ecffLight background
Primary Light-9--el-color-primary-light-9#ecf5ffExtra light background
Primary Dark-2--el-color-primary-dark-2#337eccActive state

Secondary Colors

Secondary colors are used in different scenarios (e.g., danger color indicates dangerous operations).

Success

VariableValueUsage
--el-color-success#67c23aSuccess operations
--el-color-success-light-3#95d475Hover state
--el-color-success-light-5#b3e19dLighter variant
--el-color-success-light-7#d1edc4Background
--el-color-success-light-8#e1f3d8Light background
--el-color-success-light-9#f0f9ebExtra light background
--el-color-success-dark-2#529b2eActive state

Warning

VariableValueUsage
--el-color-warning#e6a23cWarning operations
--el-color-warning-light-3#eebe77Hover state
--el-color-warning-light-5#f3d19eLighter variant
--el-color-warning-light-7#f8e3c5Background
--el-color-warning-light-8#faecd8Light background
--el-color-warning-light-9#fdf6ecExtra light background
--el-color-warning-dark-2#b88230Active state

Danger

VariableValueUsage
--el-color-danger#f56c6cDanger/error operations
--el-color-danger-light-3#f89898Hover state
--el-color-danger-light-5#fab6b6Lighter variant
--el-color-danger-light-7#fcd3d3Background
--el-color-danger-light-8#fde2e2Light background
--el-color-danger-light-9#fef0f0Extra light background
--el-color-danger-dark-2#c45656Active state

Info

VariableValueUsage
--el-color-info#909399Information operations
--el-color-info-light-3#b1b3b8Hover state
--el-color-info-light-5#c8c9ccLighter variant
--el-color-info-light-7#dedfe0Background
--el-color-info-light-8#e9e9ebLight background
--el-color-info-light-9#f4f4f5Extra light background
--el-color-info-dark-2#73767aActive state

Neutral Colors

Neutral colors are for text, background, and border colors. Use different neutral colors to represent the hierarchical structure.

Text Colors

VariableValueUsage
--el-text-color-primary#303133Primary text
--el-text-color-regular#606266Regular text
--el-text-color-secondary#909399Secondary text
--el-text-color-placeholder#a8abb2Placeholder text
--el-text-color-disabled#c0c4ccDisabled text

Background Colors

VariableValueUsage
--el-bg-color#ffffffDefault background
--el-bg-color-page#f2f3f5Page background
--el-bg-color-overlay#ffffffOverlay background
--el-fill-color#f0f2f5Fill color
--el-fill-color-light#f5f7faLight fill
--el-fill-color-lighter#fafafaLighter fill
--el-fill-color-extra-light#fafcffExtra light fill
--el-fill-color-dark#ebedf0Dark fill
--el-fill-color-darker#e6e8ebDarker fill
--el-fill-color-blank#ffffffBlank fill

Color Usage Guidelines

Semantic Usage

/* Success states */
.success-message {
  color: var(--el-color-success);
  background-color: var(--el-color-success-light-9);
}

/* Warning states */
.warning-message {
  color: var(--el-color-warning);
  background-color: var(--el-color-warning-light-9);
}

/* Error states */
.error-message {
  color: var(--el-color-danger);
  background-color: var(--el-color-danger-light-9);
}

/* Info states */
.info-message {
  color: var(--el-color-info);
  background-color: var(--el-color-info-light-9);
}

Text Hierarchy

/* Primary text - headings, important content */
h1, h2, h3 {
  color: var(--el-text-color-primary);
}

/* Regular text - body content */
p {
  color: var(--el-text-color-regular);
}

/* Secondary text - captions, hints */
.caption {
  color: var(--el-text-color-secondary);
}

/* Placeholder text */
input::placeholder {
  color: var(--el-text-color-placeholder);
}

CSS Variables Summary

:root {
  /* Primary */
  --el-color-primary: #409eff;
  
  /* Semantic Colors */
  --el-color-success: #67c23a;
  --el-color-warning: #e6a23c;
  --el-color-danger: #f56c6c;
  --el-color-info: #909399;
  
  /* Text Colors */
  --el-text-color-primary: #303133;
  --el-text-color-regular: #606266;
  --el-text-color-secondary: #909399;
  --el-text-color-placeholder: #a8abb2;
  --el-text-color-disabled: #c0c4cc;
  
  /* Background Colors */
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f2f3f5;
  --el-bg-color-overlay: #ffffff;
  
  /* Fill Colors */
  --el-fill-color: #f0f2f5;
  --el-fill-color-light: #f5f7fa;
  --el-fill-color-lighter: #fafafa;
}

Best Practices

  1. Use CSS Variables: Always use predefined color variables for consistency
  2. Semantic Colors: Use appropriate semantic colors for their intended purpose
  3. Text Hierarchy: Use text color variables to establish visual hierarchy
  4. Dark Mode: Colors automatically adjust in dark mode
  5. Customization: Override primary color to match your brand
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.25

Published

Sep 25, 2026

Category

Uncategorized

License

MIT

Source path

element-plus-design-color

Default branch

main

Latest commit

1d126b3

Tree SHA

9ae2f92