|
| 1 | +# App Style Customization |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +The App Style feature allows you to customize the visual appearance of your AI-generated applications. You can choose from predefined design themes or create custom styling to match your brand and preferences. |
| 6 | + |
| 7 | +## How to Use |
| 8 | + |
| 9 | +1. **Access the Feature**: Click on the App Style option to open the customization panel |
| 10 | +2. **Choose Your Approach**: |
| 11 | + - **Custom**: Manually configure individual design elements |
| 12 | + - **Themes**: Select from professionally designed templates |
| 13 | + |
| 14 | +## Custom Styling Options |
| 15 | + |
| 16 | +```python exec |
| 17 | +import reflex as rx |
| 18 | +from reflex_image_zoom import image_zoom |
| 19 | +``` |
| 20 | + |
| 21 | +```python eval |
| 22 | +rx.el.div( |
| 23 | + image_zoom( |
| 24 | + rx.image( |
| 25 | + src=rx.color_mode_cond( |
| 26 | + "/ai_builder/features/style_light.webp", |
| 27 | + "/ai_builder/features/style_dark.webp", |
| 28 | + ), |
| 29 | + class_name="p-2 rounded-md h-auto", |
| 30 | + border=f"0.81px solid {rx.color('slate', 5)}", |
| 31 | + ), |
| 32 | + class_name="rounded-md overflow-hidden", |
| 33 | + ), |
| 34 | + class_name="w-full flex flex-col rounded-md cursor-pointer", |
| 35 | +) |
| 36 | +``` |
| 37 | + |
| 38 | +When using Custom mode, you can adjust: |
| 39 | + |
| 40 | +- **Primary Color**: Choose your main brand color from 20+ preset options |
| 41 | +- **Secondary Color**: Select a complementary color for accents |
| 42 | +- **Typography**: Pick a font family for your app |
| 43 | +- **Border Radius**: Control how rounded corners appear |
| 44 | +- **Shadows**: Add depth with shadow effects |
| 45 | +- **Spacing**: Adjust the spacing between elements |
| 46 | + |
| 47 | +## Themes |
| 48 | + |
| 49 | +These options are predefined popular themes you can choose for your app. Below are some of the available themes you can choose from |
| 50 | + |
| 51 | +```python eval |
| 52 | +rx.el.div( |
| 53 | + image_zoom( |
| 54 | + rx.image( |
| 55 | + src=rx.color_mode_cond( |
| 56 | + "/ai_builder/features/theme_light.webp", |
| 57 | + "/ai_builder/features/theme_dark.webp", |
| 58 | + ), |
| 59 | + class_name="p-2 rounded-md h-auto", |
| 60 | + border=f"0.81px solid {rx.color('slate', 5)}", |
| 61 | + ), |
| 62 | + class_name="rounded-md overflow-hidden", |
| 63 | + ), |
| 64 | + class_name="w-full flex flex-col rounded-md cursor-pointer", |
| 65 | +) |
| 66 | +``` |
| 67 | + |
| 68 | +- **Minimal Design**: Clean, geometric design with no shadows or gradients |
| 69 | +- **Modern UI**: Sleek, contemporary interface optimized for performance |
| 70 | +- **Carbon Design**: Enterprise-grade design following IBM's Carbon system |
| 71 | +- **Material Design**: Google's design language with elevation and semantic colors |
0 commit comments