From 00c8b5678e9b0728e48465eb89eb29a4234d0f37 Mon Sep 17 00:00:00 2001 From: tijl Date: Thu, 5 Sep 2024 00:06:08 +0200 Subject: [PATCH] new UI theming --- tailwind.config.ts | 9 +++-- web/lib/main.css | 6 +++ web/views/blog.html | 2 +- web/views/layouts/base.html | 2 +- web/views/partials/menu.html | 10 +++-- web/views/services.html | 73 +++++++++++++++++++----------------- 6 files changed, 58 insertions(+), 44 deletions(-) diff --git a/tailwind.config.ts b/tailwind.config.ts index 0ffabe5..6c92f84 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -15,15 +15,18 @@ module.exports = { secondary: "#804df3", // #804df3 accent: "#66c4fa", // #66c4fa neutral: "#f7931a", // #212121 - "base-100": "#181818", // previously 171717 - "base-200": "#151515", // previously 151515 - "base-300": "#101010", // previously 121212 + //"base-100": "#181818", // previously 171717 + "base-100": "#0B0908", + "base-200": "#0B0908", // previously 151515 + "base-300": "#121212", // previously 121212 info: "#0ea5e9", success: "#22c55e", warning: "#FBBD23", error: "#ef4444", "--rounded-btn": "0.75rem", + "--border-btn": "2px", + "--tab-border": "2px", //"--btn-text-case": "uppercase", }, }, diff --git a/web/lib/main.css b/web/lib/main.css index 8660fa5..a45e637 100644 --- a/web/lib/main.css +++ b/web/lib/main.css @@ -2,6 +2,12 @@ @import "tailwindcss/components"; @import "tailwindcss/utilities"; +@layer components { + .btn:not(.btn-ghost) { + @apply border-base-300 border-2 ; + } +} + @layer base { *, html { font-family: "Cantarell", "CantarellVF", sans-serif; diff --git a/web/views/blog.html b/web/views/blog.html index b4257c5..d2b0aad 100644 --- a/web/views/blog.html +++ b/web/views/blog.html @@ -2,7 +2,7 @@
{{range .Posts}} + class="card posts-item bg-base-100 border-[2px] border-base-300 shadow-xl cursor-pointer">

{{.Meta.Title}}

diff --git a/web/views/layouts/base.html b/web/views/layouts/base.html index 9efc18f..e7a4341 100644 --- a/web/views/layouts/base.html +++ b/web/views/layouts/base.html @@ -16,7 +16,7 @@
{{template "partials/menu" .}}
-
+
{{embed}}
diff --git a/web/views/partials/menu.html b/web/views/partials/menu.html index 8c56b43..3c0c236 100644 --- a/web/views/partials/menu.html +++ b/web/views/partials/menu.html @@ -1,5 +1,5 @@