Set up a typography system
“Set up a typography system for my app using [font name] for headings and [font name] for body text. Include sizes for h1-h4, body, small text, and captions. Use consistent line heights and letter spacing.”
Free AI prompt · The Design Book
A ready-to-use prompt from the chapter Typography. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“Add [font name] from Google Fonts to my project. Use the variable font version if available. Set font-display to swap for fast loading. Only load the weights I actually need: 400 for body text and 700 for headings. Set it as the default font for the whole site.”
“Set up a typography system for my app using [font name] for headings and [font name] for body text. Include sizes for h1-h4, body, small text, and captions. Use consistent line heights and letter spacing.”
“Import and apply Google Fonts to my Next.js project. Use [heading font] for all headings and [body font] for paragraph text. Make sure the fonts load efficiently and have proper fallbacks.”
“My page text is hard to read. Fix the typography: make body text at least 16px, set line height to 1.5 for paragraphs, limit line width to about 65 characters, and add clear visual hierarchy between headings and body text.”
“Update my site to use this design system. Colors: Primary [#hex], Secondary [#hex], Background [#hex], Text [#hex], Accent [#hex]. Fonts: Headings [font name] bold, Body [font name] regular. Apply these consistently across all components (buttons, links, headings, card backgrounds, borders, and hover states). Make sure there's enough contrast for readability.”
“I'm uploading a screenshot of a website design I like. Please recreate this layout and visual style for my [type of project]. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Use [font name] for headings and [font name] for body text. Match the spacing, typography hierarchy, and overall feel as closely as possible. Build it with Next.js and Tailwind CSS.”
“I'm uploading a UI design I created in Google Stitch. Please recreate this exact design as a working website. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Match the layout, fonts, spacing, and component styles as closely as possible. Build it with Next.js and Tailwind CSS.”