diff --git a/src/App.scss b/src/App.scss
index 620a069529..dabe342329 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -27,4 +27,8 @@
.subTitle {
color: $subTitle;
+
+ &.dark-mode {
+ color: $subTitleDark;
+ }
}
diff --git a/src/_globalColor.scss b/src/_globalColor.scss
index 03b06c22aa..7d43714483 100644
--- a/src/_globalColor.scss
+++ b/src/_globalColor.scss
@@ -10,17 +10,20 @@ $topButtonHover: #000;
// text colors light theme
$titleColor: #000000;
$textColor: #000000;
-$subTitle: #868e96;
+$subTitle: #666666;
$cardSubtitle: #666666;
-$talkCardSubTitle: #7f8287;
+$talkCardSubTitle: #666666;
$blogCardTitleColor: #262626;
-// text color dark theme
+// text colors dark theme
$textColorDark: #ffffff;
+$subTitleDark: #cccccc;
+$cardSubtitleDark: #cccccc;
+$talkCardSubTitleDark: #cccccc;
// toggle switch colors
$toggleCheck: #2196f3;
-$toggleSwitchSliderBG: #ccc;
+$toggleSwitchSliderBG: #cccccc;
// githubRepo specific colors
$githubRepoCardLanguageColorBG: #0000ff;
@@ -80,11 +83,13 @@ $appLink: #09d3ac;
// social media icons
$faceBook: #3b5998;
$linkedin: #0e76a8;
-$github: #333;
$gitlab: #fca326;
$google: #ea4335;
$twitter: #1da1f2;
-$medium: #000;
$stackoverflow: #f48024;
$instagram: #c13584;
$kaggle: #20beff;
+$github: #000000;
+$githubDark: #ffffff;
+$medium: #000000;
+$mediumDark: #ffffff;
diff --git a/src/components/achievementCard/AchievementCard.scss b/src/components/achievementCard/AchievementCard.scss
index 2d41b0de15..1b3f6f5020 100644
--- a/src/components/achievementCard/AchievementCard.scss
+++ b/src/components/achievementCard/AchievementCard.scss
@@ -12,6 +12,9 @@
font-weight: 700;
margin: 15px 0 0 0;
}
+.dark-mode.card-subtitle {
+ color: $cardSubtitleDark;
+}
.card-subtitle {
color: $cardSubtitle;
font-size: 1.063rem;
diff --git a/src/components/blogCard/BlogCard.js b/src/components/blogCard/BlogCard.js
index c74e64aa50..cb272e76ca 100644
--- a/src/components/blogCard/BlogCard.js
+++ b/src/components/blogCard/BlogCard.js
@@ -20,10 +20,10 @@ export default function BlogCard({blog, isDark}) {
}
href="#blog"
>
-
+
{blog.title}
-
+
{blog.description}
diff --git a/src/components/blogCard/BlogCard.scss b/src/components/blogCard/BlogCard.scss
index 2f804c1ea8..23c0e49d81 100644
--- a/src/components/blogCard/BlogCard.scss
+++ b/src/components/blogCard/BlogCard.scss
@@ -1,9 +1,5 @@
@import "../../_globalColor";
-.small-dark {
- color: $textColorDark !important;
-}
-
.blog-container {
border-radius: 10px;
color: $blogCardContainerColor;
@@ -39,6 +35,10 @@
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
margin: 0px;
+
+ &.dark-mode {
+ color: $subTitleDark;
+ }
}
.go-corner {
diff --git a/src/components/educationCard/EducationCard.js b/src/components/educationCard/EducationCard.js
index 5be83d0cee..f96a8fa9dc 100644
--- a/src/components/educationCard/EducationCard.js
+++ b/src/components/educationCard/EducationCard.js
@@ -5,17 +5,17 @@ import StyleContext from "../../contexts/StyleContext";
export default function EducationCard({school}) {
const imgRef = createRef();
+ const {isDark} = useContext(StyleContext);
const GetDescBullets = ({descBullets}) => {
return descBullets
? descBullets.map((item, i) => (
-
+
{item}
))
: null;
};
- const {isDark} = useContext(StyleContext);
if (!school.logo)
console.error(`Image of ${school.name} is missing in education section`);
diff --git a/src/components/experienceCard/ExperienceCard.scss b/src/components/experienceCard/ExperienceCard.scss
index 1d63c93039..6279456618 100644
--- a/src/components/experienceCard/ExperienceCard.scss
+++ b/src/components/experienceCard/ExperienceCard.scss
@@ -101,15 +101,22 @@
line-height: normal;
}
.dark-mode-text {
- color: $textColorDark !important;
+ color: $textColorDark;
+}
+.subTitle.dark-mode-text {
+ color: $subTitleDark;
}
.experience-text-date {
text-align: center;
- color: $textColor;
font-size: 20px;
margin: 0px;
padding-top: 1rem;
font-weight: 600;
+ color: $textColor;
+
+ &.dark-mode-text {
+ color: $textColorDark;
+ }
}
.experience-text-desc {
diff --git a/src/components/footer/Footer.scss b/src/components/footer/Footer.scss
index 590602ab11..b20e65387e 100644
--- a/src/components/footer/Footer.scss
+++ b/src/components/footer/Footer.scss
@@ -6,7 +6,7 @@
}
.dark-mode {
- color: $textColorDark !important;
+ color: $subTitleDark !important;
}
.footer-div {
diff --git a/src/components/githubProfileCard/GithubProfileCard.js b/src/components/githubProfileCard/GithubProfileCard.js
index 11d15c9188..6a209d6297 100644
--- a/src/components/githubProfileCard/GithubProfileCard.js
+++ b/src/components/githubProfileCard/GithubProfileCard.js
@@ -1,16 +1,14 @@
-import React from "react";
+import React, {useContext} from "react";
import "./GithubProfileCard.scss";
import SocialMedia from "../../components/socialMedia/SocialMedia";
import {contactInfo, isHireable} from "../../portfolio";
import emoji from "react-easy-emoji";
import {Fade} from "react-reveal";
+import StyleContext from "../../contexts/StyleContext";
export default function GithubProfileCard({prof}) {
- if (isHireable) {
- prof.hireable = "Yes";
- } else {
- prof.hireable = "No";
- }
+ prof.hireable = isHireable ? "Yes" : "No";
+ const {isDark} = useContext(StyleContext);
return (