The minimalistic document archiving platform.
fix(ui): remove shadows from ui-component in light mode (#1027)
Corentin Thomassetb154d2f363e8
diff --git a/.changeset/hip-corners-rhyme.md b/.changeset/hip-corners-rhyme.mdnew file mode 100644index 00000000..894b031e--- /dev/null+++ b/.changeset/hip-corners-rhyme.md@@ -0,0 +1,5 @@+---+"@papra/app": patch+---++Removed weird shadows on ui components in light modediff --git a/apps/papra-client/src/modules/ui/components/button.tsx b/apps/papra-client/src/modules/ui/components/button.tsxindex 5c6a3903..1bac520b 100644--- a/apps/papra-client/src/modules/ui/components/button.tsx+++ b/apps/papra-client/src/modules/ui/components/button.tsx@@ -8,14 +8,14 @@ import { splitProps } from 'solid-js';import { cn } from '@/modules/shared/style/cn';export const buttonVariants = cva(- 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-shadow focus-visible:(outline-none ring-1.5 ring-ring) disabled:(pointer-events-none opacity-50) bg-inherit',+ 'inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:(outline-none ring-1.5 ring-ring) disabled:(pointer-events-none opacity-50) bg-inherit',{variants: {variant: {- default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90',- destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',- outline: 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',- secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',+ destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',+ outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',ghost: 'hover:(bg-accent/50 text-accent-foreground)',link: 'text-primary underline-offset-4 hover:underline',},diff --git a/apps/papra-client/src/modules/ui/components/color-swatch-picker.tsx b/apps/papra-client/src/modules/ui/components/color-swatch-picker.tsxindex 56568dc2..85d2cdd4 100644--- a/apps/papra-client/src/modules/ui/components/color-swatch-picker.tsx+++ b/apps/papra-client/src/modules/ui/components/color-swatch-picker.tsx@@ -71,7 +71,7 @@ const ColorPicker: Component<{};export const colorSwatchVariants = cva(- 'rounded-lg border-2 border-background shadow-sm transition-all hover:scale-110 focus-visible:(outline-none ring-1.5 ring-ring ring-offset-1)',+ 'rounded-lg border-2 border-background transition-all hover:scale-110 focus-visible:(outline-none ring-1.5 ring-ring ring-offset-1)',{variants: {size: {diff --git a/apps/papra-client/src/modules/ui/components/combobox.tsx b/apps/papra-client/src/modules/ui/components/combobox.tsxindex 9dfa783a..bd8079ba 100644--- a/apps/papra-client/src/modules/ui/components/combobox.tsx+++ b/apps/papra-client/src/modules/ui/components/combobox.tsx@@ -56,7 +56,7 @@ export function ComboboxTrigger<T extends ValidComponent = 'button'>(props: Poly<ComboboxPrimitive.Triggerclass={cn(- 'flex min-h-9 w-full items-center rounded-md border border-input px-3 shadow-sm bg-inherit',+ 'flex min-h-9 w-full items-center rounded-md border border-input px-3 bg-inherit',local.class,)}{...rest}diff --git a/apps/papra-client/src/modules/ui/components/number-field.tsx b/apps/papra-client/src/modules/ui/components/number-field.tsxindex 54ed6e01..87982ab3 100644--- a/apps/papra-client/src/modules/ui/components/number-field.tsx+++ b/apps/papra-client/src/modules/ui/components/number-field.tsx@@ -98,7 +98,7 @@ export function NumberFieldInput<T extends ValidComponent = 'input'>(props: Polyreturn (<NumberFieldPrimitive.Inputclass={cn(- 'flex h-9 w-full rounded-md border border-input bg-transparent pl-3 pr-16 py-1 text-sm shadow-sm placeholder:text-muted-foreground disabled:(cursor-not-allowed opacity-50) focus-visible:outline-none',+ 'flex h-9 w-full rounded-md border border-input bg-transparent pl-3 pr-16 py-1 text-sm placeholder:text-muted-foreground disabled:(cursor-not-allowed opacity-50) focus-visible:outline-none',local.class,)}{...rest}diff --git a/apps/papra-client/src/modules/ui/components/select.tsx b/apps/papra-client/src/modules/ui/components/select.tsxindex f59033a8..d3f0f841 100644--- a/apps/papra-client/src/modules/ui/components/select.tsx+++ b/apps/papra-client/src/modules/ui/components/select.tsx@@ -29,7 +29,7 @@ export function SelectTrigger<T extends ValidComponent = 'button'>(props: Polymoreturn (<SelectPrimitive.Triggerclass={cn(- 'flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:(ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50) transition-shadow',+ 'flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:(ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50) transition-shadow',local.class,)}{...rest}diff --git a/apps/papra-client/src/modules/ui/components/switch.tsx b/apps/papra-client/src/modules/ui/components/switch.tsxindex dbda0597..a42b5d9d 100644--- a/apps/papra-client/src/modules/ui/components/switch.tsx+++ b/apps/papra-client/src/modules/ui/components/switch.tsx@@ -26,7 +26,7 @@ export function SwitchControl<T extends ValidComponent = 'input'>(props: Polymor<SwitchPrimitive.Input class="[&:focus-visible+div]:(outline-none ring-1.5 ring-ring ring-offset-2 ring-offset-background)" /><SwitchPrimitive.Controlclass={cn(- 'inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input shadow-sm transition-shadow data-[disabled]:(cursor-not-allowed opacity-50) data-[checked]:bg-primary transition-property-[box-shadow,color,background-color]',+ 'inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input data-[disabled]:(cursor-not-allowed opacity-50) data-[checked]:bg-primary transition-property-[box-shadow,color,background-color]',local.class,)}{...rest}diff --git a/apps/papra-client/src/modules/ui/components/textarea.tsx b/apps/papra-client/src/modules/ui/components/textarea.tsxindex a3f60733..8f856df4 100644--- a/apps/papra-client/src/modules/ui/components/textarea.tsx+++ b/apps/papra-client/src/modules/ui/components/textarea.tsx@@ -17,7 +17,7 @@ export function TextArea<T extends ValidComponent = 'textarea'>(props: Polymorphreturn (<TextFieldPrimitiveclass={cn(- 'flex min-h-[60px] w-full rounded-md border border-input bg-inherit px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:(outline-none ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50) transition-shadow',+ 'flex min-h-[60px] w-full rounded-md border border-input bg-inherit px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:(outline-none ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50)',local.class,)}{...rest}diff --git a/apps/papra-client/src/modules/ui/components/textfield.tsx b/apps/papra-client/src/modules/ui/components/textfield.tsxindex 8148a353..31aff088 100644--- a/apps/papra-client/src/modules/ui/components/textfield.tsx+++ b/apps/papra-client/src/modules/ui/components/textfield.tsx@@ -107,7 +107,7 @@ export function TextField<T extends ValidComponent = 'input'>(props: Polymorphicreturn (<TextFieldPrimitive.Inputclass={cn(- 'flex h-9 w-full rounded-md border border-input bg-inherit px-3 py-1 text-sm shadow-sm file:(border-0 bg-transparent text-sm font-medium) placeholder:text-muted-foreground focus-visible:(outline-none ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50) transition-shadow',+ 'flex h-9 w-full rounded-md border border-input bg-inherit px-3 py-1 text-sm file:(border-0 bg-transparent text-sm font-medium) placeholder:text-muted-foreground focus-visible:(outline-none ring-1.5 ring-ring) disabled:(cursor-not-allowed opacity-50) transition-shadow',local.class,)}{...rest}