From 87e6b35ce2fc804b39aea125022fa1dbe6b31855 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 2 Jan 2025 12:04:46 +0300 Subject: [PATCH] CSS component for buttons --- apps/showcase/assets/styles/tailwind/main.css | 10 ++++ .../components/layout/AppDesigner.vue | 47 +++++++++++++------ .../designer/dashboard/DesignDashboard.vue | 10 +--- .../designer/editor/DesignEditorFooter.vue | 18 +------ .../editor/custom/DesignCustomTokens.vue | 16 +------ .../editor/settings/DesignSettings.vue | 17 +------ 6 files changed, 50 insertions(+), 68 deletions(-) diff --git a/apps/showcase/assets/styles/tailwind/main.css b/apps/showcase/assets/styles/tailwind/main.css index b5c61c956..dec8d14e1 100644 --- a/apps/showcase/assets/styles/tailwind/main.css +++ b/apps/showcase/assets/styles/tailwind/main.css @@ -1,3 +1,13 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer components { + .btn-design { + @apply px-3 py-2 bg-zinc-950 disabled:hover:bg-zinc-950 hover:bg-zinc-800 text-white dark:bg-white dark:hover:bg-gray-100 dark:disabled:hover:bg-white dark:text-black rounded-md font-medium cursor-pointer disabled:cursor-auto transition-colors duration-200 focus:outline focus:outline-offset-2 focus:outline-zinc-950 focus:dark:outline-white disabled:opacity-60; + } + + .btn-design-outlined { + @apply px-3 py-2 bg-transparent border border-gray-200 dark:border-gray-700 hover:border-gray-800 dark:hover:border-gray-500 text-black dark:text-white rounded-md font-medium cursor-pointer transition-colors duration-200 focus:outline focus:outline-offset-2 focus:outline-zinc-950 focus:dark:outline-white disabled:opacity-60; + } +} \ No newline at end of file diff --git a/apps/showcase/components/layout/AppDesigner.vue b/apps/showcase/components/layout/AppDesigner.vue index 92d69d05f..b458e6452 100644 --- a/apps/showcase/components/layout/AppDesigner.vue +++ b/apps/showcase/components/layout/AppDesigner.vue @@ -1,18 +1,5 @@