unicorn-design-system 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COLORS.md +194 -0
- package/package.json +3 -2
package/COLORS.md
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
# 🎨 Unicorn Design System - Color Palette
|
|
2
|
+
|
|
3
|
+
This document contains all color tokens available in the Unicorn Design System. Each color has 10 shades from 50 (lightest) to 900 (darkest).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Colors can be accessed through the MUI theme:
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { useTheme } from '@mui/material/styles';
|
|
11
|
+
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
const primaryColor = theme.palette.blue[500];
|
|
14
|
+
const secondaryColor = theme.palette.green[500];
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🔵 Blue (Primary)
|
|
20
|
+
|
|
21
|
+
Used for primary actions, links, and primary buttons.
|
|
22
|
+
|
|
23
|
+
| Shade | Hex Value | Usage |
|
|
24
|
+
|-------|-----------|-------|
|
|
25
|
+
| 50 | `#ECF4FF` | Backgrounds, hover states |
|
|
26
|
+
| 100 | `#D4E5FF` | Light backgrounds |
|
|
27
|
+
| 200 | `#A9CBFF` | Borders, dividers |
|
|
28
|
+
| 300 | `#82B4FF` | Disabled states |
|
|
29
|
+
| 400 | `#5294F7` | Hover states |
|
|
30
|
+
| **500** | **`#417AE9`** | **Primary buttons, main actions** |
|
|
31
|
+
| 600 | `#2A5CBB` | Active states, primary button hover |
|
|
32
|
+
| 700 | `#17449B` | Darker interactive elements |
|
|
33
|
+
| 800 | `#133880` | Text, high contrast |
|
|
34
|
+
| 900 | `#192C70` | Headings, emphasis text |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🟢 Green (Secondary)
|
|
39
|
+
|
|
40
|
+
Used for secondary actions, success states, and positive feedback.
|
|
41
|
+
|
|
42
|
+
| Shade | Hex Value | Usage |
|
|
43
|
+
|-------|-----------|-------|
|
|
44
|
+
| 50 | `#E3FFEF` | Success backgrounds |
|
|
45
|
+
| 100 | `#C9F7DC` | Light success states |
|
|
46
|
+
| 200 | `#A0EBC7` | Disabled secondary buttons |
|
|
47
|
+
| 300 | `#72E3AC` | Borders |
|
|
48
|
+
| 400 | `#4ED996` | Hover states |
|
|
49
|
+
| **500** | **`#736337`** | **Secondary buttons, success indicators** |
|
|
50
|
+
| 600 | `#20A665` | Secondary button hover |
|
|
51
|
+
| 700 | `#179A5B` | Active states |
|
|
52
|
+
| 800 | `#14864F` | Dark success states |
|
|
53
|
+
| 900 | `#147B4A` | Success text |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 🔘 Grey (Neutral)
|
|
58
|
+
|
|
59
|
+
Used for text, backgrounds, borders, and neutral UI elements.
|
|
60
|
+
|
|
61
|
+
| Shade | Hex Value | Usage |
|
|
62
|
+
|-------|-----------|-------|
|
|
63
|
+
| 50 | `#FCFCFE` | App background |
|
|
64
|
+
| 100 | `#F4F6F9` | Card backgrounds, surfaces |
|
|
65
|
+
| 200 | `#E1E7EA` | Borders, dividers |
|
|
66
|
+
| 300 | `#BAC3C8` | Disabled borders |
|
|
67
|
+
| 400 | `#839299` | Placeholder text |
|
|
68
|
+
| **500** | **`#5D6E75`** | **Body text, secondary text** |
|
|
69
|
+
| 600 | `#40545D` | Dark text |
|
|
70
|
+
| 700 | `#243B45` | Headings |
|
|
71
|
+
| 800 | `#112934` | High contrast text |
|
|
72
|
+
| 900 | `#051922` | Maximum contrast |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🟠 Aqua
|
|
77
|
+
|
|
78
|
+
Used for informational states and accent colors.
|
|
79
|
+
|
|
80
|
+
| Shade | Hex Value |
|
|
81
|
+
|-------|-----------|
|
|
82
|
+
| 50 | `#DCFBFF` |
|
|
83
|
+
| 100 | `#BCF7FF` |
|
|
84
|
+
| 200 | `#A4F4FF` |
|
|
85
|
+
| 300 | `#7EECFB` |
|
|
86
|
+
| 400 | `#5DE2F4` |
|
|
87
|
+
| **500** | **`#3FD3E7`** |
|
|
88
|
+
| 600 | `#00B1C9` |
|
|
89
|
+
| 700 | `#1890A1` |
|
|
90
|
+
| 800 | `#0D7381` |
|
|
91
|
+
| 900 | `#004F5A` |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 🟣 Indigo
|
|
96
|
+
|
|
97
|
+
Used for tertiary actions and special highlights.
|
|
98
|
+
|
|
99
|
+
| Shade | Hex Value |
|
|
100
|
+
|-------|-----------|
|
|
101
|
+
| 50 | `#E6DFFF` |
|
|
102
|
+
| 100 | `#C8BAFF` |
|
|
103
|
+
| 200 | `#A58EFF` |
|
|
104
|
+
| 300 | `#7F61F0` |
|
|
105
|
+
| 400 | `#593EBE` |
|
|
106
|
+
| **500** | **`#473297`** |
|
|
107
|
+
| 600 | `#372772` |
|
|
108
|
+
| 700 | `#2D2060` |
|
|
109
|
+
| 800 | `#271D51` |
|
|
110
|
+
| 900 | `#1A1B41` |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 🔴 Red (Error/Danger)
|
|
115
|
+
|
|
116
|
+
Used for errors, destructive actions, and warnings.
|
|
117
|
+
|
|
118
|
+
| Shade | Hex Value | Usage |
|
|
119
|
+
|-------|-----------|-------|
|
|
120
|
+
| 50 | `#F9E7E7` | Error backgrounds |
|
|
121
|
+
| 100 | `#EFC3C3` | Light error states |
|
|
122
|
+
| 200 | `#E49B9B` | Error borders |
|
|
123
|
+
| 300 | `#D97272` | Disabled error states |
|
|
124
|
+
| 400 | `#D15454` | Hover states |
|
|
125
|
+
| **500** | **`#C93636`** | **Error text, danger buttons** |
|
|
126
|
+
| 600 | `#BC2929` | Danger button hover |
|
|
127
|
+
| 700 | `#AE1818` | Active error states |
|
|
128
|
+
| 800 | `#9D160D` | Dark error states |
|
|
129
|
+
| 900 | `#8C0B03` | High contrast errors |
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 🟡 Yellow (Warning)
|
|
134
|
+
|
|
135
|
+
Used for warnings, alerts, and cautionary states.
|
|
136
|
+
|
|
137
|
+
| Shade | Hex Value | Usage |
|
|
138
|
+
|-------|-----------|-------|
|
|
139
|
+
| 50 | `#FEF6E1` | Warning backgrounds |
|
|
140
|
+
| 100 | `#FCE8B5` | Light warning states |
|
|
141
|
+
| 200 | `#FAD983` | Warning borders |
|
|
142
|
+
| 300 | `#F8CA51` | Hover states |
|
|
143
|
+
| 400 | `#F7BE2C` | Active warnings |
|
|
144
|
+
| **500** | **`#F5B307`** | **Warning indicators** |
|
|
145
|
+
| 600 | `#F4AC06` | Warning hover |
|
|
146
|
+
| 700 | `#F0A104` | Warning active |
|
|
147
|
+
| 800 | `#F19617` | Dark warnings |
|
|
148
|
+
| 900 | `#EE8B02` | High contrast warnings |
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 📋 Component Color Mapping
|
|
153
|
+
|
|
154
|
+
### Buttons
|
|
155
|
+
- **Primary Button**: `blue[500]` background, hover: `blue[600]`
|
|
156
|
+
- **Secondary Button**: `green[500]` background, hover: `green[600]`
|
|
157
|
+
- **Tertiary Button**: `grey[900]` text, `grey[100]` background
|
|
158
|
+
- **Danger Button**: `red[500]` background, hover: `red[600]`
|
|
159
|
+
- **Ghost Button**: Transparent background, `blue[500]` text
|
|
160
|
+
|
|
161
|
+
### Inputs
|
|
162
|
+
- Border: `grey[200]`
|
|
163
|
+
- Focus Border: `blue[500]`
|
|
164
|
+
- Error Border: `red[500]`
|
|
165
|
+
- Success Border: `green[500]`
|
|
166
|
+
- Background: `white`
|
|
167
|
+
- Disabled Background: `grey[100]`
|
|
168
|
+
|
|
169
|
+
### Alerts
|
|
170
|
+
- Info: `aqua[500]`
|
|
171
|
+
- Success: `green[500]`
|
|
172
|
+
- Warning: `yellow[500]`
|
|
173
|
+
- Error: `red[500]`
|
|
174
|
+
|
|
175
|
+
### Text
|
|
176
|
+
- Primary: `grey[900]`
|
|
177
|
+
- Secondary: `grey[500]`
|
|
178
|
+
- Disabled: `grey[400]`
|
|
179
|
+
- Link: `blue[500]`
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## 🔄 Version History
|
|
184
|
+
|
|
185
|
+
### v2.0.2
|
|
186
|
+
- Updated `green[500]` from `#26BB74` to `#736337` for better contrast and brand alignment
|
|
187
|
+
|
|
188
|
+
### v2.0.1
|
|
189
|
+
- Initial color palette release
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
**Last Updated**: January 2026
|
|
194
|
+
**Package Version**: 2.0.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unicorn-design-system",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "🦄 Beautiful React components and design tokens",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
18
|
"README.md",
|
|
19
|
-
"LICENSE"
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"COLORS.md"
|
|
20
21
|
],
|
|
21
22
|
"scripts": {
|
|
22
23
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean --platform browser --external react,react-dom,@mui/material,@mui/icons-material,@emotion/react,@emotion/styled,@mui/base && mkdir -p dist/fonts && cp src/fonts/* dist/fonts/ && tailwindcss -i ./src/index.css -o ./dist/styles.css --minify",
|