6 phpMyAdmin comes with support for third party themes. You can download
7 additonal themes from our website at <https://www.phpmyadmin.net/themes/>.
12 Themes are configured with :config:option:`$cfg['ThemeManager']` and
13 :config:option:`$cfg['ThemeDefault']`. Under :file:`./themes/`, you should not
14 delete the directory ``pmahomme`` or its underlying structure, because this is
15 the system theme used by phpMyAdmin. ``pmahomme`` contains all images and
16 styles, for backwards compatibility and for all themes that would not include
17 images or css-files. If :config:option:`$cfg['ThemeManager']` is enabled, you
18 can select your favorite theme on the main page. Your selected theme will be
26 * make a new subdirectory (for example "your\_theme\_name") under :file:`./themes/`.
27 * copy the files and directories from ``pmahomme`` to "your\_theme\_name"
28 * edit the css-files in "your\_theme\_name/css"
29 * put your new images in "your\_theme\_name/img"
30 * edit :file:`layout.inc.php` in "your\_theme\_name"
31 * edit :file:`theme.json` in "your\_theme\_name" to contain theme metadata (see below)
32 * make a new screenshot of your theme and save it under
33 "your\_theme\_name/screen.png"
38 .. versionchanged:: 4.8.0
40 Before 4.8.0 the theme metadata was passed in the :file:`info.inc.php` file.
41 It has been replaced by :file:`theme.json` to allow easier parsing (without
42 need to handle PHP code) and to support additional features.
45 In theme directory there is file :file:`theme.json` which contains theme
46 metadata. Currently it consists of:
50 Display name of the theme.
52 **This field is required.**
56 Theme version, can be quite arbirary and does not have to match phpMyAdmin version.
58 **This field is required.**
60 .. describe:: desciption
62 Theme description. this will be shown on the website.
64 **This field is required.**
70 **This field is required.**
74 Link to theme author website. It's good idea to have way for getting
77 .. describe:: supports
79 Array of supported phpMyAdmin major versions.
81 **This field is required.**
83 For example, the definition for Original theme shipped with phpMyAdnin 4.8:
90 "description": "Original phpMyAdmin theme",
91 "author": "phpMyAdmin developers",
92 "url": "https://www.phpmyadmin.net/",
99 If you do not want to use your own symbols and buttons, remove the
100 directory "img" in "your\_theme\_name". phpMyAdmin will use the
101 default icons and buttons (from the system-theme ``pmahomme``).