Forms.md provides extensive theming capabilities to match your brand identity. Customize colors, backgrounds, fonts, and more through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt
Use this file to discover all available pages before exploring further.
Formsmd class options.
Color scheme
Forms.md supports both light and dark modes with automatic persistence.Setting the default scheme
The default color scheme is
"light" if not specified.Color scheme toggle
Enable a toggle button in the footer for users to switch between light and dark modes:Theme configuration
Define custom colors for both light and dark modes through thethemeLight and themeDark options.
Basic theme setup
Theme properties
| Property | Description | Examples |
|---|---|---|
accent | Primary brand color used for buttons, focused inputs, and interactive elements | "#1E3799", "rgb(30, 55, 153)", "blue" |
accentForeground | Text color on accent backgrounds (e.g., button text) | "#FFFFFF", "rgb(255, 255, 255)", "white" |
backgroundColor | Main page background color | "#FFFFFF", "rgb(255, 255, 255)" |
color | Primary text color | "#000000", "rgb(0, 0, 0)", "black" |
All color properties accept HTML color names, hex codes, or RGB values.
Template-based theming
You can also configure themes directly in your Markdown template using settings.Dual-value support
Many settings support two values separated by|| for light and dark modes:
The first value applies to light mode, the second to dark mode.
Background images
Advanced styling
Custom fonts
Form field appearance
- Modern (default)
- Classic
Modern style with rounded corners and subtle shadows:
Field sizing
| Setting | Options | Description |
|---|---|---|
field-size | "sm" | Makes all form fields smaller |
label-style | "classic" | Makes questions and descriptions smaller |
Branding
Logo
Add your brand logo to the header:Use Markdown image syntax. Dual values allow different logos for light/dark modes.
Call to action button
Add a CTA button in the header:Hide Forms.md branding
Layout configuration
Header and footer
header:
hide- Hiddenshow- Visible with default positioningalign- Visible and aligned with content
Vertical alignment
"start" to align content to the top.
Button alignment
center- Center aligned (default)end- Right alignedstretch- Full width
UI controls
Slide controls
Page progress
hide- Hiddenshow- Functional progress indicatordecorative- Visual-only progress bar
Restart button
CSS customization
Custom CSS prefix
Change the default CSS class prefix fromfmd- to your own:
fmd-* to my-*.
Text direction
For right-to-left languages:Forms.md includes RTL support out of the box. Use
dir="rtl" for proper right-to-left layout.Rounded corners
none- No rounded corners- Default (not set) - Standard rounded corners
pill- Fully rounded (pill-shaped) corners
Complete example
Here’s a comprehensive theming configuration:Next steps
Form inputs
Explore all available input types
Localization
Add multi-language support