Skip to content

Commit

Permalink
Add dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeog committed Mar 1, 2022
1 parent 1b6c289 commit b5e942f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/EmptyCard/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
font-family: monospace;
font-weight: bold;
font-size: 1.2rem;
color: #aaa;
text-align: center;
border: 1px solid #e8e8e8;
color: var(--gray300);
border: 1px solid var(--gray200);
border-top: none;
border-left: none;
}
2 changes: 1 addition & 1 deletion src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
}

html {
background-color: #f8f8f8;
background-color: var(--gray100);
}
13 changes: 13 additions & 0 deletions src/css/variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:root {
--gray100: #f8f8f8;
--gray200: #e8e8e8;
--gray300: #aaa;
}

@media (prefers-color-scheme: dark) {
:root {
--gray100: #111;
--gray200: #222;
--gray300: #888;
}
}
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as ReactDOM from 'react-dom'

import './css/reset.css'
import './css/variables.css'
import './css/base.css'
import { App } from './App'

Expand Down

0 comments on commit b5e942f

Please sign in to comment.