Skip to content
This repository was archived by the owner on Jan 3, 2022. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 1.33 KB

File metadata and controls

48 lines (38 loc) · 1.33 KB

Theme Versioning

In templates/@theme-base/ there is a _version.scss partial. This partial includes a single line of code that aids in keeping the version of all themes up to date:

$version: "v4.0.0-beta15";

This variable is used in all themes by default and it will print the current version when a theme is compiled. For example, this theme header:

@use "../@theme-base/version" as info;

/*! =========================================== *
 * SLICK THEME
 * Version: #{info.$version}
 * Author: ProtonMail
 * Website: www.protonmail.com
 * Twitter: @protonmail
 * =========================================== */

Will compile to:

/*! =========================================== *
 * SLICK THEME
 * Version: v4.0.0-beta15
 * Author: ProtonMail
 * Website: www.protonmail.com
 * Twitter: @protonmail
 * =========================================== */

In some cases a theme might have a specific version it is compatible with. In that case the variable can be pointed to another version on the theme template file:

@use "../@theme-base/version" as info;
$version: "v4.0.0-beta3";

/*! =========================================== *
 * SLICK THEME
 * Version: #{info.$version}
 * Author: ProtonMail
 * Website: www.protonmail.com
 * Twitter: @protonmail
 * =========================================== */