Config keys: design, colors, themes
Overview
The design configuration section controls the visual appearance and branding of your application, including colors, themes, logos, and fonts. This allows you to match the wallet application to your brand identity.
Colors Configuration
The application uses a comprehensive color system with primary and secondary brand colors, along with semantic colors for different UI states.
Brand Colors
-
primary - Primary brand color (string)
- Used for headers, drawers, main buttons, and primary UI elements
- Example:
"#5969F6" - Default:
"#5969F6"
-
secondary - Secondary brand color (string)
- Used for accents and secondary UI elements
- Provides contrast to the primary color
- Example:
"#A4A5F5" - Default:
"#A4A5F5"
-
primaryContrast - Text/icon color on primary background (string)
- Ensures legibility on primary color
- Example:
"#ffffff" - Default:
"#f6f6f6"
-
secondaryContrast - Text/icon color on secondary background (string)
- Ensures legibility on secondary color
- Example:
"#303030" - Default:
"#303030"
Semantic Colors
-
error - Error state color (string)
- Used for error messages and failed states
- Default:
"#f44336"
-
warning - Warning state color (string)
- Used for warning messages and cautions
- Default:
"#FC8755"
-
success - Success state color (string)
- Used for success messages and completed states
- Default:
"#4CAF50"
-
info - Information state color (string)
- Used for informational messages
- Default:
"#2196f3"
-
positive - Positive value color (string)
- Used for positive amounts and gains
- Default:
"#4CAF50"
-
negative - Negative value color (string)
- Used for negative amounts and losses
- Default:
"#f44336"
Background Colors
-
background - Main background color (string)
- Default:
"#ffffff"
- Default:
-
surface - Surface/card background color (string)
- Default:
"#f5f5f5"
- Default:
Neutral Colors
-
grey1 - Light grey (string)
- Default:
"#FAFAFA"
- Default:
-
grey2 - Medium grey (string)
- Default:
"#E0E0E0"
- Default:
-
grey3 - Dark grey (string)
- Default:
"#B8B7C6"
- Default:
-
font - Default font color (string)
- Default:
"#707070"
- Default:
Themes Configuration
Control dark mode and theme preferences.
Dark Theme
-
themes.dark.enabled - Enable dark theme option (boolean)
- Default:
true
- Default:
-
themes.dark.default - Set dark theme as default (boolean)
- Default:
false
- Default:
Logo Configuration
Customize your application logo and branding.
-
logo.url - URL to your logo image (string)
- Example:
"https://your-domain.com/logo.png"
- Example:
-
logo.width - Logo width in pixels (integer)
- Example:
200
- Example:
-
logo.height - Logo height in pixels (integer)
- Example:
60
- Example:
-
logo.alt - Alt text for logo (string)
- Example:
"Company Logo"
- Example:
Favicon Configuration
Set your application favicon.
- favicon.url - URL to favicon (string)
- Example:
"https://your-domain.com/favicon.ico"
- Example:
Font Configuration
Customize application fonts.
-
fonts.primary - Primary font family (string)
- Example:
"Roboto" - Default:
"Roboto"
- Example:
-
fonts.secondary - Secondary font family (string)
- Example:
"Arial" - Default:
"Arial"
- Example:
Configuration Example
{
"colors": {
"primary": "#1976d2",
"secondary": "#dc004e",
"primaryContrast": "#ffffff",
"secondaryContrast": "#303030",
"background": "#ffffff",
"surface": "#f5f5f5",
"error": "#f44336",
"warning": "#ff9800",
"info": "#2196f3",
"success": "#4caf50",
"positive": "#4caf50",
"negative": "#f44336",
"grey1": "#FAFAFA",
"grey2": "#E0E0E0",
"grey3": "#B8B7C6",
"font": "#707070"
},
"themes": {
"dark": {
"enabled": true,
"default": false
}
},
"design": {
"logo": {
"url": "https://your-domain.com/logo.png",
"width": 200,
"height": 60,
"alt": "Company Logo"
},
"favicon": {
"url": "https://your-domain.com/favicon.ico"
},
"fonts": {
"primary": "Roboto",
"secondary": "Arial"
}
}
}
Common Use Cases
Corporate Branding
{
"colors": {
"primary": "#003366",
"secondary": "#0066cc",
"primaryContrast": "#ffffff"
},
"design": {
"logo": {
"url": "https://company.com/logo.png"
}
}
}
Dark Theme Default
{
"themes": {
"dark": {
"enabled": true,
"default": true
}
}
}
Custom Fonts
{
"design": {
"fonts": {
"primary": "Inter",
"secondary": "Helvetica"
}
}
}
Best Practices
- Ensure sufficient contrast - Test primary/secondary colors with their contrast colors for accessibility
- Maintain brand consistency - Use your official brand colors
- Test both themes - If enabling dark mode, ensure colors work in both light and dark themes
- Optimize logo - Use appropriate image dimensions and formats for fast loading
- Consider color psychology - Choose semantic colors (error, success) that align with user expectations