Sidebar colours

In Moodle
About this page

Look of the left-hand menu — icons, hover states, and scrollbars.

Sidebar Color Customization

Use the sections below to tune the drawer panel, navigation items, scrollbar, and links. Changes apply after you save the form. Each sidebar colour is followed by a **dark mode** field. Use the **dark mode** switch in the admin top bar (same as on the site) to show those fields and preview the drawer with data-bs-theme="dark".

Drawer panel

Background of the sidebar and its main text colour.

Short text

Sidebar Background

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerbg
Suggested screenshot. Show the colour field in admin and the same page in both light and dark mode.
Add screenshot: screenshots/sidebar-colors/colordrawerbg.png
Short text

Sidebar background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerbgdarkmode
Suggested screenshot. Show the colour field in admin and the same page in both light and dark mode.
Add screenshot: screenshots/sidebar-colors/colordrawerbgdarkmode.png
Short text

Sidebar Text

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawertext
Short text

Sidebar text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawertextdarkmode

Section toggles (Categories / My courses)

By default, the “Categories” and “My courses” headers use the **same** colours and hover behaviour as .rui-nav-item-link. Enable **Custom section toggle styles** if you want a separate boxed look; then the two colour fields below control the outer wrapper and the button surface.

On / off

Custom section toggle styles

When enabled, the outer wrapper uses “Section toggle outer background” and the row uses “Section toggle button background”. When disabled, toggles match normal sidebar navigation links (transparent row, shared hover rules).

Admin keytheme_xy/sidebarabtncustomstyles
Short text

Section toggle outer background

Background of the outer wrapper around “Categories” and “My courses”. **Only applied** when “Custom section toggle styles” is enabled; otherwise toggles use the same flat look as normal sidebar links. Use the **Section toggle** colour fields below for label text, hover, icons, and badges in that mode.

Admin keytheme_xy/colordrawernavcontainer
Short text

Section toggle outer background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavcontainerdarkmode
Short text

Section toggle button background

Background of the wide button row (.rui-sidebar-abtn). **Only applied** when “Custom section toggle styles” is enabled. Text, icons, and hover states still follow the “Navigation items” colours below.

Admin keytheme_xy/colordrawersidebarabtnbg
Short text

Section toggle button background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtnbgdarkmode
Short text

Section toggle icon color

Icon colour inside the “My courses / Categories” toggle button (.rui-sidebar-abtn .rui-nav-icon). **Only applied** when “Custom section toggle styles” is enabled; otherwise the icon uses the main navigation icon colour.

Admin keytheme_xy/colordrawersidebarabtnicon
Short text

