Overview
The Appearance configuration types allow you to customize the look and feel of Mantlz forms. This includes theme selection, CSS variables for colors and typography, and element-level CSS class customization.Appearance Interface
Properties
Base theme mode for the form. Sets the default color scheme.
CSS variables for global styling properties like colors, typography, and spacing.
CSS class names to apply to specific form elements for granular styling control.
AppearanceVariables Interface
Properties
Primary brand color used for buttons, links, and accents. Accepts any valid CSS color value.Example:
"#6366f1", "rgb(99, 102, 241)", "hsl(239, 84%, 67%)"Background color for the form container.Example:
"#ffffff", "#1f2937"Background color for input fields.Example:
"#f9fafb", "#374151"Primary text color for labels, descriptions, and general text.Example:
"#111827", "#f3f4f6"Text color specifically for input field values.Example:
"#1f2937", "#e5e7eb"Color for error messages and validation states.Example:
"#ef4444", "#dc2626"Color for success messages and positive states.Example:
"#10b981", "#059669"Border radius for form elements. Accepts any valid CSS border-radius value.Example:
"0.375rem", "8px", "0" (for sharp corners)Font family for all form text. Use system fonts or web fonts.Example:
"Inter, sans-serif", "'Helvetica Neue', Arial, sans-serif"Base font size for form text.Example:
"14px", "0.875rem", "16px"Font weight for form text.Example:
"400", "500", "normal", "medium"AppearanceElements Interface
Properties
All properties accept CSS class names as strings. These classes are applied to their respective elements.CSS classes for the main form container/card element.Example:
"shadow-xl rounded-lg p-8"CSS classes for the form title/heading.Example:
"text-3xl font-bold mb-4"CSS classes for the form description text.Example:
"text-gray-600 mb-6"CSS classes for individual form field containers.Example:
"mb-4 space-y-2"CSS classes for form field labels.Example:
"font-medium text-sm"CSS classes for form input elements (text, email, textarea, etc.).Example:
"border-2 focus:ring-2 focus:ring-blue-500"CSS classes for form submit button.Example:
"hover:scale-105 transition-transform duration-200"CSS classes for error message elements.Example:
"text-sm text-red-600 mt-1"CSS classes for the users joined counter display.Example:
"text-xs text-gray-500 italic"Usage Examples
Related Types
- MantlzProps - Main component props including appearance