From 60cfefcc30cdbd9d59e2243807c3349ea4715f53 Mon Sep 17 00:00:00 2001 From: Theosaurus-Rex Date: Fri, 9 Sep 2022 13:23:57 +1000 Subject: [PATCH] style: tweak theme and adjust landing page to match --- assets/tailwind.config.js | 61 +++++++++--------- lib/ash_hq_web/components/code_example.ex | 2 +- lib/ash_hq_web/components/search.ex | 38 +++++------ lib/ash_hq_web/components/version_pills.ex | 2 +- lib/ash_hq_web/gettext.ex | 8 +-- lib/ash_hq_web/pages/docs.ex | 7 +- lib/ash_hq_web/pages/home.ex | 75 +++++++++++----------- lib/ash_hq_web/views/error_helpers.ex | 10 +-- 8 files changed, 106 insertions(+), 97 deletions(-) diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index 52ceb7a..6533f8e 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -25,16 +25,17 @@ module.exports = { colors: { "silver-phoenix": "#EAEBF3", "base-dark": { - 50: "#c2c4d1", - 100: "#b6b8c8", - 200: "#9fa2b7", - 300: "#878ba5", + DEFAULT: "#5E627D", + 50: "#C2C4D1", + 100: "#B6B8C8", + 200: "#9FA2B7", + 300: "#878BA5", 400: "#707594", - 500: "#5e627d", - 600: "#4c5066", - 700: "#3b3d4f", - 800: "#292b37", - 900: "#181920", + 500: "#5E627D", + 600: "#46495D", + 700: "#2E303D", + 800: "#16171D", + 900: "#000000", }, "base-light": { 50: "#f9fafb", @@ -49,28 +50,30 @@ module.exports = { 900: "#111827", }, "primary-dark": { - 50: "#fff7ed", - 100: "#ffedd5", - 200: "#fed7aa", - 300: "#fdba74", - 400: "#fb923c", - 500: "#f97316", - 600: "#ea580c", - 700: "#c2410c", - 800: "#9a3412", - 900: "#7c2d12", + DEFAULT: "#FF5757", + 50: "#FFE1E1", + 100: "#FFD1D1", + 200: "#FFB3B3", + 300: "#FF9494", + 400: "#FF7676", + 500: "#FF5757", + 600: "#FF1F1F", + 700: "#E60000", + 800: "#AE0000", + 900: "#760000", }, "primary-light": { - 50: "#fff7ed", - 100: "#ffedd5", - 200: "#fed7aa", - 300: "#fdba74", - 400: "#fb923c", - 500: "#f97316", - 600: "#ea580c", - 700: "#c2410c", - 800: "#9a3412", - 900: "#7c2d12", + DEFAULT: "#FF914D", + 50: "#FFE6D7", + 100: "#FFDDC7", + 200: "#FFCAA9", + 300: "#FFB78A", + 400: "#FFA46C", + 500: "#FF914D", + 600: "#FF6E15", + 700: "#DC5400", + 800: "#A43F00", + 900: "#6C2900", }, }, }, diff --git a/lib/ash_hq_web/components/code_example.ex b/lib/ash_hq_web/components/code_example.ex index 0595738..4374c4f 100644 --- a/lib/ash_hq_web/components/code_example.ex +++ b/lib/ash_hq_web/components/code_example.ex @@ -13,7 +13,7 @@ defmodule AshHqWeb.Components.CodeExample do def render(assigns) do ~F"""
@@ -56,24 +56,24 @@ defmodule AshHqWeb.Components.Search do
-
-
- {#for type <- AshHq.Docs.Extensions.Search.Types.types()} -
- - -
- {/for} -
-
-
+
+
+ {#for type <- AshHq.Docs.Extensions.Search.Types.types()} +
+ + +
+ {/for} +
+
+
diff --git a/lib/ash_hq_web/components/version_pills.ex b/lib/ash_hq_web/components/version_pills.ex index 11b0c76..cbe6d85 100644 --- a/lib/ash_hq_web/components/version_pills.ex +++ b/lib/ash_hq_web/components/version_pills.ex @@ -40,7 +40,7 @@ defmodule AshHqWeb.Components.VersionPills do {#if @adding_version}