design: improve shadows

This commit is contained in:
Xylight authored and xylight committed 2025-10-12 18:22:30 +00:00
1 parent 98af3f5e05
commit e8e33e7e92
6 files changed
+13 -9

No files matched your search

+7 -2
View File
@@ -42,8 +42,13 @@
--color-zinc-925: rgb(var(--c-z-925, 28 28 32));
--color-zinc-950: rgb(var(--c-z-950, 25 25 29));
--color-primary-100: rgb(var(--c-p-100, 241 245 249));
--color-primary-900: rgb(var(--c-p-900, 15 23 42));
/* dark theme */
--color-primary-100: rgb(var(--c-p-100, 248 248 251));
--color-primary-200: rgb(var(--c-p-200, 175 175 185));
/* light theme */
--color-primary-800: rgb(var(--c-p-900, 20 28 47));
--color-primary-900: rgb(var(--c-p-800, 15 23 42));
--color-black: rgb(var(--c-o-black, 0 0 0));
--color-white: rgb(var(--c-o-white, 255 255 255));
+2 -2
View File
@@ -146,10 +146,10 @@
{/if}
<div
class={[
'flex flex-col border border-slate-200 border-b-slate-300 dark:border-zinc-800',
'flex flex-col border border-slate-200 border-b-slate-300 dark:border-zinc-800',
'focus-within:border-primary-900 dark:focus-within:border-primary-100 focus-within:ring-3 ring-slate-300 dark:ring-zinc-700',
'bg-white dark:bg-zinc-950',
'rounded-2xl overflow-hidden transition-colors',
'rounded-2xl overflow-hidden transition-colors shadow-xs',
label && 'mt-1',
clazz,
]}
+1 -1
View File
@@ -46,7 +46,7 @@
<nav
aria-label={$t('aria.pagination.nav')}
class={[
'flex flex-row gap-2 items-center justify-center bg-white dark:bg-zinc-900',
'flex flex-row gap-2 items-center justify-center bg-white dark:bg-zinc-950',
'border border-slate-200 dark:border-zinc-800 rounded-full overflow-hidden w-max mx-auto p-0.5',
'shadow-md',
]}
-1
View File
@@ -130,7 +130,6 @@
background-color: var(--color-primary-900);
color: var(--color-slate-50);
border-radius: var(--radius-xl);
height: 80%;
@variant hover {
color: var(--color-slate-50);
+2 -2
View File
@@ -100,7 +100,7 @@
size = 'md',
rounding = 'xl',
alignment = 'center',
shadow = color != 'tertiary' ? 'none' : 'none',
shadow = color == 'primary' || color == 'secondary' ? 'sm' : 'none',
disabled,
loaderWidth = undefined,
href = undefined,
@@ -185,7 +185,7 @@
.btn-primary {
border: 1px solid transparent;
background-color: var(--color-primary-900);
background: var(--color-primary-900);
color: var(--color-slate-50);
@variant dark {
+1 -1
View File
@@ -95,7 +95,7 @@
bind:this={element}
class={[
buttonSize[size],
'btn btn-secondary select rounded-xl appearance-none pr-6! w-full',
'btn btn-secondary select rounded-xl appearance-none pr-6! w-full shadow-xs',
selectClass,
clazz,
]}