Skip to content

Commit c9c367c

Browse files
author
tosih
committed
add dark theme
1 parent b0a8679 commit c9c367c

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

app/assets/stylesheets/application.scss

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// dark theme colors
2+
$bg: #222;
3+
$gray: #888;
4+
$gray-dark: #555;
5+
$text-color: #fafafa;
6+
17
body,
28
ul,
39
li,
@@ -14,8 +20,8 @@ p {
1420
}
1521

1622
body {
17-
background: #fafafa;
18-
color: #555;
23+
background: $bg;
24+
color: $text-color;
1925
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
2026
line-height: 1.4;
2127
}
@@ -34,10 +40,10 @@ body {
3440
}
3541

3642
.todo-list {
37-
background: white;
38-
border: 1px solid #e6e6e6;
43+
background: $gray-dark;
44+
border: 1px solid transparent;
3945
border-radius: 6px;
40-
box-shadow: 0 1px 3px rgba(0,0,0,.06);
46+
box-shadow: 0 1px 3px rgba(0,0,0,.1);
4147
margin: 15px 0 150px;
4248
}
4349

@@ -49,13 +55,13 @@ body {
4955

5056
+ .new_todo,
5157
+ .todo-list-item {
52-
border-top: 1px solid #e6e6e6
58+
border-top: 1px solid rgba(0,0,0,.3);
5359
}
5460
}
5561

5662
.button-complete {
57-
background: #fff;
58-
border: 3px solid #e6e6e6;
63+
background: $gray-dark;
64+
border: 3px solid rgba(0,0,0,.3);
5965
border-radius: 6px;
6066
cursor: pointer;
6167
flex: 0 0 auto;
@@ -65,7 +71,7 @@ body {
6571
}
6672

6773
.button-edit {
68-
color: #888;
74+
color: $gray;
6975
font-size: 15px;
7076
margin-left: auto;
7177
position: relative;
@@ -82,12 +88,11 @@ body {
8288
}
8389

8490
.notification {
85-
background: #fff;
86-
border: 1px solid #e6e6e6;
91+
background: $gray-dark;
92+
border: 1px solid transparent;
8793
border-radius: 6px;
8894
border-width: 1px;
8995
box-shadow: 0 1px 3px rgba(0,0,0,.06);
90-
color: #555;
9196
display: flex;
9297
padding: 15px;
9398
}
@@ -103,4 +108,4 @@ body {
103108

104109
.small {
105110
font-size: 13px;
106-
}
111+
}

0 commit comments

Comments
 (0)