@@ -2,19 +2,22 @@ import { createGlobalStyle } from 'styled-components'
22
33const GlobalStyle = createGlobalStyle `
44 :root {
5- --color__background: #202225;
5+ --color__background: ${ ( { theme : { theme } } ) => theme === `dark` ? `#202225` : `#fff` } ;
6+ --color__text: ${ ( { theme : { theme } } ) => theme === `dark` ? `#fff` : `#202225` } ;
7+ --color__border: ${ ( { theme : { theme } } ) => theme === `dark` ? `rgba(255, 255, 255, 0.15)` : `var(--color__text)` } ;
68 --color__green: #4fd8c3;
79 --color__purple: #5e7ce7;
10+ --color__gray: #ECF2FC;
811
912 /* font sizes */
1013 --font-size__h0: 7.451rem;
11- --font-size__h1: 3.815rem ;
12- --font-size__h2: 3.052rem ;
13- --font-size__h3: 2.441rem ;
14- --font-size__h4: 1.953rem ;
15- --font-size__h5: 1.563rem ;
14+ --font-size__h1: 2.488rem ;
15+ --font-size__h2: 2.074rem ;
16+ --font-size__h3: 1.728rem ;
17+ --font-size__h4: 1.44rem ;
18+ --font-size__h5: 1.2rem ;
1619 --font-size__base: 1rem;
17- --font-size__small: 0.8rem ;
20+ --font-size__small: 0.833rem ;
1821 }
1922
2023 ::-moz-selection {
@@ -45,7 +48,7 @@ const GlobalStyle = createGlobalStyle`
4548 font-family: 'Apercu-Mono-Pro';
4649 font-size: var(--font-size__base);
4750 background-color: var(--color__background);
48- color: #fff ;
51+ color: var(--color__text) ;
4952 line-height: 1.75;
5053 -webkit-font-smoothing: antialiased;
5154 -moz-osx-font-smoothing: grayscale;
@@ -104,7 +107,7 @@ const GlobalStyle = createGlobalStyle`
104107 line-height: 1;
105108 color: #fff;
106109 background-color: var(--color__purple);
107- border: 2px solid var(--color__purple );
110+ border: 2px solid var(--color__border );
108111 font-weight: 700;
109112 display: inline-flex;
110113 align-items: center;
@@ -128,10 +131,12 @@ const GlobalStyle = createGlobalStyle`
128131 transition: all .3s ease-in-out;
129132 }
130133
131- &:hover {
132- &::before {
133- width: 200%;
134- left: -5%;
134+ @media (min-width: 992px) {
135+ &:hover {
136+ &::before {
137+ width: 200%;
138+ left: -5%;
139+ }
135140 }
136141 }
137142
0 commit comments