Skip to content

Commit b30dc54

Browse files
committed
feat: update project
1 parent ead448d commit b30dc54

5 files changed

Lines changed: 60 additions & 42 deletions

File tree

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
auto-install-peers = true
2-
public-hoist-pattern[]=*storybook*
3-
@var-ui:registry=https://npm.pkg.github.com/
2+
public-hoist-pattern[]=*storybook*

packages/theme/src/configs/colors/colors.ts

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,36 @@ export const colors = {
55
transparent: '##FFFFFF00',
66
},
77
brand: {
8-
50: '#f6f4fe',
9-
100: '#eeebfc',
10-
200: '#e0d9fb',
11-
300: '#c9baf8',
12-
400: '#ad93f2',
13-
500: '#9e77ed',
14-
600: '#8347e0',
15-
700: '#7435cc',
16-
800: '#602cab',
17-
900: '#51268c',
18-
950: '#32165f',
19-
DEFAULT: '#8347e0',
8+
light: {
9+
25: '#EDECFF',
10+
50: '#edf3ff',
11+
100: '#dee8ff',
12+
200: '#c4d3ff',
13+
300: '#a1b6ff',
14+
400: '#7b8efe',
15+
500: '#5c67f8',
16+
600: '#3f3eed',
17+
700: '#312dca',
18+
800: '#2c2aa9',
19+
900: '#2a2c85',
20+
950: '#19194d',
21+
DEFAULT: '#5c67f8',
22+
},
23+
dark: {
24+
25: '#02012D',
25+
50: '#020042',
26+
100: '#070564',
27+
200: '#110E86',
28+
300: '#1F1CA8',
29+
400: '#312DCA',
30+
500: '#4742EC',
31+
600: '#5D58FC',
32+
700: '#7470FE',
33+
800: '#9D9AFF',
34+
900: '#C5C3FF',
35+
950: '#EDECFF',
36+
DEFAULT: '#5D58FC',
37+
},
2038
},
2139
blue: {
2240
50: '#eff8ff',

packages/theme/src/configs/colors/theme-colors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const defaultLightColors: ThemeColors = {
2222
},
2323
divider: colors.gray.light[200],
2424
overlay: colors.gray.light[950],
25-
brand: colors.brand,
25+
brand: colors.brand.light,
2626
tertiary: colors.orange,
2727
gray: colors.gray.light,
2828
secondary: colors.blue,
@@ -54,7 +54,7 @@ export const defaultDarkColors: ThemeColors = {
5454
},
5555
divider: colors.gray.dark[800],
5656
overlay: colors.gray.dark[950],
57-
brand: colors.brand,
57+
brand: colors.brand.dark,
5858
tertiary: colors.orange,
5959
gray: colors.gray.dark,
6060
secondary: colors.blue,

packages/theme/src/configs/colors/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export type ColorScheme =
22
| Partial<{
3+
25: string;
34
50: string;
45
100: string;
56
200: string;

packages/ui/src/components/button/button.styles.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,42 +56,42 @@ export const buttonVariants = cva(
5656
variant: 'solid',
5757
color: 'primary',
5858
className:
59-
'bg-brand-600 border-brand-600 hover:border-brand-700 hover:bg-brand-700 focus:shadow-brand-xs border',
59+
'bg-brand-500 border-brand-500 hover:border-brand-600 hover:bg-brand-600 focus:shadow-brand-xs border',
6060
},
6161
{
6262
variant: 'solid',
6363
color: 'secondary',
6464
className:
65-
'bg-secondary-600 border-secondary-600 hover:border-secondary-700 hover:bg-secondary-700 focus:shadow-secondary-xs border',
65+
'bg-secondary-500 border-secondary-500 hover:border-secondary-600 hover:bg-secondary-600 focus:shadow-secondary-xs border',
6666
},
6767
{
6868
variant: 'solid',
6969
color: 'tertiary',
7070
className:
71-
'bg-tertiary-600 border-tertiary-600 hover:border-tertiary-700 hover:bg-tertiary-700 focus:shadow-gray-xs border',
71+
'bg-tertiary-500 border-tertiary-500 hover:border-tertiary-600 hover:bg-tertiary-600 focus:shadow-gray-xs border',
7272
},
7373
{
7474
variant: 'solid',
7575
color: 'gray',
76-
className: 'focus:shadow-gray-xs border border-gray-600 bg-gray-600 hover:border-gray-700 hover:bg-gray-700',
76+
className: 'focus:shadow-gray-xs border border-gray-500 bg-gray-500 hover:border-gray-600 hover:bg-gray-600',
7777
},
7878
{
7979
variant: 'solid',
8080
color: 'error',
8181
className:
82-
'bg-error-600 border-error-600 hover:border-error-700 hover:bg-error-700 focus:shadow-error-xs border',
82+
'bg-error-500 border-error-500 hover:border-error-600 hover:bg-error-600 focus:shadow-error-xs border',
8383
},
8484
{
8585
variant: 'solid',
8686
color: 'warning',
8787
className:
88-
'bg-warning-600 border-warning-600 hover:border-warning-700 hover:bg-warning-700 focus:shadow-warning-xs border',
88+
'bg-warning-500 border-warning-500 hover:border-warning-600 hover:bg-warning-600 focus:shadow-warning-xs border',
8989
},
9090
{
9191
variant: 'solid',
9292
color: 'success',
9393
className:
94-
'bg-success-600 border-success-600 hover:border-success-700 hover:bg-success-700 focus:shadow-success-xs border',
94+
'bg-success-500 border-success-500 hover:border-success-600 hover:bg-success-600 focus:shadow-success-xs border',
9595
},
9696
// --------------
9797
{
@@ -104,19 +104,19 @@ export const buttonVariants = cva(
104104
variant: 'outline',
105105
color: 'primary',
106106
className:
107-
'bg-background border-brand-300 hover:border-brand-300 hover:bg-brand-50 text-brand-700 shadow-xs focus:shadow-brand-xs border ',
107+
'bg-background border-brand-300 hover:border-brand-300 hover:bg-brand-50 text-brand-600 shadow-xs focus:shadow-brand-xs border ',
108108
},
109109
{
110110
variant: 'outline',
111111
color: 'secondary',
112112
className:
113-
'bg-background border-secondary-300 hover:border-secondary-300 hover:bg-secondary-50 text-secondary-700 shadow-xs focus:shadow-brand-xs border ',
113+
'bg-background border-secondary-300 hover:border-secondary-300 hover:bg-secondary-50 text-secondary-600 shadow-xs focus:shadow-brand-xs border ',
114114
},
115115
{
116116
variant: 'outline',
117117
color: 'tertiary',
118118
className:
119-
'bg-background border-tertiary-300 hover:border-tertiary-300 hover:bg-tertiary-50 text-tertiary-700 shadow-xs focus:shadow-brand-xs border',
119+
'bg-background border-tertiary-300 hover:border-tertiary-300 hover:bg-tertiary-50 text-tertiary-600 shadow-xs focus:shadow-brand-xs border',
120120
},
121121
{
122122
variant: 'outline',
@@ -128,19 +128,19 @@ export const buttonVariants = cva(
128128
variant: 'outline',
129129
color: 'error',
130130
className:
131-
'bg-background border-error-300 hover:border-error-300 hover:bg-error-50 text-error-700 shadow-xs focus:shadow-error-xs border ',
131+
'bg-background border-error-300 hover:border-error-300 hover:bg-error-50 text-error-600 shadow-xs focus:shadow-error-xs border ',
132132
},
133133
{
134134
variant: 'outline',
135135
color: 'warning',
136136
className:
137-
'bg-background border-warning-300 hover:border-warning-300 hover:bg-warning-50 text-warning-700 shadow-xs focus:shadow-warning-xs border ',
137+
'bg-background border-warning-300 hover:border-warning-300 hover:bg-warning-50 text-warning-600 shadow-xs focus:shadow-warning-xs border ',
138138
},
139139
{
140140
variant: 'outline',
141141
color: 'success',
142142
className:
143-
'bg-background border-success-300 hover:border-success-300 hover:bg-success-50 text-success-700 shadow-xs focus:shadow-success-xs border ',
143+
'bg-background border-success-300 hover:border-success-300 hover:bg-success-50 text-success-600 shadow-xs focus:shadow-success-xs border ',
144144
},
145145
// --------------
146146
{
@@ -152,42 +152,42 @@ export const buttonVariants = cva(
152152
{
153153
variant: 'ghost',
154154
color: 'primary',
155-
className: 'text-brand-600 hover:text-brand-700 active:text-brand-600 hover:bg-brand-50 active:bg-transparent',
155+
className: 'text-brand-500 hover:text-brand-600 active:text-brand-500 hover:bg-brand-50 active:bg-transparent',
156156
},
157157
{
158158
variant: 'ghost',
159159
color: 'secondary',
160160
className:
161-
'text-secondary-600 hover:text-secondary-700 active:text-secondary-600 hover:bg-secondary-50 active:bg-transparent',
161+
'text-secondary-500 hover:text-secondary-600 active:text-secondary-500 hover:bg-secondary-50 active:bg-transparent',
162162
},
163163
{
164164
variant: 'ghost',
165165
color: 'tertiary',
166166
className:
167-
'text-tertiary-600 hover:text-tertiary-700 active:text-tertiary-600 hover:bg-tertiary-50 active:bg-transparent',
167+
'text-tertiary-500 hover:text-tertiary-600 active:text-tertiary-500 hover:bg-tertiary-50 active:bg-transparent',
168168
},
169169
{
170170
variant: 'ghost',
171171
color: 'gray',
172172
className:
173-
'hover:text-foreground-secondary text-gray-600 hover:bg-gray-50 active:bg-transparent active:text-gray-600',
173+
'hover:text-foreground-secondary text-gray-500 hover:bg-gray-50 active:bg-transparent active:text-gray-500',
174174
},
175175
{
176176
variant: 'ghost',
177177
color: 'error',
178-
className: 'text-error-600 hover:text-error-700 active:text-error-600 hover:bg-error-50 active:bg-transparent',
178+
className: 'text-error-500 hover:text-error-600 active:text-error-500 hover:bg-error-50 active:bg-transparent',
179179
},
180180
{
181181
variant: 'ghost',
182182
color: 'warning',
183183
className:
184-
'text-warning-600 hover:text-warning-700 active:text-warning-600 hover:bg-warning-50 active:bg-transparent',
184+
'text-warning-500 hover:text-warning-600 active:text-warning-500 hover:bg-warning-50 active:bg-transparent',
185185
},
186186
{
187187
variant: 'ghost',
188188
color: 'success',
189189
className:
190-
'text-success-600 hover:text-success-700 active:text-success-600 hover:bg-success-50 active:bg-transparent',
190+
'text-success-500 hover:text-success-600 active:text-success-500 hover:bg-success-50 active:bg-transparent',
191191
},
192192

193193
// --------------
@@ -199,17 +199,17 @@ export const buttonVariants = cva(
199199
{
200200
variant: 'link',
201201
color: 'primary',
202-
className: 'text-brand-600 active:text-brand-700 hover:text-brand-700',
202+
className: 'text-brand-500 active:text-brand-600 hover:text-brand-600',
203203
},
204204
{
205205
variant: 'link',
206206
color: 'secondary',
207-
className: 'text-secondary-600 active:text-secondary-700 hover:text-secondary-700',
207+
className: 'text-secondary-500 active:text-secondary-600 hover:text-secondary-600',
208208
},
209209
{
210210
variant: 'link',
211211
color: 'tertiary',
212-
className: 'text-tertiary-600 active:text-tertiary-700 hover:text-tertiary-700',
212+
className: 'text-tertiary-500 active:text-tertiary-600 hover:text-tertiary-600',
213213
},
214214
{
215215
variant: 'link',
@@ -219,17 +219,17 @@ export const buttonVariants = cva(
219219
{
220220
variant: 'link',
221221
color: 'error',
222-
className: 'text-error-600 active:text-error-700 hover:text-error-700',
222+
className: 'text-error-500 active:text-error-600 hover:text-error-600',
223223
},
224224
{
225225
variant: 'link',
226226
color: 'warning',
227-
className: 'text-warning-600 active:text-warning-700 hover:text-warning-700',
227+
className: 'text-warning-500 active:text-warning-600 hover:text-warning-600',
228228
},
229229
{
230230
variant: 'link',
231231
color: 'success',
232-
className: 'text-success-600 active:text-success-700 hover:text-success-700',
232+
className: 'text-success-500 active:text-success-600 hover:text-success-600',
233233
},
234234
],
235235
defaultVariants: {

0 commit comments

Comments
 (0)