Skip to content

Commit 6f4465a

Browse files
style(explorer): remove background and update colors (yetanotherco#727)
Co-authored-by: Mariano A. Nicolini <mariano.nicolini.91@gmail.com>
1 parent 2127b39 commit 6f4465a

9 files changed

Lines changed: 51 additions & 54 deletions

File tree

explorer/assets/css/app.css

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,48 @@
33
@import "tailwindcss/utilities";
44

55
@layer base {
6-
:root {
7-
--background: 101 68% 98%;
8-
--foreground: 101 57% 0%;
9-
--muted: 281 12% 92%;
10-
--muted-foreground: 281 0% 33%;
11-
--popover: 111.43 63.64% 97.84%;
12-
--popover-foreground: 101 57% 0%;
13-
--card: 111.43 63.64% 97.84%;
14-
--card-foreground: 0 0% 0%;
15-
--border: 101 3% 90%;
16-
--input: 101 3% 90%;
17-
--primary: 117.66 58.78% 74.31%;
18-
--primary-foreground: 0 0% 8.85%;
19-
--secondary: 165.75 41.24% 38.04%;
20-
--secondary-foreground: 281 78% 97%;
21-
--accent: 155.58 34.4% 49.02%;
22-
--accent-foreground: 281 78% 97%;
23-
--destructive: 1 83% 34%;
24-
--destructive-foreground: 1 83% 94%;
25-
--ring: 134.46 50.3% 67.65%;
26-
--radius: 0.5rem;
27-
}
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 101 57% 0%;
9+
--muted: 281 12% 92%;
10+
--muted-foreground: 281 0% 33%;
11+
--popover: 0 0% 100%;
12+
--popover-foreground: 101 57% 0%;
13+
--card: 0 0% 100%;
14+
--card-foreground: 0 0% 0%;
15+
--border: 101 3% 90%;
16+
--input: 101 3% 90%;
17+
--primary: 0 0% 0%;
18+
--primary-foreground: 0 0% 100%;
19+
--secondary: 201.97 97.26% 14.31%;
20+
--secondary-foreground: 0 0% 100%;
21+
--accent: 146.75 100% 54.71%;
22+
--accent-foreground: 0 0% 0%;
23+
--destructive: 1 83% 34%;
24+
--destructive-foreground: 1 83% 94%;
25+
--ring: 146.75 100% 54.71%;
26+
--radius: 0.5rem;
27+
}
2828

29-
.dark {
30-
--background: 101 53% 0%;
31-
--foreground: 101 22% 99%;
32-
--muted: 281 12% 8%;
33-
--muted-foreground: 281 0% 67%;
34-
--popover: 101 53% 0%;
35-
--popover-foreground: 101 22% 99%;
36-
--card: 0 0% 1%;
37-
--card-foreground: 0 0% 100%;
38-
--border: 101 3% 12%;
39-
--input: 101 3% 12%;
40-
--primary: 117.66 58.78% 74.31%;
41-
--primary-foreground: 0 0% 11.54%;
42-
--secondary: 164.68 46.53% 19.8%;
43-
--secondary-foreground: 281 78% 97%;
44-
--accent: 165.88 42.5% 31.37%;
45-
--accent-foreground: 281 78% 97%;
46-
--destructive: 1 83% 50%;
47-
--destructive-foreground: 0 0% 100%;
48-
--ring: 165.75 41.24% 38.04%;
49-
}
29+
.dark {
30+
--background: 0 0% 0%;
31+
--foreground: 101 22% 99%;
32+
--muted: 281 12% 8%;
33+
--muted-foreground: 281 0% 67%;
34+
--popover: 101 53% 0%;
35+
--popover-foreground: 101 22% 99%;
36+
--card: 0 0% 1%;
37+
--card-foreground: 0 0% 100%;
38+
--border: 101 3% 12%;
39+
--input: 101 3% 12%;
40+
--primary: 146.75 100% 54.71%;
41+
--primary-foreground: 0 0% 11.54%;
42+
--secondary: 201.97 97.26% 14.31%;
43+
--secondary-foreground: 281 78% 97%;
44+
--accent: 146.75 100% 54.71%;
45+
--accent-foreground: 0 0% 0%;
46+
--destructive: 1 83% 50%;
47+
--destructive-foreground: 0 0% 100%;
48+
--ring: 168.51 79.66% 23.14%;
49+
}
5050
}

explorer/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let liveSocket = new LiveSocket("/live", Socket, {
4040

4141
// Show progress bar on live navigation and form submits
4242
topbar.config({
43-
barColors: { 0: "#9AE497" },
43+
barColors: { 0: "#18FF7F" },
4444
shadowColor: "rgba(0, 0, 0, .3)"
4545
});
4646
window.addEventListener("phx:page-loading-start", (_info) =>

explorer/lib/explorer_web/components/core_components.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ defmodule ExplorerWeb.CoreComponents do
254254

255255
def root_background(assigns) do
256256
~H"""
257-
<div class="bg-[url(/images/home.webp)] bg-cover min-h-screen">
258-
<main class="px-4 sm:px-6 lg:px-8 pt-20 pb-8 selection:bg-primary/80">
257+
<div class="min-h-screen">
258+
<main class="px-4 sm:px-6 lg:px-8 pt-20 pb-8 selection:bg-accent/80">
259259
<%= render_slot(@inner_block) %>
260260
</main>
261261
</div>
@@ -394,8 +394,8 @@ defmodule ExplorerWeb.CoreComponents do
394394
<span class={[
395395
"px-3 py-1 rounded-full",
396396
case @status do
397-
true -> "text-black bg-primary group-hover:bg-primary/80"
398-
false -> "text-white bg-secondary group-hover:bg-secondary/80"
397+
true -> "text-accent-foreground bg-accent group-hover:bg-primary/80"
398+
false -> "text-background bg-foreground group-hover:bg-secondary/80"
399399
end,
400400
@class
401401
]}>

explorer/lib/explorer_web/components/layouts/root.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
</script>
4747
</head>
48-
<body class="antialiased bg-gray-100 dark:bg-zinc-950">
48+
<body class="antialiased bg-gray-100 dark:bg-neutral-950">
4949
<%= @inner_content %>
5050
</body>
5151
</html>

explorer/lib/explorer_web/live/pages/home/index.html.heex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<div class="flex flex-col items-center justify-end w-full min-h-32 relative max-w-96 mx-auto">
2-
<label
3-
for="input_nav_search"
4-
class="text-5xl font-medium tracking-tighter drop-shadow-lg dark:text-primary"
5-
>
2+
<h1 class="text-5xl font-medium tracking-tighter drop-shadow-lg dark:text-primary">
63
Aligned Explorer
7-
</label>
4+
</h1>
85
</div>
96
<div class="mt-8 text-foreground px-2 grid grid-cols-1 sm:grid-cols-3 justify-center gap-3 md:max-w-[50rem] mx-auto">
107
<.card_link
-5.7 MB
Binary file not shown.
-401 KB
Binary file not shown.
-508 KB
Binary file not shown.
316 KB
Loading

0 commit comments

Comments
 (0)