Skip to content

An AI-powered search engine with a generative UI

feat: add accent blue color variables and update search mode toggle styles

Yoshiki Miura751e89b1e22e
diff --git a/app/globals.css b/app/globals.css
index 3da32f90..e5167bb7 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -43,6 +43,10 @@
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
+
+ --accent-blue: 210 100% 97%;
+ --accent-blue-foreground: 210 100% 50%;
+ --accent-blue-border: 210 100% 90%;
}
.dark {
@@ -78,6 +82,10 @@
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
+
+ --accent-blue: 210 100% 10%;
+ --accent-blue-foreground: 210 100% 80%;
+ --accent-blue-border: 210 100% 25%;
}
}
diff --git a/components/search-mode-toggle.tsx b/components/search-mode-toggle.tsx
index 8d9e7f21..d1bcff0d 100644
--- a/components/search-mode-toggle.tsx
+++ b/components/search-mode-toggle.tsx
@@ -28,9 +28,10 @@ export function SearchModeToggle() {
onPressedChange={handleSearchModeChange}
variant="outline"
className={cn(
- 'gap-1 px-3 border border-input text-muted-foreground',
- 'data-[state=on]:bg-blue-50 data-[state=on]:text-blue-500 data-[state=on]:border-blue-100',
- 'dark:data-[state=on]:bg-blue-950 dark:data-[state=on]:text-blue-400 dark:data-[state=on]:border-blue-900',
+ 'gap-1 px-3 border border-input text-muted-foreground bg-background',
+ 'data-[state=on]:bg-accent-blue',
+ 'data-[state=on]:text-accent-blue-foreground',
+ 'data-[state=on]:border-accent-blue-border',
'hover:bg-accent hover:text-accent-foreground rounded-full'
)}
>
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 0fbbe6f1..ce3f65f9 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,102 +1,104 @@
-import type { Config } from "tailwindcss";
-const { fontFamily } = require("tailwindcss/defaultTheme");
+import type { Config } from 'tailwindcss'
+const { fontFamily } = require('tailwindcss/defaultTheme')
const config = {
- darkMode: ["class"],
+ darkMode: ['class'],
content: [
- "./pages/**/*.{ts,tsx}",
- "./components/**/*.{ts,tsx}",
- "./app/**/*.{ts,tsx}",
- "./src/**/*.{ts,tsx}",
+ './pages/**/*.{ts,tsx}',
+ './components/**/*.{ts,tsx}',
+ './app/**/*.{ts,tsx}',
+ './src/**/*.{ts,tsx}'
],
- prefix: "",
+ prefix: '',
theme: {
- container: {
- center: true,
- padding: '2rem',
- screens: {
- '2xl': '1400px'
- }
- },
- extend: {
- colors: {
- border: 'hsl(var(--border))',
- input: 'hsl(var(--input))',
- ring: 'hsl(var(--ring))',
- background: 'hsl(var(--background))',
- foreground: 'hsl(var(--foreground))',
- primary: {
- DEFAULT: 'hsl(var(--primary))',
- foreground: 'hsl(var(--primary-foreground))'
- },
- secondary: {
- DEFAULT: 'hsl(var(--secondary))',
- foreground: 'hsl(var(--secondary-foreground))'
- },
- destructive: {
- DEFAULT: 'hsl(var(--destructive))',
- foreground: 'hsl(var(--destructive-foreground))'
- },
- muted: {
- DEFAULT: 'hsl(var(--muted))',
- foreground: 'hsl(var(--muted-foreground))'
- },
- accent: {
- DEFAULT: 'hsl(var(--accent))',
- foreground: 'hsl(var(--accent-foreground))'
- },
- popover: {
- DEFAULT: 'hsl(var(--popover))',
- foreground: 'hsl(var(--popover-foreground))'
- },
- card: {
- DEFAULT: 'hsl(var(--card))',
- foreground: 'hsl(var(--card-foreground))'
- },
- chart: {
- '1': 'hsl(var(--chart-1))',
- '2': 'hsl(var(--chart-2))',
- '3': 'hsl(var(--chart-3))',
- '4': 'hsl(var(--chart-4))',
- '5': 'hsl(var(--chart-5))'
- }
- },
- borderRadius: {
- lg: 'var(--radius)',
- md: 'calc(var(--radius) - 2px)',
- sm: 'calc(var(--radius) - 4px)'
- },
- keyframes: {
- 'accordion-down': {
- from: {
- height: '0'
- },
- to: {
- height: 'var(--radix-accordion-content-height)'
- }
- },
- 'accordion-up': {
- from: {
- height: 'var(--radix-accordion-content-height)'
- },
- to: {
- height: '0'
- }
- }
- },
- animation: {
- 'accordion-down': 'accordion-down 0.2s ease-out',
- 'accordion-up': 'accordion-up 0.2s ease-out'
- },
- fontFamily: {
- sans: [
- 'var(--font-sans)',
- ...fontFamily.sans
- ]
- }
- }
+ container: {
+ center: true,
+ padding: '2rem',
+ screens: {
+ '2xl': '1400px'
+ }
+ },
+ extend: {
+ colors: {
+ border: 'hsl(var(--border))',
+ input: 'hsl(var(--input))',
+ ring: 'hsl(var(--ring))',
+ background: 'hsl(var(--background))',
+ foreground: 'hsl(var(--foreground))',
+ primary: {
+ DEFAULT: 'hsl(var(--primary))',
+ foreground: 'hsl(var(--primary-foreground))'
+ },
+ secondary: {
+ DEFAULT: 'hsl(var(--secondary))',
+ foreground: 'hsl(var(--secondary-foreground))'
+ },
+ destructive: {
+ DEFAULT: 'hsl(var(--destructive))',
+ foreground: 'hsl(var(--destructive-foreground))'
+ },
+ muted: {
+ DEFAULT: 'hsl(var(--muted))',
+ foreground: 'hsl(var(--muted-foreground))'
+ },
+ accent: {
+ DEFAULT: 'hsl(var(--accent))',
+ foreground: 'hsl(var(--accent-foreground))',
+ blue: {
+ DEFAULT: 'hsl(var(--accent-blue))',
+ foreground: 'hsl(var(--accent-blue-foreground))',
+ border: 'hsl(var(--accent-blue-border))'
+ }
+ },
+ popover: {
+ DEFAULT: 'hsl(var(--popover))',
+ foreground: 'hsl(var(--popover-foreground))'
+ },
+ card: {
+ DEFAULT: 'hsl(var(--card))',
+ foreground: 'hsl(var(--card-foreground))'
+ },
+ chart: {
+ '1': 'hsl(var(--chart-1))',
+ '2': 'hsl(var(--chart-2))',
+ '3': 'hsl(var(--chart-3))',
+ '4': 'hsl(var(--chart-4))',
+ '5': 'hsl(var(--chart-5))'
+ }
+ },
+ borderRadius: {
+ lg: 'var(--radius)',
+ md: 'calc(var(--radius) - 2px)',
+ sm: 'calc(var(--radius) - 4px)'
+ },
+ keyframes: {
+ 'accordion-down': {
+ from: {
+ height: '0'
+ },
+ to: {
+ height: 'var(--radix-accordion-content-height)'
+ }
+ },
+ 'accordion-up': {
+ from: {
+ height: 'var(--radix-accordion-content-height)'
+ },
+ to: {
+ height: '0'
+ }
+ }
+ },
+ animation: {
+ 'accordion-down': 'accordion-down 0.2s ease-out',
+ 'accordion-up': 'accordion-up 0.2s ease-out'
+ },
+ fontFamily: {
+ sans: ['var(--font-sans)', ...fontFamily.sans]
+ }
+ }
},
- plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
-} satisfies Config;
+ plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography')]
+} satisfies Config
-export default config;
+export default config