@@ -21,7 +21,7 @@ defmodule ErrorTracker.Web.CoreComponents do
2121 < . link
2222 class = { [
2323 "phx-submit-loading:opacity-75 py-[11.5px]" ,
24- "text-sm font-semibold text-sky-500 hover:text-white/80" ,
24+ "text-sm font-semibold text-sky-500 light:text-sky-600 hover:text-white/80 light:hover:text-gray-900 /80" ,
2525 @ class
2626 ] }
2727 { @ rest }
@@ -63,14 +63,29 @@ defmodule ErrorTracker.Web.CoreComponents do
6363 def badge ( assigns ) do
6464 color_class =
6565 case assigns . color do
66- :blue -> "bg-blue-900 text-blue-300"
67- :gray -> "bg-gray-700 text-gray-300"
68- :red -> "bg-red-400/10 text-red-300 ring-red-400/20"
69- :green -> "bg-emerald-400/10 text-emerald-300 ring-emerald-400/20"
70- :yellow -> "bg-yellow-900 text-yellow-300"
71- :indigo -> "bg-indigo-900 text-indigo-300"
72- :purple -> "bg-purple-900 text-purple-300"
73- :pink -> "bg-pink-900 text-pink-300"
66+ :blue ->
67+ "bg-blue-900 light:bg-blue-100 text-blue-300 light:text-blue-800"
68+
69+ :gray ->
70+ "bg-gray-700 light:bg-gray-200 text-gray-300 light:text-gray-700"
71+
72+ :red ->
73+ "bg-red-400/10 light:bg-red-100 text-red-300 light:text-red-800 ring-red-400/20 light:ring-red-400/30"
74+
75+ :green ->
76+ "bg-emerald-400/10 light:bg-emerald-100 text-emerald-300 light:text-emerald-800 ring-emerald-400/20 light:ring-emerald-400/30"
77+
78+ :yellow ->
79+ "bg-yellow-900 light:bg-yellow-100 text-yellow-300 light:text-yellow-800"
80+
81+ :indigo ->
82+ "bg-indigo-900 light:bg-indigo-100 text-indigo-300 light:text-indigo-800"
83+
84+ :purple ->
85+ "bg-purple-900 light:bg-purple-100 text-purple-300 light:text-purple-800"
86+
87+ :pink ->
88+ "bg-pink-900 light:bg-pink-100 text-pink-300 light:text-pink-800"
7489 end
7590
7691 assigns = Map . put ( assigns , :color_class , color_class )
@@ -95,14 +110,14 @@ defmodule ErrorTracker.Web.CoreComponents do
95110 < div class = "mt-10 w-full flex " >
96111 < button
97112 :if = { @ page > 1 }
98- class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-900 border border-gray-400 rounded-lg hover:bg-gray-800 hover:text-white "
113+ class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 light:text-gray-500 bg-gray-900 light:bg-gray-100 border border-gray-400 light:border-gray-300 rounded-lg hover:bg-gray-800 light: hover:bg-gray-200 hover: text-white light:hover:text-gray-900 "
99114 phx-click = { @ event_previous }
100115 >
101116 Previous page
102117 </ button >
103118 < button
104119 :if = { @ page < @ total_pages }
105- class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-900 border border-gray-400 rounded-lg hover:bg-gray-800 hover:text-white "
120+ class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 light:text-gray-500 bg-gray-900 light:bg-gray-100 border border-gray-400 light:border-gray-300 rounded-lg hover:bg-gray-800 light: hover:bg-gray-200 hover: text-white light:hover:text-gray-900 "
106121 phx-click = { @ event_next }
107122 >
108123 Next page
@@ -122,7 +137,10 @@ defmodule ErrorTracker.Web.CoreComponents do
122137 < div >
123138 < h2
124139 :if = { assigns [ :title ] }
125- class = { [ "text-sm font-semibold mb-2 uppercase text-gray-400" , @ title_class ] }
140+ class = { [
141+ "text-sm font-semibold mb-2 uppercase text-gray-400 light:text-gray-500" ,
142+ @ title_class
143+ ] }
126144 >
127145 { @ title }
128146 </ h2 >
0 commit comments