Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize website colors into variables #591

Merged
2 changes: 1 addition & 1 deletion src/components/Advantages/Advantage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Advantage = ({ title }: AdvantageProps) => {
return (
<li>
<div>
<CheckIcon fontSize="large" htmlColor="#5072EB" />
<CheckIcon fontSize="large" htmlColor="var(--blue)" />
</div>
<p>{title}</p>
</li>
Expand Down
18 changes: 9 additions & 9 deletions src/components/Advantages/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
font-weight: 600;
line-height: 48px;
margin: 0;
color: #47506d;
color: var(--grey);
max-width: 600px;

@media (max-width: 768px) {
Expand All @@ -31,15 +31,15 @@
}

&>span {
color: #5072eb;
color: var(--blue);
}
}

p {
font-size: 1.25rem;
font-weight: 400;
line-height: 30px;
color: #47506d;
color: var(--grey);
margin: 0;

@media (max-width: 768px) {
Expand All @@ -64,19 +64,19 @@
font-size: 1.25rem;
font-weight: 400;
line-height: 30px;
color: #47506d;
color: var(--grey);
margin: 0;

@media (max-width: 768px) {
font-size: 1rem;
}

&>a {
color: #5072eb;
color: var(--blue);
font-weight: 500;

&:hover {
color: #5072eb;
color: var(--blue);
text-underline-offset: 4px;
text-decoration: underline;
}
Expand All @@ -93,10 +93,10 @@
width: 90px;
height: 90px;
border: 1px solid;
border-color: #D7DCE5;
border-color: var(--border-color);
border-radius: 8px;
padding: 18px;
background-color: #FFFFFF;
background-color: var(--white);

@media (max-width: 768px) {
width: 64px;
Expand Down Expand Up @@ -145,6 +145,6 @@
h2,
p,
ul > li > p {
color: #fff;
color: var(--white);
}
}
12 changes: 6 additions & 6 deletions src/components/AuthorBlogPostCard/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
flex-direction: column;
padding: 20px;
border: 1px solid #d7dce5;
border: 1px solid var(--border-color);
border-radius: 16px;
transition: var(--default-transition);

Expand All @@ -12,7 +12,7 @@
}

&:hover {
border: 1px solid #5072eb;
border: 1px solid var(--blue);
}

svg {
Expand All @@ -23,7 +23,7 @@
font-size: 1.25rem;
line-height: 30px;
font-weight: 600;
color: #47506D;
color: var(--grey);
margin: 16px 0;

@media (min-width: 1049px) {
Expand All @@ -50,7 +50,7 @@
}

.articleTag {
color: #625eff;
color: var(--violet);
font-size: 1rem;
font-weight: 600;
line-height: 18px;
Expand Down Expand Up @@ -86,7 +86,7 @@
font-size: 0.875rem;
font-weight: 400;
line-height: 16.8px;
color: #47506d;
color: var(--grey);

}
}
Expand All @@ -104,7 +104,7 @@

span {
background-color: #47506d12;
color: #47506d;
color: var(--grey);
border-radius: 36px;
padding: 4px 16px;
font-size: 0.875rem;
Expand Down
4 changes: 2 additions & 2 deletions src/components/BackgroundImages/shared.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const darkImgStyle = { backgroundColor: '#04192b' };
export const lightImgStyle = { backgroundColor: '#f9fafc' };
export const darkImgStyle = { backgroundColor: 'var(--dark-blue)' };
export const lightImgStyle = { backgroundColor: 'var(--light-blue)' };
2 changes: 1 addition & 1 deletion src/components/Bio/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.authorName {
color: #47506d;
color: var(--grey);
display: flex;
flex-direction: column;
margin-left: 8px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/BlogBanner/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

h3 {
text-transform: uppercase;
color: #ffffff;
color: var(--white);
font-size: 1.5rem;
font-weight: 700;
line-height: 28.8px;
Expand All @@ -36,7 +36,7 @@
}

span {
color: #5072eb;
color: var(--blue);
}
}

Expand All @@ -57,7 +57,7 @@
margin-right: auto;
border-radius: 24px;
overflow: hidden;
background-color: #04192B;
background-color: var(--dark-blue);

@media (max-width: 1350px) {
padding: 48px 30px;
Expand Down
11 changes: 6 additions & 5 deletions src/components/BlogPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const BlogPost = ({
) : null}
<div className={dateAndReadWrapper}>
<div className={iconInfoWrapper}>
<ReadingTimeIcon color="#47506D" />
<ReadingTimeIcon color="var(--grey)" />
<span className={blogPostDate}>
{
post.body.data.childMarkdownRemark
Expand Down Expand Up @@ -271,7 +271,8 @@ const BlogPost = ({
sx={{
minHeight: '57px',
width: '1px',
borderColor: '#d7dce5',
borderColor:
'var(--border-color)',
margin: '0 30px 0 20px',
[theme.breakpoints.down(
520
Expand Down Expand Up @@ -321,7 +322,7 @@ const BlogPost = ({
<div className={rightColumnContainer}>
<div>
<DoneIcon
htmlColor="#5072eb"
htmlColor="var(--blue)"
fontSize="large"
/>
<span>
Expand All @@ -331,7 +332,7 @@ const BlogPost = ({
</div>
<div>
<DoneIcon
htmlColor="#5072eb"
htmlColor="var(--blue)"
fontSize="large"
/>
<span>
Expand All @@ -341,7 +342,7 @@ const BlogPost = ({
</div>
<div>
<DoneIcon
htmlColor="#5072eb"
htmlColor="var(--blue)"
fontSize="large"
/>
<span>
Expand Down
30 changes: 15 additions & 15 deletions src/components/BlogPost/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
.headerInfo {
h1 {
margin-top: 36px;
color: #47506d;
color: var(--grey);
text-transform: uppercase;
}

p {
color: #47506d;
color: var(--grey);
}
}

Expand All @@ -79,7 +79,7 @@

.blogsPostCardTags {
background-color: #e9edfa;
color: #5072eb;
color: var(--blue);
border-radius: 36px;
padding: 4px 16px 4px 16px;
font-weight: 500;
Expand Down Expand Up @@ -110,7 +110,7 @@
}

.blogPostDate {
color: #47506d;
color: var(--grey);
font-size: 1rem;
font-weight: 400;
line-height: 22px;
Expand Down Expand Up @@ -170,7 +170,7 @@
line-height: 48px;

span {
color: #04192b !important;
color: var(--dark-blue) !important;
font-size: 2.25rem;
font-style: normal;
font-weight: 600;
Expand Down Expand Up @@ -214,7 +214,7 @@
.nextStepsAndAboutAuthorSection {
.sectionTopBottomPadding;

background-color: #f9fafc;
background-color: var(--light-blue);
display: flex;
gap: 80px;
justify-content: space-around;
Expand All @@ -230,7 +230,7 @@
font-size: 1.25rem;
font-weight: 600;
line-height: 30px;
color: #04192b;
color: var(--dark-blue);
margin-bottom: 16px;
margin-top: 0;
}
Expand All @@ -246,7 +246,7 @@
p {
font-size: 1rem;
line-height: 30px;
color: #47506d;
color: var(--grey);
margin: 0;
max-width: 780px;
margin-bottom: 16px;
Expand Down Expand Up @@ -275,15 +275,15 @@
.authorAvatarContainer {
display: inline-block;
padding: 4px;
border: 2px solid #5072eb;
border: 2px solid var(--blue);
border-radius: 100%;
margin-right: 20px;
}

.authorNameAndRole {
display: flex;
flex-direction: column;
color: #47506d;
color: var(--grey);
}

.authorName {
Expand Down Expand Up @@ -346,7 +346,7 @@
.globalMaxWidth;

h2 {
color: #47506d;
color: var(--grey);
font-size: 2.25rem;
font-style: normal;
font-weight: 700;
Expand Down Expand Up @@ -379,7 +379,7 @@
font-size: 3rem;
font-weight: 600;
line-height: 4rem;
color: #ffffff;
color: var(--white);
margin: 0;

@media (max-width: 1300px) {
Expand Down Expand Up @@ -414,7 +414,7 @@
gap: 20px;

span {
color: #ffffff;
color: var(--white);
font-size: 1.5rem;
font-weight: 500;
line-height: 30px;
Expand Down Expand Up @@ -445,7 +445,7 @@

a {
border-radius: 4px;
color: #fff;
color: var(--white);
font-size: 1rem;
font-weight: 500;
line-height: 20px;
Expand All @@ -455,7 +455,7 @@
}

.pricingLink {
border: 2px solid #5072eb;
border: 2px solid var(--blue);
padding: 16px 24px;

@media (min-width: 1288px) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlogPostCard/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
transition: var(--default-transition);

&:hover {
border: 1px solid #5072eb;
border: 1px solid var(--blue);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
}
2 changes: 1 addition & 1 deletion src/components/BlogPostPopupModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const dialogStyle = {
'display': 'grid',
'gridTemplateColumns': '0.6fr 0.4fr',
'padding': 0,
'color': '#ffffff',
'color': 'var(--white)',
'marginTop': '124px',
'maxHeight': 'calc(100% - 160px)',
'minHeight': '100px',
Expand Down
Loading
Loading