@@ -28,13 +28,17 @@ $tocBreakpoint: 1024px;
2828      text-decoration none ;
2929      position absolute ;
3030      left -1rem  ;
31-       color $grey ;
31+       @include  theme () {
32+         color theme-get (' neutral' 
33+       }
3234      font-size 1.2rem  ;
3335      font-weight 400 ;
3436    }
3537
3638    .anchor :hover  {
37-       color $darkGrey ;
39+       @include  theme () {
40+         color theme-get (' light-text' 
41+       }
3842    }
3943  }
4044
@@ -44,7 +48,9 @@ $tocBreakpoint: 1024px;
4448    font-size 1rem  ;
4549
4650    a  {
47-       color $darkGrey ;
51+       @include  theme () {
52+         color theme-get (' light-text' 
53+       }
4854      text-decoration underline ;
4955    }
5056  }
@@ -63,7 +69,9 @@ $tocBreakpoint: 1024px;
6369}
6470
6571.post__date  {
66-   color $grey ;
72+   @include  theme () {
73+     color theme-get (' neutral' 
74+   }
6775  font-size 0.8rem  ;
6876}
6977
@@ -128,12 +136,18 @@ $tocBreakpoint: 1024px;
128136  text-decoration none ;
129137  padding 0.2em   0.4em  ;
130138  border-radius 3px  ;
131-   background lighten ($primary , 41%  );
132-   color $primary ;
139+   @include  theme () {
140+     background lighten (theme-get (' accent' 41%  );;
141+   }
142+   @include  theme () {
143+     color theme-get (' accent' 
144+   }
133145  font-size 0.8rem  ;
134146
135147  & :hover  {
136-     background lighten ($primary , 38%  );
148+     @include  theme () {
149+       background lighten (theme-get (' accent' 38%  );
150+     }
137151  }
138152}
139153
@@ -182,24 +196,32 @@ $tocBreakpoint: 1024px;
182196}
183197
184198.pagination__label  {
185-   color $grey ;
199+   @include  theme () {
200+     color theme-get (' neutral' 
201+   }
186202  font-size 0.8rem  ;
187203}
188204
189205.pagination__title  {
190-   color $black ;
206+   @include  theme () {
207+     color theme-get (' text' 
208+   }
191209  font-weight 700 ;
192210  margin-top 0.25rem  ;
193211}
194212
195213footer  {
196214  text-align center ;
197215  padding 0  1.5rem  ;
198-   background $white ;
216+   @include  theme () {
217+     background theme-get (' bg' 
218+   }
199219
200220  p  {
201221    margin-top 1rem  ; //  reduce margin top due to social icons' padding
202-     color $grey ;
222+     @include  theme () {
223+       color theme-get (' neutral' 
224+     }
203225    font-size 0.65rem  ;
204226  }
205227}
@@ -214,12 +236,23 @@ footer {
214236
215237      & ::before  {
216238        content : " -" 
217-         color $darkGrey ;
239+         @include  theme () {
240+           color theme-get (' light-text' 
241+         }
218242        position absolute ;
219243        margin-left -15px  ;
220244      }
221245    }
222246  }
247+   
248+   a [href ] {
249+     @include  theme () {
250+       color theme-get (' accent-text' 
251+       & :visited  {
252+         color theme-get (' accent-bg' 
253+       }
254+     }
255+   }
223256}
224257
225258.twitter-tweet.twitter-tweet-rendered  {
@@ -232,12 +265,16 @@ table {
232265  border-spacing 0 ;
233266
234267  thead  {
235-     background $lightGrey ;
268+     @include  theme () {
269+       background theme-get (' dark-bg' 
270+     }
236271  }
237272
238273  th ,
239274  td  {
240275    padding 0.5em   1em  ;
241-     border 1px   double  $greyTableBorder ;
276+     @include  theme () {
277+       border 1px   double  theme-get (' neutral-table-border' 
278+     }
242279  }
243280}
0 commit comments