Creating a custom theme for Xiaomi: from idea to installation

Xiaomi smartphones based on the shell MIUI Not only can you choose from thousands of themes, but you can also design your own interfaces, so you can stand out, you can adapt your phone to your own style, or you can even make money selling unique themes in your own home. MIUI However, many users do not know where to start: what tools to use, how to build a theme package correctly and avoid installation errors.

In this guide, we will take a look at the entire process – from preparing graphic elements to final installing the theme on your Redmi, POCO You will learn what programs will help you create icons and wallpapers, how to work with the theme file structure, and why some custom themes may not apply on new versions. MIUI 14/15. And where to find design inspiration and how to test a theme before publishing.

Important: The process of creating a theme requires attention to detail, such as incorrectly specified screen resolution in a file. description.xml It can cause the theme to simply not appear on the list of available ones, but don't worry, we'll go through each step in detail so you can avoid the typical mistakes.

1.Preparation: What is needed to create a topic

Before you start designing, make sure you have everything you need. Here's the minimum set of tools and knowledge:

  • πŸ“± Xiaomi smartphone on the MIUI 12 and newer (for testing)
  • πŸ’» Windows computer 10/11 or macOS (for working with graphics)
  • 🎨 Graphic Editors: Adobe Photoshop, GIMP (free) or Figma for icon and wallpaper design
  • πŸ“‚ WinRAR Archivist or 7-Zip topic-file
  • πŸ“ Text editor Notepad++ or VS Code (for editing) XML-file)

You will also need basic graphics editor skills, and if you’ve never created an icon or wallpaper, practice on simple elements, such as trying to repaint standard icons. MIUI In a different color, or add shade to it, it will help you understand the principles of layering and resolutions.

πŸ“Š What tool do you plan to use to create a theme?
Adobe Photoshop
GIMP
Figma
Other editor
I don't know what to choose.

Pay attention to the screen resolution of your smartphone. For example, for Xiaomi. 13 Pro with permission 3200Γ—1440 And the wallpaper and the interface elements have to be adapted to this ratio, and if you're creating a theme for multiple devices, you're going to have to do multiple graphics or use vector elements that scale without losing quality.

⚠️ Attention: If you are using MIUI 14/15, Note that the theme structure has changed from older versions. Some older manuals on the Internet may contain irrelevant data on file locations or supported settings.

2. Theme structure: what files and folders are needed

The theme for Xiaomi is an archive with a specific folder and file structure, and here's the basic structure that works for most versions. MIUI:

miui_mtl_global_theme.mtz (or other format)


β”œβ”€β”€ description.xml # Theme metadata main file




β”œβ”€β”€ preview # Folder with preview (required!)




β”‚ β”œβ”€β”€ preview_1.jpg # Preview for theme store




β”‚   └── preview_2.jpg




β”œβ”€β”€ wallpaper #Wallpaper




β”‚ β”œβ”€β”€ lockscreen.jpg # Wallpaper for lock screen




β”‚ └── homescreen.jpg # Home screen wallpaper




β”œβ”€β”€ icon # App icons




β”‚   β”œβ”€β”€ com.android.chrome.png




β”‚   β”œβ”€β”€ com.android.settings.png




β”‚   └── ...




β”œβ”€β”€ font # Fonts (optional)




β”‚   └── custom_font.ttf




└── Style # Styles of interface elements




β”œβ”€β”€ colors.xml # Color scheme




└── styles.xml # Button styles, menus, etc.

The most important file is description.xml. It says:

  • πŸ“Œ Title of the topic and its version
  • πŸ“± Supported screen resolutions
  • 🎨 Author and contact information
  • πŸ”§ Version compatibility MIUI

Example of minimum content description.xml:

<?xml version="1.0" encoding="UTF-8"?>


<theme>




<name>MyCustomTheme</name>




<version>1.0</version>




<author>YourName</author>




<email>your.email@example.com</email>




<compatibility>




<miui_version min="12" max="15"/>




<resolution>1080x2400</resolution>




<resolution>1440x3200</resolution>




</compatibility>




</theme>

πŸ’‘

Use online validators XML, check out description.xml Errors in this file are the most common reason why a topic is not displayed in the system.

3. Creation of graphic elements

Graphics are the basis of any topic. Even if you're not an artist, you can create quality design using pre-made templates and tools. Let's start with the most noticeable ones: wallpaper and icons.

Wallpaper for lock screen and main screen

Recommended wallpaper sizes:

Screen resolutionLockscreen (jpg/png)Homescreen (jpg/png)
1080Γ—2400 (Redmi Note 10)1080Γ—24001080Γ—2160 (dock-boarded)
1440Γ—3200 (Xiaomi 13)1440Γ—32001440Γ—2880
720Γ—1600 (Redmi 9A)720Γ—1600720Γ—1440

