Skip to content

Commit 8deb413

Browse files
committed
improve legibility in dark theme
make focused inputs more prominent
1 parent f4bdf91 commit 8deb413

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/components/Button/Button.sass

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
padding: 10px 8px
3030

31-
@include colour.background($light: bg, $dark: grey-300)
32-
@include colour.foreground($light: ButtonText, $dark: grey-900)
31+
@include colour.background($light: bg, $dark: grey-200)
32+
@include colour.foreground($light: ButtonText, $dark: grey-800)
3333

3434
@include state.disabled
3535
@include colour.background(grey-100)
@@ -59,27 +59,26 @@
5959
@include shadow(1px, 2px, $blur: 2px, $alpha: 0.1)
6060

6161
@include state.hover
62-
filter: contrast(0.95)
62+
filter: brightness(0.95)
6363
@include shadow(1px, 2px, $blur: 8px, $alpha: 0.15)
6464

6565
@include state.active
66-
filter: contrast(0.65)
66+
filter: brightness(0.8)
6767

6868
@include state.focus-visible
6969
@include _button-border(colour.get(primary))
7070

7171

7272
@include extension($source: Button, $new: primary)
7373

74-
@include colour.background(primary)
74+
@include colour.background($light: primary, $dark: primary-darker)
7575
@include colour.foreground(white)
7676
@include colour.border(primary)
7777

78-
transition-property: background-color
79-
8078
@include state.active
81-
filter: none
82-
@include colour.background($light: primary-darker, $dark: rgb(0, 156, 255))
79+
filter: brightness(0.75)
80+
//@include colour.background($light: primary-darker, $dark: rgb(0, 77, 186))
81+
//@include colour.border(rgb(0, 102, 255))
8382
8483
@include state.focus-visible
8584
@include shadow(0, 0, $important: true)

src/components/Dropdown/components/Dropdown/Dropdown.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171

7272
box-sizing: border-box
7373

74+
border-bottom-width: 2px
75+
7476
& > .text
7577
max-width: calc(100% - 16px)
7678
overflow: hidden

src/components/Slider/Slider.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
border-radius: 4px
3232

33+
border-bottom-width: 2px
34+
3335
@include _slider-thumb
3436
width: 12px
3537
height: 28px

src/components/TextBox/TextBox.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@
2626
padding: 6px 4px
2727

2828
outline: none
29+
30+
border-bottom-width: 2px

src/index.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
outline: none
4747

48-
@include colour.background($light: bg, $dark: grey-200)
48+
@include colour.background($light: bg, $dark: grey-100)
4949
@include border()
5050

5151
@include colour.foreground(fg)

0 commit comments

Comments
 (0)