From 4defa7f3625573fa2853c8139041974c0142d702 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Mon, 4 Nov 2024 13:50:04 +0100 Subject: [PATCH 1/2] better color management for mini buttons --- frontend/src/app.postcss | 8 ++++++ .../(internal)/[model=urlmodel]/+page.svelte | 26 +++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/frontend/src/app.postcss b/frontend/src/app.postcss index e12ea162b..8aec60a90 100644 --- a/frontend/src/app.postcss +++ b/frontend/src/app.postcss @@ -17,3 +17,11 @@ body { transition: none; } } +@layer components { + .btn-mini-primary { + @apply text-gray-50 bg-violet-600 hover:bg-violet-500; + } + .btn-mini-secondary { + @apply text-gray-50 bg-pink-500 hover:bg-pink-400; + } +} diff --git a/frontend/src/routes/(app)/(internal)/[model=urlmodel]/+page.svelte b/frontend/src/routes/(app)/(internal)/[model=urlmodel]/+page.svelte index 21a03f5d6..922637190 100644 --- a/frontend/src/routes/(app)/(internal)/[model=urlmodel]/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/[model=urlmodel]/+page.svelte @@ -59,7 +59,7 @@ {#if !['risk-matrices', 'frameworks', 'requirement-mapping-sets', 'user-groups', 'role-assignments'].includes(URLModel)}