Section toggle icon (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtnicondarkmode
Short text

Section toggle badge background

Background of the counter badge (e.g. *myCourseBadge*) rendered inside the toggle (.rui-sidebar-abtn .rui-drawer-badge). **Only applied** when “Custom section toggle styles” is enabled.

Admin keytheme_xy/colordrawersidebarabtnbadgebg
Short text

Section toggle badge background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtnbadgebgdarkmode
Short text

Section toggle badge text

Text colour of the counter badge inside the toggle (.rui-sidebar-abtn .rui-drawer-badge). **Only applied** when “Custom section toggle styles” is enabled.

Admin keytheme_xy/colordrawersidebarabtnbadgetext
Short text

Section toggle badge text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtnbadgetextdarkmode
Short text

Section toggle label text color

Main text colour on the “My courses / Categories” toggle (.rui-sidebar-abtn color). **Only applied** when “Custom section toggle styles” is enabled; otherwise the row uses the navigation text colour.

Admin keytheme_xy/colordrawersidebarabtntext
Short text

Section toggle label text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtntextdarkmode
Short text

Section toggle hover background

Background colour when hovering the toggle (.rui-sidebar-abtn:hover). **Only applied** when “Custom section toggle styles” is enabled.

Admin keytheme_xy/colordrawersidebarabtnbgh
Short text

Section toggle hover background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtnbghdarkmode
Short text

Section toggle hover text color

Text colour when hovering the toggle. **Only applied** when “Custom section toggle styles” is enabled.

Admin keytheme_xy/colordrawersidebarabtntexth
Short text

Section toggle hover text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtntexthdarkmode
Short text

Section toggle hover icon color

Icon colour when hovering the toggle (.rui-sidebar-abtn:hover .rui-nav-icon). **Only applied** when “Custom section toggle styles” is enabled.

Admin keytheme_xy/colordrawersidebarabtniconh
Short text

Section toggle hover icon (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawersidebarabtniconhdarkmode
Short text

My courses filter color

Text and icon colour for the “My courses” filter strip (.rui-sidebar-filter). Also used for switch **labels** and the **unchecked** state of .form-switch .form-check-input, including the thumb drawn via background-image / –bs-form-switch-bg (in-progress and course filters).

Admin keytheme_xy/colordrawersidebarfilter

My courses filter colour (dark mode)

Same role as “My courses filter color” when the interface is in dark mode. Live preview updates the switch thumb when the admin preview is dark.

Short text

My courses list: link text colour

Text colour on each course row in the scroll area (`.rui-course-wrapper`, `#myCoursesList .rui-nav-item-link`). When empty, inherits **Navigation items → Sidebar Button Text**.

Admin keytheme_xy/colordrawermycoursestext
Short text

My courses list: link text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursestextdarkmode
Short text

My courses list: course icon colour

Stroke/fill inherits via `currentColor` on SVG icons in each course row. When empty, inherits **Navigation items → Sidebar Button Icon**.

Admin keytheme_xy/colordrawermycoursesicon
Short text

My courses list: course icon (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesicondarkmode
Short text

My courses list: row hover background

Background when hovering or focusing a course row. When empty, inherits **Navigation items** hover background.

Admin keytheme_xy/colordrawermycoursesitembghover
Short text

My courses list: row hover background (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesitembghoverdarkmode
Short text

My courses list: row hover text

When empty, inherits **Navigation items** hover text colour.

Admin keytheme_xy/colordrawermycoursesitemtexthover
Short text

My courses list: row hover text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesitemtexthoverdarkmode
Short text

My courses list: row hover icon

When empty, inherits **Navigation items** icon hover colour.

Admin keytheme_xy/colordrawermycoursesitemiconhover
Short text

My courses list: row hover icon (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesitemiconhoverdarkmode
Short text

My courses list: progress ring track

Stroke colour of the circular progress **background** ring (`.circle-bg`) only inside `.rui-course-wrapper`.

Admin keytheme_xy/colordrawermycoursesprogtrack
Short text

My courses list: progress ring track (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesprogtrackdarkmode
Short text

My courses list: progress ring fill

Stroke colour of the in-progress arc (`.circular-chart-color .circle`) in the course list.

Admin keytheme_xy/colordrawermycoursesprogbar
Short text

My courses list: progress ring fill (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesprogbardarkmode
Short text

My courses list: completed progress ring

Stroke colour when progress is 100% (`.circular-chart-100 .circle`).

Admin keytheme_xy/colordrawermycoursesprogcomplete
Short text

My courses list: completed progress ring (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesprogcompletedarkmode
Short text

My courses list: progress percentage text

Colour of the numeric label next to the mini chart (`.rui-mycourse-progress-label`).

Admin keytheme_xy/colordrawermycoursesproglabel
Short text

My courses list: progress percentage text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawermycoursesproglabeldarkmode

Navigation items

Icons and labels for course links and custom sidebar buttons, including hover and active states.

Short text

Sidebar Button Icon

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtnicon
Short text

Sidebar navigation row icon (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtnicondarkmode
Short text

Sidebar Button Icon (Hover)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtniconh
Short text

Sidebar navigation row icon hover (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtniconhdarkmode
Short text

Sidebar Button Text

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntext
Short text

Sidebar navigation row text (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntextdarkmode
Short text

Sidebar Button Text (Hover)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntexth
Short text

Sidebar navigation row text hover (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntexthdarkmode
Short text

Sidebar Button Background (Hover/Active)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtnbgh
Short text

Sidebar navigation row background hover (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtnbghdarkmode
Short text

Sidebar Button Text (Light)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntextlight
Short text

Sidebar navigation row text light (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawernavbtntextlightdarkmode

Scrollbar

Colour of the thin scrollbar track inside the drawer.

Short text

Sidebar scrollbar track color

Background colour of the scrollbar **track** inside the sidebar (.nav-drawer-container, .drawercontent) and the mini “My courses / Categories” list (.rui-course-wrapper). Works cross-browser via scrollbar-color (Firefox / modern Chromium) and ::-webkit-scrollbar-track (Chrome, Edge, Safari).

Admin keytheme_xy/colordrawerscrollbar
Short text

Sidebar scrollbar track (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerscrollbardarkmode
Short text

Sidebar scrollbar thumb color

Colour of the draggable scrollbar **thumb** inside the sidebar and the “My courses / Categories” list. Falls back to the theme default when empty.

Admin keytheme_xy/colordrawerscrollbarthumb
Short text

Sidebar scrollbar thumb (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerscrollbarthumbdarkmode
Short text

Sidebar link (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerlinkdarkmode
Short text

Sidebar Link Color (Hover)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerlinkh
Short text

Sidebar link hover (dark mode)

Enter a short value such as a label, link, or colour code.

Admin keytheme_xy/colordrawerlinkhdarkmode