Fonts and logos were not loading on the /amazon-transcreation subpath deployment because CSS @font-face used absolute /fonts/ paths and Image src used bare /amazon-logo.svg — neither respects Next.js basePath. Migrated fonts to next/font/local (bundles into _next/static with correct assetPrefix) and prepend NEXT_PUBLIC_BASE_PATH to logo srcs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
81 lines
2.2 KiB
TypeScript
81 lines
2.2 KiB
TypeScript
import type { Config } from "tailwindcss";
|
|
|
|
const config: Config = {
|
|
darkMode: ["class"],
|
|
content: [
|
|
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./src/hooks/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./src/lib/**/*.{js,ts,jsx,tsx,mdx}",
|
|
],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
amazon: {
|
|
orange: "#FF9900",
|
|
dark: "#232F3E",
|
|
teal: "#007185",
|
|
text: "#0F1111",
|
|
light: "#F5F5F5",
|
|
ember: "#131A22",
|
|
success: "#067D62",
|
|
error: "#CC0C39",
|
|
warning: "#F0AD4E",
|
|
},
|
|
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))",
|
|
},
|
|
},
|
|
fontFamily: {
|
|
sans: ["var(--font-amazon-ember)", "Amazon Ember", "system-ui", "sans-serif"],
|
|
},
|
|
borderRadius: {
|
|
lg: "var(--radius)",
|
|
md: "calc(var(--radius) - 2px)",
|
|
sm: "calc(var(--radius) - 4px)",
|
|
},
|
|
keyframes: {
|
|
"progress-fill": {
|
|
"0%": { width: "0%" },
|
|
"100%": { width: "var(--progress-width)" },
|
|
},
|
|
},
|
|
animation: {
|
|
"progress-fill": "progress-fill 1s ease-out forwards",
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|
|
|
|
export default config;
|