Creating your own theme for Xiaomi devices MIUI β It's a fascinating process that allows you to personalize your smartphone interface to your tastes, and many users don't even realize that you don't have to be a professional designer to design unique themes: you just need basic graphics skills and patience. In this article, we will discuss the entire process in detail - from preparing the necessary tools to the final installation of the theme on your Redmi, POCO or Mi.
It is important to understand that custom themes for MIUI They have strict requirements for file structure and image resolution, and errors in the preparation phase can result in the theme either not loading into the system or not showing correctly. We will tell you how to avoid typical problems and optimize the process so that your theme looks professional and works smoothly.
1. What will be needed to create a topic
Before you start designing, make sure you have everything you need, and without the right tools, it can be delayed or even failed.
First, you will need a computer running Windows. 10/11 Or macOS (some tools may require Android emulation). Second, prepare a graphics editor, and you can use both paid Adobe Photoshop and free alternatives like free Photoshop. GIMP You can also do without an archiver (for example, 7-Zip or WinRAR) for working with theme files.
- π₯οΈ Computer with OS Windows/macOS/Linux (minimally 4 GB RAM)
- π¨ Graphic Editor (Photoshop, GIMP, Figma)
- π Archivator for working with.mtz files
- π± Xiaomi smartphone on the MIUI 12/13/14 (test-loader)
- π§ Developer tools: MIUI Theme Editor (official or modified)
Pay special attention to the version MIUI on your device. Themes created for MIUI 12, may not be correctly displayed on MIUI 14 because of changes in the structure of system files. If you plan to distribute your theme, test it on multiple versions of firmware.
β οΈ Note: If your smartphone is not unlocked, you will not be able to install uncertified themes. Unlocking the bootloader will require a device-bound Mi Account and waiting 72 hours after sending the request.
Installation and configuration MIUI Theme Editor
MIUI Theme Editor is Xiaomiβs official tool that makes it much easier to create themes. However, its functionality is limited, so many developers use modified versions or add third-party utilities to them.
Download the original version of the editor from the official website of the topics MIUI, A modified version will be required for full operation (e.g, MIUI Theme Editor Pro allows you to edit more interface elements and bypass some of the limitations of a standard editor.
Download and install Java 8 (required!)
Download modified MIUI Theme Editor
Unpack the archive in a folder without Cyrillic characters
Run ThemeEditor.jar on behalf of the administrator
Connect the smartphone in debugging mode (USB Debugging)
-->
After installing the editor, you need to configure it to work with your device:
- Connect your smartphone to your PC through USB and enable debugging mode in the developer settings (Settings) β The phone. β Version. MIUI β Press 7 times, then return to the Additional Settings β For developers).
- In the theme editor, select File β New Project and point the way to the folder with the future theme.
- In the Device section, select your smartphone model (if it is not in the list, select the nearest screen resolution).
Critically, if you use a modified editor, disable the antivirus while youβre running β many of these tools are recognized as potentially dangerous because of the code implemented to circumvent restrictions. MIUI.
3. The structure of the theme files: what and where should lie
Theme for MIUI β It's an archive with a rigid folder structure and a rigid file structure, and any deviation from the standard will lead to installation errors.
| Folder/File | Description | Do you have to? |
|---|---|---|
| /description.xml | META-information about the topic (title, author, version) | Yes. |
| /preview/ | Theme preview (screenshots for the theme store) | Yes. |
| /wallpaper/ | Wallpaper for desktop and lock | No (but recommended) |
| /icon/ | Icons of applications and system elements | Yes (minimum set) |
| /style/ | CSS-file | Yes. |
Pay special attention to the file description.xml. It indicates:
- π Unique. theme_id (It should not be consistent with existing topics)
- π Theme version (version)="1.0")
- π Supported screen resolutions (1080x2400, 1080x2340 etc.)
- π Author and contact information (for publication in the store)
If you are planning to publish a theme in an official store MIUI Themes, be sure to include the correct data in this file, otherwise the topic will not be moderated.
Application icons
Wallpaper and screensavers
Color scheme and fonts
Animations and transitions
Sounds and notifications
-->
Design of icons and wallpaper: technical requirements
One of the key elements of any topic is icons, and they must meet several important criteria:
1. Permission: standard for MIUI β 192Γ192 pixels (for round icons) or 144Γ144 (Icons should be in.png format with a transparent background.
Style: all icons must be made in a single style (e.g. minimalist ones, 3D, shadowy.).
3. Coverage: A full theme will require at least 200 icons (systemic) + pop-up).
There are other rules for wallpaper:
- πΌοΈ Permission: minimum 1080Γ2340 (For most modern smartphones Xiaomi).
- πΌοΈ Format:.jpg or.png (without compression with artifacts).
- πΌοΈ Side ratio: 9:19.5 for full-screen wallpaper.
If you donβt want to create icons from scratch, you can use templates from services like Flaticon or IconFinder, but be sure to check the commercial license (if you plan to distribute the theme).
π‘
To speed up the process, use Adobe Illustrator or Inkscape for vector icons, which will make it easy to scale them to different screen resolutions.
5. Editing System Styles and Colors
The color scheme and the fonts are what makes the theme really unique. MIUI That's what files in the folder do. /style/. The main files you will need to edit:
- π¨ colors.xml β color system elements (notification panels, buttons, backgrounds).
- π styles.xml β text styles (size, outline, line spacing).
- π dimens.xml β indentation and size of interface elements.
Example of editing colors.xml:
<color name="miui_color_primary">#FF5722</color>
<color name="miui_color_secondary">#4CAF50</color>
<color name="miui_color_background">#FFFFFF</color>Changes to fonts will require:
- Place font files (.ttf or.otf) in the folder /fonts/.
- Indicate the paths to fonts in styles.xml:
<item name="miui_font_regular">fonts/Roboto-Regular.ttf</item>β οΈ Warning: Changing system fonts can cause problems with text display in some apps (such as WhatsApp or Telegram).Always test the theme on a real device before distributing.
6. Testing and debugging theme on the device
When all files are ready, they must be archived with the.mtz extension.
- Select all the theme folders and files.
- Add them to the archive through 7-Zip WinRAR.
- Rename the archive by replacing the extension with.mtz (e.g.,.mtz, my_theme.mtz).
Now you can upload the theme to your smartphone. There are two ways.
- Through MIUI Theme Editor: Connect your smartphone to your PC. In the editor, press Build β Install to Device.
Manually.
- Put the.mtz file in the folder /MIUI/theme/ smartphone.
- Open the Topics app and select My Topics β Local.
If the theme does not apply or is displayed incorrectly, check:
- π Correct folder structure in the.mtz archive.
- π Compliance of icons and wallpaper permissions with requirements MIUI.
- π Correctness of data in description.xml (particularly theme_id and supported permits).
What to do if the topic is not set?
7. Posting the topic in the store MIUI Themes
If you want to share your topic with other users, you can publish it in the official store. MIUI Themes, for that:
- Register on themes.mi.com as a developer.
- Download the.mtz file through the developer panel.
- Fill in the information about the topic: Title (maximum) 20 Description (before the symbols) 200 Category (e.g., "minimalism", "dark subject") Screenshots (minimum) 3 stuff, permission 1080Γ1920).
Submit the topic to moderation (usually takes 1-3 days).
Note that Xiaomi has strict requirements for the quality of the topics:
- π« Watermarks on wallpaper and icons are prohibited.
- π« All elements must be in high resolution (no pixelation).
- π« The theme should support at least 3 screen resolutions.
If the theme is approved, you can earn revenue from downloads (depending on popularity), but most of the themes in the store are distributed for free.
π‘
Before publishing, test the theme on multiple devices with different versions. MIUI β This will increase the chances of moderators being approved.
8. Alternative means of disseminating topics
If your theme hasnβt been moderated in the official store or you want to distribute it yourself, there are several alternative ways:
- π Forums and communities: 4PDA (section MIUI Topics). XDA Developers (part of Xiaomi Themes). Groups in Telegram and VK, customization Xiaomi.
- π¦ Third-party theme stores: Mi-Themes (unofficial catalogue). Theme Park (for the first time) POCO redmi).
- π° Pay-to-play sites: Gumroad or Sellfy for sale of premium theme.
When distributing via third-party sources, make sure that:
- π The theme is free of viruses or malicious code (check out VirusTotal).
- π You have listed all the sources used (if you have taken icons or wallpaper from open libraries).
- π Provide users with installation instructions (especially if the theme requires an unlocked bootloader).
Many developers also create Patron or Boosty to support their projects, which allows them to receive donations from users who want to support your work.