Designing icons for Papirus is easy :)
You only need to draw icons for Papirus and then convert colors for ePapirus, Papirus Dark and Papirus-Light using our scripts.
Papirus is an SVG-based icon theme for Linux, drawing inspiration from Material Design and flat design.
All elements are clear, distinct and have outlines. Another main feature that distinguishes our theme is its use of warm color tones.
Papirus use layering style - moving from dark (down) to light (up) tone on layers.
Objects have light stroke (#fff 20% or 10% for dark icons) and shadow (always #000 20%), see templates for more info.
Mainly single size for all icons (without shadow):
- 16px draw 16px icon
- 22px draw 20px icon
- 24px draw 20px icon
- 32px draw 28px icon
- 48px draw 40px icon
- 64px draw 56px icon
Main icons have the following sizes: 16px, 22px, 24px, 32px and 48px. Also available are some 64px icons for Apps, Devices, Places and Mimes.
Why do we need so many sizes for an SVG?
Because if we use a single size for all then the icons will be blurred. All objects on Papirus have pixelated alignment.
Keeping this in mind, please do not use very bright and toxic colors for Papirus.
For compabillity with mostly GTK Themes we use this palette:
- white
#e4e4e4
- black
#4f4f4f
For devices used material colors:
- steel
#afafb1
- aluminium
#8e8e8e
- plastic
#4f4f4f
Examples are available in the main icon theme folders. In the work
directory, you'll only find templates and scripts.
Papirus now also supports KDE color scheme for monochrome actions, devices, places and panel icons. You can find more detailed info about that here.
Presently we only support the following icons:
- actions (16px, 22px, 24px)
- devices (16px)
- places (16px)
- panel (22px, 24px)
- Inkscape
- scour
For Debian/Ubuntu/Linux Mint users:
sudo apt update
sudo apt install inkscape python-scour
sudo pip install --upgrade scour
Open directory work
in a file manager and open a terminal in the directory. You can do it from the context menu entry Open in Terminal
or Action → Open Terminal Here
.
-
Create a new icon from the provided template using the script
tools/work/new-icon.sh
. For all new icons, please stick to using the template. It is necessary because the template already has some needed objects, like a CSS stylesheet.# For example ./new-icon.sh apps abricotine # It creates the following files inside work directory # from the template files: # # ./Papirus/apps/[email protected] # ./Papirus/apps/[email protected] # ./Papirus/apps/[email protected] # ./Papirus/apps/[email protected] # ./Papirus/apps/[email protected] # ./Papirus/apps/[email protected]
-
If you want to modify an existing icon, you can do that using the script
tools/work/get-from-theme.sh
.# For example ./get-from-theme.sh panel transmission-tray-icon.svg # It copies following files into work directory from the # main icon theme folders: # # ./Papirus/panel/[email protected] # ./Papirus/panel/[email protected]
-
It is a real example of the issue #354
Make sure those icons exist:
find ../../Papirus -type f -iname '*ardour*' -print # ./Papirus/16x16/apps/ardour.svg # ./Papirus/22x22/apps/ardour.svg # ./Papirus/24x24/apps/ardour.svg # ./Papirus/32x32/apps/ardour.svg # ./Papirus/48x48/apps/ardour.svg # ./Papirus/64x64/apps/ardour.svg
Great, it's true, now you have the filename of the icon, it's
ardour.svg
, and the symlink name from the issue #354, it'sardour5
. Create symlinks with the command:# Usage: ./new-symlink.sh context <icon filename> <symlink name>... ./new-symlink.sh apps ardour.svg ardour5
NOTE: Symlinks will look like broken but is ok.
If your symlinks are in apps, emblems or mimetypes you can continue from step 4.3, else continue from step 3.
IMPORTANT: Please don't remove suffixes from the filename as it's needed for other scripts. Filename extension must be in lowercase.
- Open the created/copied file in Inkscape.
- Delete any objects you do not need.
- Draw new objects.
- Save the file with the same filename.
- Repeat it for other sizes.
-
Run script
tools/work/convert.sh
. It copies needed icons fromwork/Papirus
towork/Papirus-Dark
,work/Papirus-Light
andwork/ePapirus
and changes their color schemes.IMPORTANT: You should draw icons for Papirus first.
./convert.sh
-
Check result and edit manually if needed.
-
Run script
tools/work/prepare.sh
to clean the created icons:./prepare.sh
-
Please check your icons again.
-
If everything is fine then put the icons into main icon theme folders:
./put-into-theme.sh
-
Clean the
work
directory:./clean.sh
-
Run tests:
make test
-
Everything is ready now! You can commit the changes to GitHub.