Files
Folo/apps/ssr/tailwind.config.ts
T
Innei 37e43ee32a refactor(navigation): improve route parameter handling and introduce isPreviewFeed hook
- Updated `useNavigateEntry` to fix a typo in variable name.
- Enhanced `parseRouteParams` to accept search parameters and removed the isPreview logic from it.
- Introduced `useIsPreviewFeed` hook to encapsulate preview logic based on route parameters.
- Updated components to utilize the new `useIsPreviewFeed` hook for cleaner code and better separation of concerns.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 21:55:19 +08:00

66 lines
1.7 KiB
TypeScript

import { extendConfig } from "@follow/configs/tailwindcss/web"
import daisyui from "daisyui"
import resolveConfig from "tailwindcss/resolveConfig"
/** @type {import('tailwindcss').Config} */
export default resolveConfig(
extendConfig({
content: [
"./client/**/*.{ts,tsx}",
"./index.html",
"./node_modules/@follow/components/**/*.{ts,tsx}",
"./node_modules/rc-modal-sheet/**/*.{js,ts,tsx}",
"../../node_modules/rc-modal-sheet/**/*.{js,ts,tsx}",
"../../packages/**/*.{ts,tsx}",
],
plugins: [daisyui],
daisyui: {
logs: false,
darkTheme: "dark",
themes: [
{
light: {
"color-scheme": "light",
primary: "#007AFF", //#0A84FF
accent: "#FF5C00",
"accent-content": "#fff",
neutral: "#212427",
"base-100": "#fff",
"base-content": "#0C0A09",
info: "#32ADE6", // 50 173 230
success: "#34C759",
warning: "#ff9f0a",
error: "#ff453a", // 255 59 48
"--rounded-btn": "1.9rem",
"--tab-border": "2px",
"--tab-radius": ".5rem",
},
dark: {
"color-scheme": "dark",
primary: "#0A84FF",
accent: "#FF5C00",
"accent-content": "#fff",
neutral: "#2a2a2a",
"base-100": "#121212",
"base-content": "#FAFAF9",
info: "#32ADE6", // 50 173 230
success: "#34C759",
warning: "#ff9f0a",
error: "#ff453a", // 255 59 48
"--rounded-btn": "1.9rem",
"--tab-border": "2px",
"--tab-radius": ".5rem",
},
},
],
},
}),
)