Skip to content

Theme Customization Guide

andrewbrazzatti edited this page Mar 5, 2024 · 3 revisions

Styling your site

This guide provides an overview of the SCSS structure and variables for customizing the default theme. The SCSS files are designed to make it easy to update colors, fonts, and responsive behavior without altering the original theme files.

Overview

The theme customization is split into several SCSS files:

  • default-theme.scss: Contains base layout and element styles.
  • default-variables.scss: Defines default variables for the theme, including colors and dimensions.
  • default-responsive.scss: Contains media queries and styles for responsive design.
  • default-colors.scss: Defines the color palette for the theme.
  • Customization placeholders:
    • custom-variables.scss: Intended for overriding default variables.
    • custom-theme.scss: Intended for adding custom styles.
    • custom-responsive.scss: Intended for custom responsive design overrides.
    • custom-colors.scss: Intended for defining a custom color scheme.

Default Theme Styles (default-theme.scss)

  • Font Configuration: Sets up Font Awesome and custom fonts.
  • Layout and Alignment: Includes classes for floating and aligning elements.
  • Image and Focus Styles: Custom styles for images and focus states.

Theme Variables (default-variables.scss)

Variables are used for styling consistency and are defined for:

  • Site branding area (background, heading colors)
  • Panel branding (background, text, border colors)
  • Main menu and header (background, link colors)

Responsive Design (default-responsive.scss)

Includes print media styles to ensure content is print-friendly:

  • Hides unnecessary elements like buttons and menus.
  • Ensures important elements are visible and properly formatted.

Color Scheme (default-colors.scss)

Defines a set of branding colors used throughout the theme:

  • Primary and secondary colors (e.g., $branding-color-1, $branding-color-2)
  • Text and background colors for different elements.

Customization Files

Placeholder files (custom-variables.scss, custom-theme.scss, custom-responsive.scss, custom-colors.scss) are provided for you to add your own styles, variables, and responsive design overrides. These files are intended to keep your customizations separate from the default theme, facilitating easier updates and maintenance.

Customizing Your Theme

To customize your theme, add your SCSS variables and styles to the respective "custom" files. This allows you to modify the look and feel of your site without altering the core theme files:

  1. Variables: Define your own colors, fonts, and other variables in custom-variables.scss.
  2. Styles: Add custom styles and overrides in custom-theme.scss.
  3. Responsive Design: Write custom media queries and responsive styles in custom-responsive.scss.
  4. Colors: Set up a custom color scheme in custom-colors.scss.