- Trema Theme for Moodle LMS
- Table of Contents
- Basic Overview
- Requirements
- Download Trema for Moodle LMS
- Installation
- Usage
- Updating
- Uninstallation
- Limitations
- Language Support
- FAQ
- Motivation for this theme
- License
The Trema theme is a free, responsive Moodle theme that offers a clean and modern design. One unique aspect of the Trema theme is its ability to display course information in a grid format, which can be particularly useful for sites with many courses. Additionally, it includes options for a customizable frontpage, login page, and footer. Overall, the Trema theme for Moodle aims to provide a visually appealing and user-friendly interface for Moodle users. The main goal for this theme is to not need another site for information/advertising/marketing.
All features from Boost (native Moodle theme) plus these Trema features:
- Frontpage
- Configurable optional image banner or content slider with texts.
- Frontpage drawer enable by default.
- Banner title spacing.
- Banner title text options for uppercase, lowercase, and capitalized.
- Create up to six beautiful cards with custom content with icons.
- Add custom HTML content with no restrictions.
- Hide links to Page activities.
- Footer
- Option to change to an HTML instead of Boost popup footer.
- Add or hide footer info.
- Removable Moodle and Trema branding.
- Configurable footer background opacity and color.
- Font and colors
- Primary, secondary, navbar, body background, Log In button, drawer, and footer colors.
- Choose from 15 different fonts for the site, banner titles, page titles, and headings.
- Site text options for uppercase, lowercase, and capitalized.
- Automatic font color selection.
- General
- Customizable page background image.
- Selectable link style.
- Primary menu items can be hidden (Home, Dashboard, My Courses, and Site Administration).
- The primary menu can be aligned to the left, center or the right.
- Removable Log out link.
- Custom favicon.
- Exclusive Admin Dashboard with customizable site information for admins.
- Optional decorative Trema Lines.
- Enable a softer look by rounding some corners for buttons, cards, secondary navbars, etc.
- Course cards
- Show contacts and categories.
- Course summary is available as a Moodle dialogue, a popover, or as a link.
- Show or hide courses in hidden categories.
- Course
- Course enrolment page format as a list or card.
- Show activity navigation buttons.
- Hide activity icons on the course page.
- Login
- Optional background image for the login page.
- Option to display the 'Create account' section first.
- Hide login form (useful for OAuth2 authentication).
- Login box alignment: left, center, right, half-left, or half-right. The half-left and half-right options additionally constrain the login form to half of the viewport at 1120 pixels and above. When authentication instructions have been configured (Site administration > Plugins > Authentication > Manage authentication > Instructions), the left, right, half-left, and half-right alignments display the instructions as a styled overlay on the side opposite the login form at viewport widths of 1120 pixels or more. Below 1120 pixels (or when no instructions are configured, or when the center alignment is used), the instructions appear below the Log in button. Note: the left, right, half-left, and half-right options use physical positioning and do not currently mirror in right-to-left languages.
- Enforce required profile fields on user creation by admins and users that have the capability to create a new user.
- Hideable the profile fields on the registration page and edit the profile page.
- Admin area block that can be seen and accessed only by the site administrator.
This theme requires Moodle LMS 4.1+ from https://moodle.org/.
The most recent STABLE release of Trema for Moodle LMS is available from: https://moodle.org/plugins/theme_trema
The most recent DEVELOPMENT release can be found at: https://github.com/trema-tech/moodle-theme_trema
Ensure you have a supported version of Moodle LMS as stated above in Requirements. This is necessary as the theme relies on underlying core code.
Install the theme, like any other theme, to the following folder:
/theme/trema
See https://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins.
To activate the theme, navigate to Site Administration > Appearance > Themes (section) > Theme selector. In recent versions of Moodle LMS, you need only locate the Trema theme and click the associated Use Theme button.
IMPORTANT: This STABLE release has been tested on many Moodle sites. Although we expect everything to work, if you find a problem, please help by reporting it in the Bug Tracker.
You can customize the theme by navigating to Site Administration > Appearance > Themes (section) > Trema
In addition, you can customize additional settings by overriding SCSS variables in the theme's settings. See the complete list.
There are no special considerations required for updating the plugin.
Note: The theme will not be upgradable from within Moodle LMS if you installed it using Git. To enable upgrading, simply delete the .git folder in the /theme/trema/ directory.
Before you can uninstall Trema, be sure to switch to a different theme.
Then uninstall the theme by navigating to Site Administration > Plugins > Plugins (section) > Plugins Overview. Scroll down to the Themes section and Uninstall. If you don't see the uninstall link, it is because you did not first switch Moodle LMS to a different theme. Follow the prompts to complete the uninstallation process. Note that you may also need to manually delete the following folder if your web server does not have the required permissions:
/theme/trema
Note that, once uninstalled, any customizations that were part of the Trema theme will no longer be displayed.
There are no known limitations at this time.
This plugin includes support for the English language.
However, it has been translated into about 20 other languages in AMOS by the Moodle community. If you need a different language that is not yet supported, please feel free to contribute using the Moodle AMOS Translation Toolkit.
This plugin has not been tested for right-to-left (RTL) language support although it has been used successfully in languages like Arabic.
IMPORTANT: Although we expect everything to work, this release has not been fully tested in every possible situation. If you find a problem, please help by reporting it in the Bug Tracker.
Important: Be sure to include trailing semi-colons or Moodle will break the theme's CSS. Example:
Bad:
$banner-text-color: #462323
Good:
$banner-text-color: #462323;
| Description | SCSS variable | Default | Sample value |
|---|---|---|---|
| Text color of the frontpage banner. | $banner-font-color | $white | #462323 |
| Set scale of site name font size. | $sitename-font-scale | 1 (site name > 36 chars: 0.75) | 0.8 |
| Height of frontpage banner. | $banner-height | 75vh | 100vh |
There are many more already available. These will be documented over time.
Trema displays course images using a 7:4 aspect ratio on the Dashboard (Course Overview block) and the course summary. For most sites, 700 x 400 pixels (7:4) is a good balance between visual quality and page-load performance.
Tips for course images:
- Crop to 7:4 before uploading. Images with different aspect ratios will be cropped automatically and may lose important content (faces, logos, text).
- Use WebP (preferred) for photographs and screenshots if your web server supports it. WebP files are typically 25-35% smaller than JPG at equivalent quality, and all current browsers display them.
- Use JPG for photographs when WebP is not available.
- Use PNG or GIF for drawings, diagrams, and logos. Flat-colour or text-heavy images compress better in these formats than in JPG or WebP.
- Optimize before uploading. Moodle does not optimize images for you. Tools such as TinyPNG, Squoosh, or your image editor's "Save for web" feature can reduce file size by 50-80% with no visible quality loss.
- Target under 100 KB per image where possible. Course listings load many images at once; a single 2 MB image can noticeably slow down the Dashboard.
Note: some sites reuse the course image for other purposes (course certificates, course banners). If you need a larger original for those uses, consider uploading an optimized copy specifically for the course image so the Dashboard remains fast.
There are no known security considerations at this time.
Got a burning question that is not covered here? If you can't find your answer, submit your question in the Moodle forums or open a new issue on GitHub at:
https://github.com/trema-tech/moodle-theme_trema/issues
Rodrigo Mady - Lead Developer/Maintainer | Moodle profile | GitHub
Michael Milette - Developer/Maintainer - TNG Consulting Inc. | Moodle profile | GItHub
Big thank you to everyone who has contributed to the development of Trema over the years.
Thank you also to all the people who have requested features, tested and reported bugs.
The development of this theme was motivated by our own experience in Moodle LMS development, features requested by our clients and topics discussed in the Moodle forums.
Copyright © 2019-2026 Rodrigo Mady and TNG Consulting Inc.
This file is part of Moodle - https://moodle.org/
Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Moodle. If not, see https://www.gnu.org/licenses/.
