Skip to content

Commit

Permalink
Design System Audit: Audit for hardcoded colors (#4783)
Browse files Browse the repository at this point in the history
* Change hardcoded value to a variable

* Change color values to color variables
  • Loading branch information
AHP15 authored Jun 14, 2023
1 parent 214d5ad commit 6d33e6c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _sass/components/_donate-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

.inside-circle-text {
text-align: center;
color: #030D2D;
color: $color-darkblue;
margin: 0;
}

Expand All @@ -66,7 +66,7 @@
.circle-title{
padding: 0.5em;
font-size: 1.5em;
color: #030D2D;
color: $color-darkblue;
margin: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion _sass/components/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ button {
}

.status-Active {
background-color: rgb(187, 255, 187);
background-color: $color-lightgreen;
}

.status-Rebooting {
Expand Down
2 changes: 1 addition & 1 deletion _sass/components/_privacy-policy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
line-height: 1.375;
font-family: "Roboto", sans-serif;
font-weight: 400;
color: #333;
color: $color-black;
}
h2 {
margin-top: 32px;
Expand Down
4 changes: 2 additions & 2 deletions _sass/components/_project-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,15 @@
margin-right: -40px;
margin-bottom: -65px;
padding: 26px 33px 33px 50px;
background: #F7F5F5;
background: $color-pink;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
}

.sdg-description-grid-item {
padding: 25px 19px;
background: #F6F6F6;
background: $color-whitesmoke;
border-radius: 0px 0px 10px 10px;
height: 80%;

Expand Down
2 changes: 1 addition & 1 deletion _sass/components/_projects-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
}

.status-Active {
background-color: rgb(187, 255, 187);
background-color: $color-lightgreen;
}

.status-Rebooting {
Expand Down
2 changes: 1 addition & 1 deletion _sass/components/_projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
}

.status-Active {
background-color: rgb(187, 255, 187);
background-color: $color-lightgreen;
}

.status-Rebooting {
Expand Down

0 comments on commit 6d33e6c

Please sign in to comment.