File tree 5 files changed +30
-3
lines changed 5 files changed +30
-3
lines changed Original file line number Diff line number Diff line change
1
+ export const deviceSize = {
2
+ mobileS : 320 ,
3
+ mobileM : 375 ,
4
+ mobileL : 425 ,
5
+ tablet : 768 ,
6
+ laptopS : 1024 ,
7
+ laptopL : 1280 ,
8
+ desktop : 1440 ,
9
+ } ;
10
+
11
+ export const mediaQueries = {
12
+ mobileS : `@media (min-width: ${ deviceSize . mobileS } px)` ,
13
+ mobileM : `@media (min-width: ${ deviceSize . mobileM } px)` ,
14
+ mobileL : `@media (min-width: ${ deviceSize . mobileL } px)` ,
15
+ tablet : `@media (min-width: ${ deviceSize . tablet } px)` ,
16
+ laptopS : `@media (min-width: ${ deviceSize . laptopS } px)` ,
17
+ laptopL : `@media (min-width: ${ deviceSize . laptopL } px)` ,
18
+ desktop : `@media (min-width: ${ deviceSize . desktop } px)` ,
19
+ } ;
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
21
21
if ( props . buttonType === 'texty' ) {
22
22
return `color: ${ brandColors . giv [ 500 ] } ;background: unset};padding: 8px 24px;opacity: 0.5;` ;
23
23
}
24
+ if ( props . buttonType === 'primary' ) {
25
+ return `background: ${ brandColors . pinky [ 300 ] } ;color: ${ brandColors . pinky [ 200 ] } ;` ;
26
+ }
24
27
return `color: ${ brandColors . giv [ 400 ] } ;background: ${ brandColors . giv [ 500 ] } ;opacity: 0.5;` ;
25
28
}
26
29
switch ( props . buttonType ) {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
21
21
switch ( props . buttonType ) {
22
22
case 'primary' :
23
23
return props . disabled
24
- ? `color: ${ brandColors . giv [ 500 ] } ;border-color: ${ brandColors . giv [ 500 ] } ;opacity: 0.4 ;`
24
+ ? `color: ${ brandColors . pinky [ 300 ] } ;border-color: ${ brandColors . pinky [ 300 ] } ;`
25
25
: `color: ${ brandColors . pinky [ 400 ] } ;border-color: ${ brandColors . pinky [ 400 ] } ;` ;
26
26
case 'secondary' :
27
27
return props . disabled
Original file line number Diff line number Diff line change @@ -12,8 +12,12 @@ export const LoadingContainer = styled.div<{ loading: number }>`
12
12
export const Loader = styled . div < IButtonContainerProps > `
13
13
border: 3px solid
14
14
${ props => {
15
- if ( props . disabled ) return brandColors . giv [ 600 ] ;
16
-
15
+ if ( props . disabled ) {
16
+ switch ( props . buttonType ) {
17
+ case 'primary' :
18
+ return brandColors . pinky [ 400 ] ;
19
+ }
20
+ }
17
21
switch ( props . buttonType ) {
18
22
case 'primary' :
19
23
return brandColors . pinky [ 600 ] ;
Original file line number Diff line number Diff line change 1
1
export * from './components' ;
2
2
export * from './common/colors' ;
3
+ export * from './common/deviceSize' ;
You can’t perform that action at this time.
0 commit comments