Completely fixed theme colors

This commit is contained in:
Hazem Krimi
2021-09-05 16:44:33 +01:00
parent d665157e23
commit 9d4327f3c7
12 changed files with 50 additions and 46 deletions
+12
View File
@@ -69,6 +69,18 @@ class Doc extends Document {
const root = document.documentElement;
root.style.setProperty('--theme', theme);
root.style.setProperty(
'--background',
theme === 'light' ? '#F9F9F9' : '#262626'
);
root.style.setProperty(
'--secondary-background',
theme === 'light' ? 'white' : '#2F2F2F'
);
root.style.setProperty(
'--text',
theme === 'light' ? 'black' : 'white'
);
})();
`
}}
+1 -1
View File
@@ -47,7 +47,7 @@ const Wrapper = styled.div`
}
.blue {
color: #1573ca;
color: ${({ theme }) => theme.colors.blue};
@media (max-width: 768px) {
margin-top: 0.5rem;