6 phpMyAdmin comes with support for third party themes. You can download
7 additional 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:`_variables.scss` in "your\_theme\_name/scss"
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.
44 In theme directory there is file :file:`theme.json` which contains theme
45 metadata. Currently it consists of:
49 Display name of the theme.
51 **This field is required.**
55 Theme version, can be quite arbitrary and does not have to match phpMyAdmin version.
57 **This field is required.**
59 .. describe:: description
61 Theme description. this will be shown on the website.
63 **This field is required.**
69 **This field is required.**
73 Link to theme author website. It's good idea to have way for getting
76 .. describe:: supports
78 Array of supported phpMyAdmin major versions.
80 **This field is required.**
82 For example, the definition for Original theme shipped with phpMyAdmin 4.8:
89 "description": "Original phpMyAdmin theme",
90 "author": "phpMyAdmin developers",
91 "url": "https://www.phpmyadmin.net/",
98 If you do not want to use your own symbols and buttons, remove the
99 directory "img" in "your\_theme\_name". phpMyAdmin will use the
100 default icons and buttons (from the system-theme ``pmahomme``).