Retype’s theme system lets you customize the visual appearance of your site by overriding built-in theme variables. You can adjust colors, typography, spacing, and other design elements to match your brand.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/retypeapp/retype/llms.txt
Use this file to discover all available pages before exploring further.
Quick start
The fastest way to customize your site is to set abase-color in your retype.yml:
retype.yml
base-color alone produces a cohesive brand update across the entire site.
Configuration structure
Thetheme key in retype.yml supports two sections: base (light mode) and dark (dark mode).
base theme
The base theme controls the light mode appearance and serves as the foundation for your site’s visual style:
retype.yml
dark theme
The dark theme applies only when the visitor switches to dark mode. Variables defined here override the base theme variables:
retype.yml
Examples
Brand color
Apply your brand’s primary color:retype.yml
Typography
Adjust link weight, active navigation weight, and heading color:retype.yml
Dark mode
Fine-tune the dark mode experience:retype.yml
Component colors
Override semantic status colors and image rounding:retype.yml
Light and dark together
Configure both modes in a single file:retype.yml
Best practices
Start withbase-color. Make a single brand color change first and review the result before expanding into full theme customization.
Prioritize contrast. Text and background colors must have sufficient contrast for readability and accessibility. Use an online contrast checker to validate against WCAG standards.
Test both modes. A color that looks good in light mode may appear washed out or harsh in dark mode. Always review both states.
Use semantic variables. Prefer referencing existing variables over hardcoding hex values:
Troubleshooting
Theme not applied
Theme not applied
- Confirm you have a valid Retype Pro license or have set
start.pro: trueinretype.yml. - Check the YAML syntax in your
retype.ymlfile — indentation errors are a common cause. - Verify that theme variable names match exactly as documented.
Dark mode looks wrong
Dark mode looks wrong
darktheme variables only apply when the visitor is in dark mode. Use the theme toggle on your site to test.- Some variables need to be set in both
baseanddarkto maintain proper contrast. - Make sure you haven’t accidentally placed
darkvariables inside thebaseblock.
Variable name errors
Variable name errors
- All variable names use
kebab-case(hyphens, not underscores). - Variable names are case-sensitive.
- Do not include the
--CSS custom property prefix in yourretype.ymlconfiguration.
