web search done right
make searchbar border more visible on low res displays
Mikkel Denker9f10c70712f6
diff --git a/frontend/src/app.css b/frontend/src/app.cssindex 6cad7d8a..bd4293ee 100644--- a/frontend/src/app.css+++ b/frontend/src/app.css@@ -3,11 +3,14 @@@tailwind utilities;@layer base {+:root,html {@apply theme-light bg-base-100 text-base-content transition-colors duration-300;}+@media (prefers-color-scheme: dark) {+:root,html {@apply theme-dark;@@ -17,6 +20,6 @@*,::before,::after {- @apply border-base-300;+ @apply border-base-400;}-}+}\ No newline at end of filediff --git a/frontend/src/lib/components/Searchbar.svelte b/frontend/src/lib/components/Searchbar.svelteindex 95bc4702..da914ce8 100644--- a/frontend/src/lib/components/Searchbar.svelte+++ b/frontend/src/lib/components/Searchbar.svelte@@ -88,7 +88,7 @@<labelfor="searchbar"class={twJoin(- 'group relative grid w-full grid-cols-[auto_1fr_auto] items-center rounded-3xl border border-base-300 py-0.5 pl-5 pr-0.5 transition focus-within:shadow',+ 'group relative grid w-full grid-cols-[auto_1fr_auto] items-center rounded-3xl border border-base-400 py-0.5 pl-5 pr-0.5 transition focus-within:shadow',hasFocus && suggestions.length > 0 && 'rounded-b-none',hasFocus && 'shadow',)}@@ -128,7 +128,7 @@/><divclass={twJoin(- 'absolute -inset-x-px bottom-0 translate-y-full flex-col overflow-hidden rounded-3xl rounded-t-none border border-t-0 border-base-300 bg-base-100 shadow',+ 'absolute -inset-x-px bottom-0 translate-y-full flex-col overflow-hidden rounded-3xl rounded-t-none border border-t-0 border-base-400 bg-base-100 shadow',hasFocus ? 'flex' : 'hidden',)}role="listbox"diff --git a/frontend/src/routes/explore/+page.svelte b/frontend/src/routes/explore/+page.svelteindex c4f1ac7c..37222ed8 100644--- a/frontend/src/routes/explore/+page.svelte+++ b/frontend/src/routes/explore/+page.svelte@@ -69,7 +69,7 @@</div><formclass={twJoin(- 'mb-2 flex w-full max-w-lg rounded-full border border-base-200 bg-base-100 p-[2px] pl-3 transition focus-within:shadow',+ 'mb-2 flex w-full max-w-lg rounded-full border border-base-400 bg-base-100 p-[2px] pl-3 transition focus-within:shadow',)}id="site-input-container"on:submit|preventDefault={() => addWebsite(inputWebsite, true)}diff --git a/frontend/src/themes/ayu.ts b/frontend/src/themes/ayu.tsindex 0b0b8043..2db9c318 100644--- a/frontend/src/themes/ayu.ts+++ b/frontend/src/themes/ayu.ts@@ -48,6 +48,7 @@ export const ayuMirageTheme = theme({base100: mirage[5],base200: mirage[4],base300: mirage[3],+ base400: mirage[2],info: mirage[11],success: mirage[17],warning: mirage[28],diff --git a/frontend/src/themes/base.ts b/frontend/src/themes/base.tsindex 5f51c766..1c59b72a 100644--- a/frontend/src/themes/base.ts+++ b/frontend/src/themes/base.ts@@ -24,6 +24,7 @@ type Colors = {base100: Color;base200?: Color;base300?: Color;+ base400?: Color;baseContent?: Color;info: Color;@@ -71,6 +72,7 @@ export const theme = (opts: ThemeOpts) => {neutralContent: opts.colors?.neutralContent ?? foreground(opts.colors.neutral),base200: opts.colors?.base200 ?? colord(opts.colors.base100).darken().toHex(),base300: opts.colors?.base300 ?? colord(opts.colors.base100).darken().darken().toHex(),+ base400: opts.colors?.base400 ?? colord(opts.colors.base100).darken().darken().toHex(),baseContent: opts.colors?.baseContent ?? foreground(opts.colors.base100),infoFocus: opts.colors?.infoFocus ?? focus(opts.colors.info),infoContent: opts.colors?.infoContent ?? foreground(opts.colors.info),diff --git a/frontend/src/themes/dark.ts b/frontend/src/themes/dark.tsindex aa1f63ed..7c4d6d45 100644--- a/frontend/src/themes/dark.ts+++ b/frontend/src/themes/dark.ts@@ -23,6 +23,7 @@ export const darkTheme = theme({base100: base.stone[900],base200: base.stone[800],base300: base.stone[700],+ base400: base.stone[600],baseContent: base.island[50],info: base.navy[700],diff --git a/frontend/src/themes/light.ts b/frontend/src/themes/light.tsindex 8ffa1eed..f30dabaf 100644--- a/frontend/src/themes/light.ts+++ b/frontend/src/themes/light.ts@@ -21,6 +21,7 @@ export const lightTheme = theme({base100: '#fff',base200: base.slate[100],base300: base.slate[200],+ base400: base.slate[300],baseContent: base.slate[900],info: base.navy[500],diff --git a/frontend/src/themes/nord.ts b/frontend/src/themes/nord.tsindex cf42cbc5..410a62e9 100644--- a/frontend/src/themes/nord.ts+++ b/frontend/src/themes/nord.ts@@ -33,6 +33,7 @@ export const nordTheme = theme({base100: nord[0],base200: nord[1],base300: nord[2],+ base400: nord[3],info: nord[8],success: nord[14],warning: nord[13],diff --git a/frontend/src/themes/pastel.ts b/frontend/src/themes/pastel.tsindex 72b8369f..a3ad1c9b 100644--- a/frontend/src/themes/pastel.ts+++ b/frontend/src/themes/pastel.ts@@ -23,6 +23,7 @@ export const pastelTheme = theme({base100: 'rgb(255, 255, 255)',base200: base.slate[100],base300: base.slate[200],+ base400: base.slate[300],baseContent: base.slate[900],info: base.navy[300],diff --git a/frontend/tailwind.config.ts b/frontend/tailwind.config.tsindex 4c16c0f2..b42c0384 100644--- a/frontend/tailwind.config.ts+++ b/frontend/tailwind.config.ts@@ -36,6 +36,7 @@ export default {...color('base-100'),...color('base-200'),...color('base-300'),+ ...color('base-400'),...color('base-content'),...colorFocusContent('info'),...colorFocusContent('success'),