Skip to content

Commit 8da9a3f

Browse files
committed
better button colors
1 parent 21473df commit 8da9a3f

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

assets/scss/dark.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
--background: #FFFFFF;
66
--foreground: #101010;
77
--background-1: #f1f1f6;
8+
--background-2: #e9e9e9;
89
}
910

1011
@media (prefers-color-scheme: dark) {
1112
:root {
1213
--border-color: rgba(255, 255, 255, 0.2);
1314
--background: #101010;
1415
--background-1: #303030;
16+
--background-2: #505050;
1517
--foreground: #FFFFFF;
1618
color-scheme: dark;
1719
color: var(--foreground);

assets/scss/features.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,27 @@
5454
// Buttons
5555

5656
.button {
57-
background: rgba(0, 0, 0, 0.02);
58-
box-shadow: rgba(0, 0, 0, 0.2) 0 5px;
57+
background: var(--background-1);
58+
box-shadow: $border-color 0 5px;
5959
border: 1px solid $border-color;
6060

6161
&, &:visited, &:hover {
62-
color: $gray-dark;
62+
color: var(--foreground);
6363
}
6464

6565
&:hover {
66-
background: white;
66+
background: var(--background);
6767
}
6868

6969
.primary &, .primary-1 &, .stage & {
7070
background: rgba(255, 255, 255, 0.7);
7171
box-shadow: rgba(0, 0, 0, 0.6) 0 5px;
7272
border: none;
7373

74+
&, &:visited, &:hover {
75+
color: #101010;
76+
}
77+
7478
&:hover {
7579
background: white;
7680
}

0 commit comments

Comments
 (0)