Advice on wallpapering:

  • 🎨 Use abstract textures or minimalist drawings – they look better on smaller screens.
  • 🌈 Avoid too bright colors in the status bar area (top of the screen) – this can make it difficult to read time and notifications.
  • πŸ”„ For lock screen wallpaper, leave free space at the bottom - there will be displayed interface elements (hours, date, buttons).

Application icons

The icons should be in format. PNG It's a transparent background β€” 192Γ—192 pixels, but for high resolutions (e.g. Xiaomi) 13 Ultra is better to use 256Γ—256. Each icon should be named according to the principle:

[Application package].png


Examples:




com.android.chrome.png # Icon for Chrome




com.miui.calculator.png # Icon for Calculator




com.android.settings.png # Icon for Settings

Where do you get the app packages? Install the App Inspector app on your phone (available on Google Play) -- it shows the packages of all the apps installed. Or use this list of the most popular ones:

Standard application packages MIUI
com.miui.home β€” Main screen com.android.contacts β€” Contacts com.android.mms β€” Messages com.miui.gallery β€” Gallery com.miui.calculator β€” Calculator com.android.dialer β€” Phone com.android.chrome β€” Chrome Browser com.miui.weather2 β€” Weather com.miui.player - Music

If you do not want to draw icons from scratch, you can:

  • πŸ” Download free icon sets from sites like Flaticon or Iconfinder (check the "Free for Commercial Use" filter").
  • 🎨 Use icon generators, such as Android Asset Studio (online service from Google).
  • πŸ–ŒοΈ Take as a basis standard icons MIUI and modify them (change color, add a stroke, etc.).

4. Working with color scheme and styles

Colors in the theme are defined in the file style/colors.xml. You can set the shades here:

  • πŸ“± System menu background
  • πŸ”˜ Buttons and switches
  • πŸ“ Text and clues
  • πŸ”΄ Emphasis elements (notifications, allocations)

Example of contents colors.xml:

<?xml version="1.0" encoding="utf-8"?>


<resources>




<color name="miui_color_primary">#6200EE</color> <!-- Primary color -->




<color name="miui_color_primary_dark">#3700B3</color> <!--Dark variant -->




<color name="miui_color_accent">#03DAC6</color> <!-- Accent color -->




<color name="miui_color_background">#FFFFFF</color> <!--Fon -->




<color name="miui_color_text_primary">#212121</color> <!-- Main text -->




</resources>

To choose a harmonious palette, use the services:

  • 🎨 Coolors – Color scheme generator
  • πŸ” Adobe Color – a tool for selecting shades
  • πŸ“Š Material Design Color Tool – Contrast Testing

⚠️ Attention: B MIUI 14+ some parameters colors.xml Ignore them if you have Dark Mode or Color Scheme on Wallpaper on the system. Test the theme in different display modes!

5. Assembly and packaging of the theme

When all graphic elements and XML-Files are ready, they need to be properly packaged in the archive with the.mtz extension (for older versions). MIUI) Or.apk (for new ones). Here's a step-by-step guide:

Create a folder with the theme name (for example, MyTheme)|Place all files in a structure (description.xml, preview, wallpaper, etc.)|Check the icon names (must match the application packages)|Pack a folder in ZIP-archive|Rename the extension from.zip to.mtz-->

For packaging in.mtz:

  1. Select the theme folder, right-click and select Add to Archive... (via WinRAR or 7-Zip).
  2. In the archiving settings, select the format ZIP and compression level without compression.
  3. Once you have created your archive, rename it from.zip to.mtz.

For MIUI 14/15 You may need to pack in.apk:

  • πŸ“₯ Download the template MIUI Theme APK Template (available on forums such as XDA Developers).
  • πŸ“ Place your theme files in the asset template folder.
  • πŸ”§ Edit it. AndroidManifest.xml, name and version of the topic.
  • πŸ“¦ Compile your project to.apk via Android Studio or online services like AppBundle Explorer.

The finished theme file can be:

  • πŸ“² Install directly on the phone (instructions in the next section).
  • 🌍 Download in MIUI Theme Store for public access (developer account required).
  • πŸ’Ύ Share with friends through cloud services (Google Drive, Telegram).

6. Install theme on Xiaomi smartphone

There are three ways to install a custom theme on Xiaomi:

Method 1: Through the standard "Themes" application

It is the easiest method, but it does not work on all versions. MIUI:

  1. Copy the theme file (.mtz or.apk) into your phone’s memory.
  2. Open the Themes app.
  3. Go to the section My topics β†’ Import.
  4. Select your file and wait for the application.

Method 2: Through MIUI Theme Editor (requires an unlocked bootloader)

If the standard method does not work, you can use the application. MIUI Theme Editor (available on the XDA or 4PDA):

  1. Install. MIUI Theme Editor.apk phone-on.
  2. Open the app and import your.mtz file.
  3. Press Apply Theme and restart your phone.

⚠️ Note: On certain devices (e.g, POCO F5 Xiaomi 13T) This method requires an unlocked bootloader and root rights. Without them, the theme may not apply or reset after a reboot.

