Skip to content
The Gtk Stylesheet for elementary OS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
elementary Style destructive-action buttons in actionbars (#478) Mar 1, 2019
.editorconfig Add editorconfig (#387) Aug 21, 2018
.gitignore
.stylelintrc.json
.travis.yml
AUTHORS
CODE_OF_CONDUCT.md
CONTRIBUTORS Added new dark assets for back button Dec 3, 2015
COPYING set up for rewrite Jun 4, 2013
README.md
meson.build
package.json Release 5.2.2 Feb 28, 2019

README.md

The Gtk+ Stylesheet for elementary OS

Bountysource

An original Gtk.CSS stylesheet designed specifically for elementary OS and its desktop environment: Pantheon. Since Gtk.CSS has changed quite a bit, this stylesheet only supports Gtk >= 3.22

This stylesheet is licensed openly under the terms of the GNU General Public License. Redistributing, forking, remixing, etc. are encouraged!

If you feel the desire to compensate the designers who maintain this stylesheet for your usage, please see this page and thank you!

Application Agnostic

Special fixes for GNOME apps (Nautilus, GNOME Control Center, GNOME Shell, etc) or other desktop environments will not be implemented. The aim of style classes should be to be generic across applications. If an application needs a unique style, it should be bundled with that application.

Installation & Testing

Run meson to configure the build environment. To install, use ninja install.

meson build --prefix=/usr
cd build
sudo ninja install

Apps may need to be restarted or the system stylesheet will need to be changed for your changes to take effect.

You can also test changes live with Gtk Inspector. Make sure you have Gtk development libraries installed, then enable the inspector shortcut:

apt install libgtk-3-dev
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true

Open an app you wish to test your changes on. Open Gtk Inspector with the keyboard shortcut Shift + Ctrl + D, then navigate to the tab "Custom CSS". Your changes here will take immediate effect on the focused app.

We use stylelint for CSS linting. For testing locally:

  • You will need npm installed.
  • Run npm install to grab stylelint. You will only need to do this once.
  • Run npm test and it will lint all the CSS files.
You can’t perform that action at this time.