Skip to content

Commit f932370

Browse files
committed
Dark mode fixes
1 parent 5d1d30a commit f932370

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/hexdocs/view/home.gleam

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import lustre/element/html
1313
import lustre/event
1414

1515
pub fn home(model: Model) {
16-
// let go_back = event.on_click(msg.UserClickedGoBack)
1716
let toggle_mode = event.on_click(msg.UserToggledDarkMode)
1817
html.div([class("bg-white dark:bg-gray-900")], [
1918
html.div(
@@ -58,7 +57,7 @@ pub fn home(model: Model) {
5857
html.h1(
5958
[
6059
class(
61-
"text-gray-700 dark:text-gray-700 text-4xl lg:text-5xl",
60+
"text-gray-700 dark:text-gray-200 text-4xl lg:text-5xl",
6261
),
6362
],
6463
[
@@ -172,10 +171,7 @@ pub fn home(model: Model) {
172171
),
173172
],
174173
[
175-
html.text(
176-
"To access a package documentation
177-
",
178-
),
174+
html.text("To access a package documentation"),
179175
],
180176
),
181177
html.span(

src/hexdocs/view/home/footer.gleam

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn hint() {
6363
a.class("absolute"),
6464
a.class("inset-0"),
6565
a.class("bg-gray-50"),
66-
a.class("dark:bg-gray-800"),
66+
a.class("dark:bg-gray-700"),
6767
a.class("rounded-tl-xl"),
6868
a.class("rounded-tr-xl"),
6969
a.class("z-10"),
@@ -74,7 +74,7 @@ pub fn hint() {
7474
a.class("w-14"),
7575
a.class("h-14"),
7676
a.class("bg-gray-100"),
77-
a.class("dark:bg-gray-100"),
77+
a.class("dark:bg-gray-800"),
7878
a.class("rounded-full"),
7979
a.class("flex"),
8080
a.class("items-center"),
@@ -86,7 +86,7 @@ pub fn hint() {
8686
[
8787
a.class("ri-contacts-book-upload-line"),
8888
a.class("text-gray-600"),
89-
a.class("dark:text-gray-600"),
89+
a.class("dark:text-gray-100"),
9090
a.class("text-xl"),
9191
],
9292
[],
@@ -106,7 +106,7 @@ pub fn hint() {
106106
]),
107107
h.a(
108108
[
109-
a.class("text-purple-700 font-medium"),
109+
a.class("text-blue-600 font-medium"),
110110
a.href("https://hexdocs.pm/hex/Mix.Tasks.Hex.Publish.html"),
111111
],
112112
[h.text("here")],
@@ -124,7 +124,7 @@ pub fn hint() {
124124
),
125125
h.a(
126126
[
127-
a.class("text-purple-700 font-medium"),
127+
a.class("text-blue-600 font-medium"),
128128
a.href("https://hexdocs.pm/elixir/writing-documentation.html"),
129129
],
130130
[h.text("here")],
@@ -139,7 +139,7 @@ pub fn hint() {
139139
a.class("absolute"),
140140
a.class("inset-0"),
141141
a.class("bg-gray-100"),
142-
a.class("dark:bg-gray-700"),
142+
a.class("dark:bg-gray-800"),
143143
a.class("rotate-6"),
144144
a.class("left-4"),
145145
a.class("rounded-tl-xl"),

0 commit comments

Comments
 (0)