Blame data/theme/README.md

Packit d345d1
## Summary
Packit d345d1
Packit d345d1
Do not edit the CSS directly, edit the source SCSS files and the CSS files
Packit d345d1
will be generated automatically when building with meson + ninja and left
Packit d345d1
inside the build directory to be incorporated into the gresource XML (you'll
Packit d345d1
need to have sassc installed).
Packit d345d1
Packit d345d1
## How to tweak the theme
Packit d345d1
Packit d345d1
Adwaita is a complex theme, so to keep it maintainable it's written and
Packit d345d1
processed in SASS, the generated CSS is then transformed into a gresource
Packit d345d1
file during gtk build and used at runtime in a non-legible or editable form.
Packit d345d1
Packit d345d1
It is very likely your change will happen in the [_common.scss][common] file.
Packit d345d1
That's where all the widget selectors are defined. Here's a rundown of
Packit d345d1
the "supporting" stylesheets, that are unlikely to be the right place
Packit d345d1
for a drive by stylesheet fix:
Packit d345d1
Packit d345d1
| File                     | Description       |
Packit d345d1
| ------------------------ | ----------------- |
Packit d345d1
| [_colors.scss][colors]   | global color definitions. We keep the number of defined colors to a necessary minimum,  most colors are derived from a handful of basics. It is an exact copy of the gtk+ counterpart. Light theme is used for the classic theme and dark is for GNOME3 shell default. |
Packit d345d1
| [_drawing.scss][drawing] | drawing helper mixings/functions to allow easier definition of widget drawing under specific context. This is why Adwaita isn't 15000 LOC. |
Packit d345d1
| [_common.scss][common]   | actual definitions of style for each widget. This is where you are likely to add/remove your changes. |
Packit d345d1
Packit d345d1
You can read about SASS on its [web page][sass-web]. Once you make your
Packit d345d1
changes to the [_common.scss][common] file, you can run ninja to generate the
Packit d345d1
final CSS files.
Packit d345d1
Packit d345d1
[common]: data/theme/gnome-shell-sass/_common.scss
Packit d345d1
[colors]: data/theme/gnome-shell-sass/_colors.scss
Packit d345d1
[drawing]: data/theme/gnome-shell-sass/_drawing.scss
Packit d345d1
[sass-web]: http://sass-lang.com/documentation/