Course Compass

Moodle guides

How to change the font and text colour in a Moodle course

Moodle themes set the fonts and colours for the whole site, and there is no setting to change them for one course. Here is what you can do on your own, and a free way to set the font, size and colours for a single course.

By Michael Williams · Updated 23 November 2026 · For Moodle 4.5 to 5.3

What Moodle can do on its own

There are two routes, and neither is made for a single course:

  • The theme. An administrator can change fonts and colours for the whole site with the theme settings or custom SCSS. It affects every course.
  • The text editor. You can colour or resize text one piece at a time inside a page, label or description. It is slow to maintain and does not touch section titles, activity names or quiz questions.

If one course needs larger text, a different typeface or its own colours, you are left editing each item by hand.

Set the font and colours for one course with CompassFont

CompassFont is a free block you add to a course page. People with permission choose the settings, preview them, and save them for the course.

  1. Install the plugin: Site administration > Plugins > Install plugins, upload the zip, then finish with Notifications.
  2. Add the block: turn editing on in the course and add CompassFont.
  3. Choose the settings: font type, font size and text colour, plus a section font colour and an activity font colour. A colour only applies while its Use this colour tick is on.
  4. Preview, then save: the page changes on your screen straight away. Press Save course settings to store them so everyone on the course sees them.

Learners and non-editing teachers never see the block or its controls. They just see the saved settings.

Where the settings apply

  • On the course page and inside activities: paragraphs, lists, tables, labels, quiz questions and answers, feedback, forum posts and the written content of a page or book.
  • Section and activity colours also show in the course index and in section and activity page titles.
  • H5P and SCORM packages served from your own site get the same font and text colour. Frames from other sites, such as YouTube, Vimeo and LTI tools, keep their own look.
  • Elements that set their own font or colour, such as code blocks, some buttons and links, may not change.

Choose colours people can read

The settings apply to the whole course, so check the contrast against your theme’s background. The WCAG accessibility guidelines ask for a contrast ratio of at least 4.5 to 1 for normal-size text. A free contrast checker will tell you in seconds. Larger text, and a typeface chosen for readability, can help learners who find the default hard to read.

Common questions

Can I change the font for just one course in Moodle?

Not with a core setting. Moodle’s fonts and colours come from the theme and apply to every course. CompassFont adds a course-level setting.

Who can change the settings?

Admins, managers, course creators and editing teachers. To stop editing teachers using the controls, take the permission away from the Teacher role.

Does it store any personal data?

No. The saved settings belong to the course, not to a person.

Which Moodle versions and themes are supported?

Moodle 4.5 to 5.3, tested on Boost-based themes. It works on course pages only, with one block per course.

Get CompassFont, free

Free and open source, GNU GPL v3 or later. For Moodle 4.5 to 5.3.

Download the plugin (zip)About CompassFont

More Moodle guides · Course Compass home