Color design specifications for Naive UI. Invoke when user needs to understand the color palette, main colors, semantic colors, or neutral colors used in Naive UI.
author
version
jiaiyan
1.0.0
Color Design Specifications
Naive UI uses a carefully designed color system with primary green color and semantic colors for different states, 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, error, info)
Working with neutral colors for text and backgrounds
Creating themed components
Primary Color
The main color of Naive UI is a vibrant green (#18a058) that conveys freshness and growth.
Color
CSS Variable
Light Theme
Dark Theme
Usage
Primary
--primary-color
#18a058
#63e2b7
Main brand color
Primary Hover
--primary-color-hover
#36ad6a
#7fe7c4
Hover state
Primary Pressed
--primary-color-pressed
#0c7a43
#5acea7
Active/pressed state
Primary Suppl
--primary-color-suppl
#36ad6a
rgb(42, 148, 125)
Supplementary
Semantic Colors
Semantic colors are used in different scenarios to convey meaning.
Success
CSS Variable
Light Theme
Dark Theme
Usage
--success-color
#18a058
#63e2b7
Success operations
--success-color-hover
#36ad6a
#7fe7c4
Hover state
--success-color-pressed
#0c7a43
#5acea7
Active state
--success-color-suppl
#36ad6a
rgb(42, 148, 125)
Supplementary
Info
CSS Variable
Light Theme
Dark Theme
Usage
--info-color
#2080f0
#70c0e8
Information operations
--info-color-hover
#4098fc
#8acbec
Hover state
--info-color-pressed
#1060c9
#66afd3
Active state
--info-color-suppl
#4098fc
rgb(56, 137, 197)
Supplementary
Warning
CSS Variable
Light Theme
Dark Theme
Usage
--warning-color
#f0a020
#f2c97d
Warning operations
--warning-color-hover
#fcb040
#f5d599
Hover state
--warning-color-pressed
#c97c10
#e6c260
Active state
--warning-color-suppl
#fcb040
rgb(240, 138, 0)
Supplementary
Error
CSS Variable
Light Theme
Dark Theme
Usage
--error-color
#d03050
#e88080
Error/danger operations
--error-color-hover
#de576d
#e98b8b
Hover state
--error-color-pressed
#ab1f3f
#e57272
Active state
--error-color-suppl
#de576d
rgb(208, 58, 82)
Supplementary
Text Colors
Naive UI uses a hierarchical text color system for visual clarity.