How to Apply Custom CSS
To apply custom CSS to Fermion components, use thedata-custom-css-class
attribute with the appropriate selector. Here’s the general syntax:
Example
This example changes the background color of the completed lessons’ checkbox to green in the course items.
Currently Available Selectors
Below, we present a list of available values for thedata-custom-css-class
attribute that target specific locations on the Fermion platform.
Course Item Views
[data-custom-css-class="course-item-video"]
- Targets video lessons[data-custom-css-class="course-item-quiz"]
- Targets quiz items[data-custom-css-class="course-item-article"]
- Targets article/read-only items[data-custom-css-class="course-item-ebook"]
- Targets embedded eBooks[data-custom-css-class="course-item-contest"]
- Targets contest/problem items[data-custom-css-class="course-item-scorm"]
- Targets SCORM packages[data-custom-css-class="course-item-assignment"]
- Targets assignment/homework items[data-custom-css-class="course-item-iframe-embed"]
- Targets generic iframe embeds[data-custom-css-class="course-item-coding-lab"]
- Targets coding lab items[data-custom-css-class="course-item-live-event-fermion"]
- Targets Fermion live events[data-custom-css-class="course-item-live-class-fermion"]
- Targets Fermion live classes[data-custom-css-class="course-item-live-class-other"]
- Targets non-Fermion live classes
Header Logo (Course Landing Page)
[data-custom-css-class="header-logo-course-landing-page-desktop"]
[data-custom-css-class="header-logo-course-landing-page-mobile"]

Header Logo (Website Pages)
[data-custom-css-class="header-logo-homepage-page-desktop"]
[data-custom-css-class="header-logo-homepage-page-mobile"]

Header Logo (Product Landing Page)
[data-custom-css-class="header-logo-product-landing-page-desktop"]
[data-custom-css-class="header-logo-product-landing-page-mobile"]
Learning Page
[data-custom-css-class="course-item-mark-as-done-checkbox"]
- Targets the control to mark an item as complete[data-custom-css-class="course-item-mark-as-not-done-checkbox"]
- Targets the control to mark an item as incomplete

Learning Page (Sidebar Header)
[data-custom-css-class="header-logo-course-item-sidebar-mobile"]
[data-custom-css-class="header-logo-course-item-sidebar-desktop"]

Learning Page (Content Side)
[data-custom-css-class="course-item-main-area"]
- This selector is the topmost parent class of the area where the user sees course item content.
Course Item Layout/Wrappers
[data-custom-css-class="course-item-main-area"]
- Outer wrapper for the current course item content
Course Landing Page Sections
[data-custom-css-class="instructor-section-top"]
- Top instructor information block[data-custom-css-class="instructor-section-bottom"]
- Bottom instructor information block[data-custom-css-class="course-hero-section"]
- Hero/header section of the course page[data-custom-css-class="course-content-sections"]
- Main content/what-you’ll-learn sections[data-custom-css-class="course-reviews-grid"]
- Reviews/testimonials grid container[data-custom-css-class="course-faqs-container"]
- FAQs accordion/container
Dynamic State and Type Marker
Pattern:course-item--state-${complete|incomplete}--type-${lowercase(item.type)}-v2
- Use exact values to target specific combinations, for example:
Authentication Pages
[data-custom-css-class="login-page"]
- Targets the login page at/login
. Use this to customize background, fonts, and overall styling of the login page.[data-custom-css-class="logout-page"]
- Targets the logout page at/logout
. Use this to customize page-level visuals while logging out.[data-custom-css-class="register-page"]
- Targets the registration page at/register
. Use this to customize background, fonts, and overall styling of the registration page.[data-custom-css-class="password-reset-page"]
- Targets the password reset page at/password-reset
. Use this to customize background, fonts, and overall styling of the password reset page.
Complete Example Configuration
Here’s a comprehensive example showing how to customize authentication pages with custom CSS(currently supports upto 20,000 characters for custom code injection):Best Practices
- Specificity: When using these selectors, ensure your CSS rules are specific enough to override the default styles without affecting other elements unintentionally.
- Responsive Design: Consider both desktop and mobile selectors when making changes to ensure a consistent experience across devices.
- Testing: Always test your custom CSS on various screen sizes and browsers to ensure compatibility and proper rendering.
How to Access Custom CSS Settings
To apply custom CSS to your Fermion platform:- Navigate to your Fermion dashboard
- Go to School Settings
- Scroll down to find the Custom Code Injection section
- Add your CSS code in the provided text area inside
<style>
tag - Click Save to apply the changes