by kalvn

Shaarli Material is a theme for Shaarli, the famous personal, minimalist, super-fast, database free,...

209 Stars 17 Forks Last release: 7 months ago (v0.11.0) MIT License 252 Commits 25 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Shaarli Material Theme

Shaarli Material is a theme for Shaarli, the famous personal, minimalist, super-fast, database free, bookmarking service.


Shaarli Material Screenshot Home

More screenshots.


Shaarli Material follows the exact same versions numbers than Shaarli. It means that if you install Shaarli vX.Y.Z, you should use Shaarli Material vX.Y.Z.

Shaarli Material was tested and validated with Shaarli 0.12.0-beta.


To download this theme, visit this page and choose the most recent version matching the version of your Shaarli installation. Both use the same notation.

Versions suffixed by

include some bugfix so take those preferentially if they exist for the version that fits your Shaarli installation.

If you install an older version, please read the file you'll find in the root folder rather than this one.


If your Shaarli is up to date

Download the

folder into the
directory of your Shaarli installation next to the

Access your Shaarli and finish the setup process. Then, go into menu Tools > Configure your Shaarli and change the setting Theme to Material.

You can now enjoy your new Material theme.

If you use an older version

Please refer to the README file within the root folder of the version you downloaded.


You can add your own CSS rules in file

. You'll find an example that shows how to change the whole theme color in

You can customize a few things using the

file of your Shaarli installation. If the file doesn't exist, just create it. Be careful to respect the JSON format notation (end lines with a comma except for the last item, just before the closing curly brace), otherwise you'll get errors.

Here are parameters you can set.

  • resource.raintpl_tpl: REQUIRED: Sets the active template directory (keep the trailing slash!).
  • config.MATERIALPHPDATE_PATTERN: OPTIONAL: Customizes the date format. Check this to know what to write: (ex:
    will output for example '30/05/2015').
  • config.MATERIALNOQRCODE: OPTIONAL: Removes the QR code control of the theme. To completely get rid of QR Codes, you of course need to disable the qrcode plugin as well.
  • config.MATERIALDATEFROMNOW: OPTIONAL: If set to true, enables dates to be displayed with the 'from now' notation. ex: 2 days ago. Set it to false to disable this.
  • config.MATERIALDATEPATTERN: OPTIONAL (but REQUIRED if MATERIALDATEFROMNOW is enabled): This date pattern MUST match the MATERIALPHPDATE_PATTERN option but doesn't use the same notation. Check this for more information about the notation: ex: 'DD/MM/YYYY'. It's used to correctly convert dates to the 'from now' notation.
  • config.MATERIAL_COLOR: OPTIONAL: Customizes the theme's colors. It's used for example on Android for notification bar. It will generate

Here is an example of what you can configure (in real life, there will be other parameters in the file, just add those to the different categories):

    "resource": {
        "raintpl_tpl": "tpl\/material\/"

"config": {
    "MATERIAL_PHP_DATE_PATTERN": "%d\/%m\/%Y %H:%M:%S",
    "MATERIAL_COLOR": "#607D8B"


Add custom resources

If you want to add your custom scripts or styles (for example analytics script), you must create a new template named

in the material folder. Then, anything you add in this file will be included at the end of the

This file is NOT commited on the repository, which allows you to update the theme without overriding this file.


As from Shaarli v0.6.0, you can install plugins to enrich your experience. Most of them should work properly, although it's up to the plugin developer to ensure the code is as minimal as possible to integrates well in themes. I tested all plugins available with Shaarli 0.6.0 and they all work well even though the display is a bit weird for some of them. I will keep monitoring the behavior of popular plugins in the future.

Libraries used

This theme uses a few Javascript libraries.


A read-only demo is available on my personal Shaarli :

Develop and debug

To tweak this theme, you'll need to install dependencies and to build JavaScript and CSS libraries. To do this, install Node.js and NPM and run this from the root folder:

$ npm install
$ gulp

Build for production

$ npm install
$ gulp build

You can download Shaarli via the Github project page:

Original project page:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.