Something went wrong. Try again.
md -> react-email -> html
Something went wrong. Try again.
123456789101112131415161718192021222324252627import { pixelBasedPreset } from "react-email";import type { ComponentProps } from "react";import type { Tailwind } from "react-email";
type TailwindConfig = NonNullable<ComponentProps<typeof Tailwind>["config"]>;
// Inter-first font stack.const FONT_FAMILY = '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif';
// Shared Tailwind config for React Email's <Tailwind> component.// pixelBasedPreset is REQUIRED under the current (Tailwind v4) react-email:// it makes utilities emit px instead of rem, which email clients need.// The default Tailwind gray palette already matches our tokens// (gray-900 = #111827, gray-500 = #6b7280, gray-200 = #e5e7eb), so no custom// colors are needed — we only register the font family.export const tw: TailwindConfig = { presets: [pixelBasedPreset], theme: { extend: { fontFamily: { sans: FONT_FAMILY.split(",").map((s) => s.trim()), }, }, },};