Materia requires the following build and runtime dependencies:
meson
>= 0.47.0dart-sass
>= 1.23.0 (ornpm
if the former is not found)
gnome-themes-extra
(orgnome-themes-standard
for older distributions)- Murrine engine — The package name depends on the distro:
gtk-engine-murrine
on Arch Linuxgtk-murrine-engine
on Fedoragtk2-engine-murrine
on openSUSEgtk2-engines-murrine
on Debian, Ubuntu, etc.
- Clone the repository and move into the project directory in terminal:
git clone https://github.com/nana-4/materia-theme
cd materia-theme
- Configure the project using Meson (you can optionally set build options as below):
meson _build
- Build and install it using Meson:
meson install -C _build
Option | Default Value | Description |
---|---|---|
prefix |
/usr |
Installation prefix |
colors |
default,light,dark |
List of color variants to build |
sizes |
default,compact |
List of size variants to build |
gnome_shell_version |
n/a (auto) | Build GNOME Shell theme for specific version |
gtk4_version |
n/a (auto) | Build GTK 4 theme for specific version |
Build options can be set at the configuration time, for example:
meson _build -Dprefix="$HOME/.local" -Dcolors=default,dark -Dsizes=compact
Note: If you are a package maintainer, you should always set
gnome_shell_version
andgtk4_version
in your package script based on thegnome-shell
andgtk4
package versions in your distribution. Otherwise, the corresponding themes may be built for wrong versions.
Delete the installed directories:
sudo rm -rf /usr/share/themes/Materia{,-dark,-light}{,-compact}