Skip to content

Commit

Permalink
refactor: css variable color name
Browse files Browse the repository at this point in the history
  • Loading branch information
JCaiDev authored and alcpereira committed Oct 5, 2024
1 parent 4d595e1 commit e4a1f32
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/components/Bubble/Bubble.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.bubble {
border: 1px solid var(--light-grey);
color: var(--light-grey);
border: 1px solid var(--color-neutral-400);
color: var(--color-neutral-400);
padding: 0.125em 0.75em;
border-radius: 1.5em;
flex-shrink: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.header__lines > p {
margin: 0;
color: var(--light-grey);
color: var(--color-neutral-400);
font-size: 20px;
line-height: 1.3;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Profile/Profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
.profile__education-school {
font-weight: 600;
font-size: 14px;
color: var(--light-grey);
color: var(--color-neutral-400);
}

.profile__education-years,
.profile__education-location {
color: var(--light-grey);
color: var(--color-neutral-400);
font-size: 14px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile/ProfileImage/ProfileImage.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}

.profile__header__image__border img {
border: 3px solid var(--red);
border: 3px solid var(--color-primary-500);
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.profile__languages-level {
color: var(--light-grey);
color: var(--color-neutral-400);
}

.profile__languages-container {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Separator/Separator.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.separator {
height: 1px;
width: 100%;
background-color: var(--light-grey-transparent);
background-color: var(--color-neutral-200);
}
4 changes: 2 additions & 2 deletions src/components/Title/Title.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.title {
background-color: var(--red);
color: white;
background-color: var(--color-primary-500);
color: var(--color-neutral-100);
padding: 0.25em 0.5em;
border-radius: 0.5em;
text-transform: uppercase;
Expand Down
9 changes: 5 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
font-weight: 400;
-print-color-adjust: exact;

--red: rgb(167, 67, 67);
--light-grey: rgb(94, 90, 94);
--light-grey-transparent: rgb(94, 90, 94, 0.3);
--black: rgb(20, 20, 20);
--color-primary-500: rgb(167, 67, 67);
--color-neutral-100: rgb(255, 255, 255);
--color-neutral-200: rgb(94, 90, 94, 0.3);
--color-neutral-400: rgb(94, 90, 94);
--color-neutral-900: rgb(20, 20, 20);
}

0 comments on commit e4a1f32

Please sign in to comment.