Method 3: Through ADB (for power users)

If the first two methods didn’t work, try to install the theme through the ADB:

adb push C:\path\totheme\theme.mtz /sdcard/


adb shell am start -n com.android.themes/.activity.ThemePreviewActivity -d file:///sdcard/theme.mtz

After these commands are executed, the theme should appear in the list of available ones. If not, check:

  • πŸ” Correct File Structure in the Archive.
  • πŸ“‹ Compatibility of permits in description.xml.
  • πŸ”„ Version MIUI (Some themes don’t work in beta versions).

7. Testing and debugging theme

Before you publish or distribute a topic, you need to test it on different devices.

Check the display of wallpaper on Lockscreen and Homescreen|Make sure all icons are displayed (no "broken" links)|Test the color scheme in light/dark mode|Check the work of animations (if they are in the topic)|Make sure the text is readable on all backgrounds-->

Common mistakes and their solutions:

Problem.Possible causeDecision
The topic does not appear on the listWrong. description.xml orCheck it out. XML Errors and add all supported permissions
Icons don't change.Mismatch of icon file names with application packagesUse App Inspector to find out the right packages
Colors do not applyConflict with a system theme or dark modeTest in different display modes
The theme is reset after rebootingNo rights to write to system foldersUse it. MIUI Theme Editor with root rights

If the theme is unstable, check the logs of the system through ADB:

adb logcat | grep -i "theme"

This will help to identify errors in downloading or applying styles.

8. Publication of the topic in MIUI Theme Store

If you want to share your topic with other users, you can publish it in the official store. MIUI Themes, for that:

  1. Register a developer account on the Xiaomi Developer website (dev.mi.com).
  2. Prepare the theme archive according to Xiaomi requirements (preview size, file formats, etc.).
  3. Upload the theme through MIUI Theme Designer Portal.
  4. Fill in metadata: description, tags, supported devices.
  5. Wait for moderation (can take 3 to 7 days).

It is important to consider:

  • πŸ’° Free themes are moderated faster than paid themes.
  • πŸ“Œ In the description, specify all the features of the topic (animations, unique icons, etc.).
  • πŸ” Avoid using protected content (brand logos, characters from movies).

πŸ’‘

Before posting, check the theme on three different Xiaomi devices with different screen resolutions, which will increase the chances of being approved by the moderator.

After posting, keep track of user reviews. If a topic is gaining popularity, you can:

  • πŸ”„ Release updates with new icons or wallpaper.
  • 🎨 Create variations of the theme (e.g. dark and light versions).
  • πŸ’¬ Communicate with users through comments in the theme store.

FAQ: Frequent questions about creating themes for Xiaomi

Can you create a theme without a computer, only on your phone?
Yes, but with limitations. You can: Use apps like Pixellab or Canva to create wallpapers and icons. Pack files into the box. ZIP through archiving applications (e.g, RAR For Android, install the theme through MIUI Theme Editor (requires root on new versions) MIUI). However, working on a PC is still more convenient for fine-tuning XML-file-testing.
Why does my theme work on Redmi Note 10 but not on Xiaomi 13?
This is related to: Screen resolution: B description.xml Not given permission from Xiaomi 13 (1440Γ—3200). Version MIUI: In the new versions, some parameters have changed in styles.xml. Lack of support: Some interface elements (e.g. new widgets) may not have styles in your theme.Solution: add all possible permissions to your theme description.xml and test the theme on the emulator with MIUI 15.
How to make animated wallpaper for a theme?
For animated wallpapers you need: Create GIF or MP4-a file with the resolution of the screen. Put it in the wallpaper folder with the name lockscreen.mp4 or homescreen.mp4. V description.xml tag: <animated_wallpaper>true</animated_wallpaper> Limitations: Maximum file size β€” 10 The length of animation is no more 30 On some devices, animated wallpaper can slow the interface.
Can I make money selling themes for Xiaomi?
Yes, but income depends on several factors: πŸ“ˆ Popularity of the theme: Unique designs or themes (such as movies, games) sell better. πŸ’° Pricing policy: Topics in MIUI Theme Stores are usually 0.99$ 2.99$. 🌍 Region: China and India demand for custom themes higher than Europe. πŸ”„ Updates: Topics that are updated regularly stay in the top longer. Xiaomi charges a 30% commission on each sale. Withdrawal is possible on PayPal or Chinese payment systems (for example, Alipay).
How to transfer a theme from one Xiaomi phone to another?
There are two ways: Through export/import: On the first phone, open Topics β†’ Find your theme and click Export (save.mtz file) Toss the file to the second phone and import through Themes β†’ Import. Cloud storage: Upload the theme file to Google Drive or Mi Cloud. On the second phone, download the file and install it through MIUI If the theme doesn't apply on the second phone, check the compatibility of screen resolutions in the description.xml.