mirror of
				https://github.com/Coffeedon/Cofffee-Assets.git
				synced 2025-11-04 01:01:21 +00:00 
			
		
		
		
	
				
				.Coffee themes, assets & tutorials
				
			
		| logos | ||
| styles | ||
| README.md | ||
| themes.yml | ||
Logos, custom themes & tutorials
On this repo you can find the custom logos, themes and other assets created for the Mastodon.Coffee instance.
Instructions for admins
Download the custom themes you want from the /styles folder and add them to your Mastodon installation.
To use a pre-made theme:
Let's use the Modern Dark theme as an example.
- Fetch the files. Add your desired custom CSS/SCSS to 
app/javascript/styles. You can copy/merge the entirestylesfolder from the root of this repo into the root of your Mastodon deployment. 
app/
  javascript/
    styles/
    modern-dark.scss                             | **new**
      contrast/
        ...
      fonts/
        ...
      modern/                                   | **new**
        dark.scss                               | **new**
        style.scss                              | **new**
- Add your theme to the config. This is what the default themes.yml looks like in Mastodon. To make your custom theme visible in settings, you need to add a new line in the form 
themeName: path/to/theme.scss. For example, the modern-dark theme would require addingmodern-dark: styles/modern-dark.scssas a new line. 
        default: styles/application.scss
        contrast: styles/contrast.scss
        mastodon-light: styles/mastodon-light.scss
        modern-dark: styles/modern-dark.scss      | **new**
- Add a human-friendly name for the theme (optional). You can edit each desired language's locale file in 
config/locales/[lang].ymlto add a localized string name for your theme'sthemeNameas added in the previous step. For example, the defaultconfig/locales/en.ymlcontains localizations for the three default themes that ship with Mastodon, into theenglish language. You need to do this for every language you expect your users to use, or else they will see the unlocalizedthemeNamedirectly. 
          themes:
            contrast: Mastodon (High contrast)
            default: Mastodon (Dark)
            mastodon-light: Mastodon (Light)
            modern-dark: Modern Dark              | **new**
- Compile theme assets and restart. Run 
RAILS_ENV=production bundle exec rails assets:precompileand restart your Mastodon instance for the changes to take effect.