Skip to content

Commit

Permalink
added css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FarrukhSaleemAbs committed Jan 22, 2024
1 parent 93c03e7 commit b195434
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
26 changes: 13 additions & 13 deletions src/elements/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,32 @@
color: var(--button-background);

&.default {
background: #ff4d87;
border-color: #ff4d87;
background: var(--pink-200);
border-color: var(--pink-200);

&:hover {
background: #ff4d87;
background: var(--pink-200);
border-color: none;
}
}

&.primaryDates {
background: #281e21;
border-color: #281e21;
background: var(--pink-100);
border-color: var(--pink-100);

&:hover {
background: #281e21;
border-color: #281e21;
background: var(--pink-100);
border-color: var(--pink-100);
}
}

&.primary {
background: #ff4d87;
border-color: #ff4d87;
background: var(--pink-200);
border-color: var(--pink-200);

&:hover {
background: #ff4d87;
border-color: #ff4d87;
background: var(--pink-200);
border-color: var(--pink-200);
}
}
}
Expand Down Expand Up @@ -196,10 +196,10 @@
border: solid 1px transparent;

&.default {
color: #707070;
color: var(--gray-100);

&:hover {
color: #707070;
color: var(--gray-100);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/form/Calendar/Calendar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
justify-content: space-between;
margin-bottom: var(--spacing-sm);
padding-left: var(--spacing-md);
padding-right: 36px;
padding-right: 16px;
}
overflow: hidden;
}
Expand Down
8 changes: 4 additions & 4 deletions src/form/Calendar/CalendarDays/CalendarDays.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@

&.startRangeDate {
border-radius: 50%;
background-color: #ff4d87;
background-color: var(--pink-200);
color: var(--black);
}

&.endRangeDate {
border-radius: 50%;
background-color: #ff4d87;
background-color: var(--pink-200);
color: var(--black);
}

&.startRangeDate:hover {
background-color: #ff4d87;
background-color: var(--pink-200);
}

&.endRangeDate:hover {
background-color: #ff4d87;
background-color: var(--pink-200);
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/utils/Theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export const darkColors: Colors = {
700: 'rgba(0, 0, 0, 0.07)',
800: 'rgba(0, 0, 0, 0.08)',
900: 'rgba(0, 0, 0, 0.09)'
},
pink: {
100: '#281e21',
200: '#ff4d87'
}
};

Expand Down

0 comments on commit b195434

Please sign in to comment.