diff --git a/apis/src/components/atoms/direct_challenge_button.rs b/apis/src/components/atoms/direct_challenge_button.rs index 436bcbdc..7a699fff 100644 --- a/apis/src/components/atoms/direct_challenge_button.rs +++ b/apis/src/components/atoms/direct_challenge_button.rs @@ -33,7 +33,7 @@ pub fn DirectChallengeButton(user: StoredValue) -> impl IntoView { diff --git a/apis/src/components/atoms/download_pgn.rs b/apis/src/components/atoms/download_pgn.rs index bf83bdd7..442e8167 100644 --- a/apis/src/components/atoms/download_pgn.rs +++ b/apis/src/components/atoms/download_pgn.rs @@ -42,7 +42,7 @@ pub fn DownloadPgn( view! { @@ -199,7 +203,7 @@ pub fn ChallengeRow(challenge: StoredValue, single: bool) -> } } - class="bg-ant-blue hover:bg-pillbug-teal transform transition-transform duration-300 active:scale-95 text-white font-bold py-1 px-1 rounded focus:outline-none focus:shadow-outline m-1" + class="bg-button-dawn dark:bg-button-twilight hover:bg-pillbug-teal transform transition-transform duration-300 active:scale-95 text-white font-bold py-1 px-1 rounded focus:outline-none focus:shadow-outline m-1" > diff --git a/apis/src/components/molecules/control_buttons.rs b/apis/src/components/molecules/control_buttons.rs index 63e0f76f..1da06a14 100644 --- a/apis/src/components/molecules/control_buttons.rs +++ b/apis/src/components/molecules/control_buttons.rs @@ -111,7 +111,7 @@ pub fn ControlButtons() -> impl IntoView { } } } - "bg-ant-blue hover:bg-pillbug-teal" + "bg-button-dawn dark:bg-button-twilight hover:bg-pillbug-teal" }; let rematch_text = move || { @@ -242,7 +242,7 @@ pub fn ControlButtons() -> impl IntoView { {rematch_text} diff --git a/apis/src/pages/config.rs b/apis/src/pages/config.rs index 12171ada..de8c4079 100644 --- a/apis/src/pages/config.rs +++ b/apis/src/pages/config.rs @@ -8,17 +8,17 @@ use leptos::*; #[component] pub fn Config() -> impl IntoView { view! { -
+
-

Colorscheme:

+

Colorscheme:

-

Preview:

+

Preview:

diff --git a/apis/src/pages/home.rs b/apis/src/pages/home.rs index 3966f7be..e3265cf1 100644 --- a/apis/src/pages/home.rs +++ b/apis/src/pages/home.rs @@ -29,7 +29,7 @@ pub fn Home() -> impl IntoView {
diff --git a/apis/src/pages/login.rs b/apis/src/pages/login.rs index b7b8698f..39e9da47 100644 --- a/apis/src/pages/login.rs +++ b/apis/src/pages/login.rs @@ -16,7 +16,7 @@ pub fn Login(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView

"Don't have an account?" Sign Up diff --git a/apis/src/pages/play.rs b/apis/src/pages/play.rs index 4aa5647f..e326c486 100644 --- a/apis/src/pages/play.rs +++ b/apis/src/pages/play.rs @@ -53,7 +53,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView if is_tall_or_chat() { "flex flex-col" } else { - "grid grid-cols-board-xs sm:grid-cols-board-sm lg:grid-cols-board-lg xxl:grid-cols-board-xxl grid-rows-6 mr-2" + "grid grid-cols-board-xs sm:grid-cols-board-sm lg:grid-cols-board-lg xxl:grid-cols-board-xxl grid-rows-6 pr-2" } }; let go_to_game = Callback::new(move |()| { @@ -74,7 +74,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView view! {

@@ -82,7 +82,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView when=is_tall_or_chat fallback=move || { view! { - +
@@ -94,7 +94,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView >
-
+
@@ -113,7 +113,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView
-
+
@@ -121,7 +121,7 @@ pub fn Play(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView
-
+
diff --git a/apis/src/pages/profile_view.rs b/apis/src/pages/profile_view.rs index 2a7cfcc6..8a72bdec 100644 --- a/apis/src/pages/profile_view.rs +++ b/apis/src/pages/profile_view.rs @@ -62,7 +62,7 @@ pub fn ProfileView(children: ChildrenFn) -> impl IntoView { if tab_view() == view { button_style + " bg-pillbug-teal" } else { - button_style + " bg-ant-blue" + button_style + " bg-button-dawn dark:bg-button-twilight" } }; let still_more_games = RwSignal::from(true); @@ -83,7 +83,7 @@ pub fn ProfileView(children: ChildrenFn) -> impl IntoView { }); view! { -
+ } } diff --git a/apis/tailwind.config.js b/apis/tailwind.config.js index 6c0bec08..c59d9123 100644 --- a/apis/tailwind.config.js +++ b/apis/tailwind.config.js @@ -26,25 +26,28 @@ module.exports = { colors: { transparent: 'transparent', current: 'currentColor', + 'board-twilight': '#47545a', + 'board-dawn': '#edebe9', + 'reserve-twilight': '#212836', + 'reserve-dawn': '#edebe9', + 'header-twilight': '#2e3e48', + 'header-dawn': '#d1d5db', + 'button-twilight': '#7da1b2', + 'button-dawn': '#3574a5', + 'orange-twilight': '#e9ac43', + 'orange-dawn': '#f68c11', 'hive-black': '#3a3a3a', 'hive-white': '#f0ead6', - 'li-hover-dark': '#999', - 'li-hover-light': '#787878', 'light': '#edebe9', 'odd-light': '#f7f6f5', 'even-light': '#ffffff', - 'dark': '#161512', 'odd-dark': '#302E2C', 'even-dark': '#262421', - 'hover-blue-light': '#1b78d0', - 'hover-blue-dark': '#3692e7', - 'blue-light': '#d1e4f6', - 'blue-dark': '#293a49', - 'ant-blue': '#3574a5', 'pillbug-teal': '#40afa1', 'ladybug-red': '#d61a35', 'grasshopper-green': '#3f9b3a', - 'queen-orange': '#f68c11', + 'blue-light': '#d1e4f6', + 'blue-dark': '#293a49', }, dropShadow: { 'w': '1px 1px 1px #888888',