In this document, a folder name of target profile is called as {profile_name}
and file name as {file_name}
.
If resources have original instructions to install, please follow it.
- Download or clone a scss file.
- Move the file into
plugins
folder of Mastodon Material. - Add lines into
profiles/{profile_name}/plugins.scss
like below.@import '../../plugins/{file_name}';
- Download or clone a scss file.
- Move the file into
color
folder of Mastodon Material. - Add lines into
profiles/{profile_name}/config.scss
like below.@import '../../color/{file_name}';
- Download or clone a scss file.
- Move the file into
layout
folder of Mastodon Material. - Add lines into
profiles/{profile_name}/config.scss
like below.@import '../../layout/{file_name}';
Replace old files, introduced in step 2 into new ones.
Some resources show update messages on console.
Reference to official resources such as color/v1-light.scss or layout/material-v2.scss to find available variables.
When compatibility is lost due to version upgrades or specification changes, fallback to official resources may reduce compatibility issues. Add a config like below. The reference should be changed appropriately to fit for the file places.
@import '../color/{file_name}';
@import '../layout/{file_name}';
You can show messages on console when the version of Mastodon Material differs from the plugin target version, specified in resources. Add a config at the top of the scss file like below.
$name: "Plugin Name"; // Plugin name
$plugin-version: "1.0.0"; // Version of plugin
$target-version: "1.0.0"; // Check $version in theme/theme.scss
$website: ""; // Website or Download URL
@include version-check($name, $plugin-version, $target-version, $website);
If you want to distribute your resources on this repository, you have to open pull request according to the following format.
- At least, resource name, description (in any languages) and version should be provided in pull request comment. It will be displayed on README.md. You can include one screenshot.
- If you have more than one file, put them in a single folder. You can nest folder.
- You can include these files except scss files.
- README file
- Screenshots
- LICENSE file