-
Notifications
You must be signed in to change notification settings - Fork 15
Theme Customization Guide
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.
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.
-
- 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.
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)
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.
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.
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.
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:
-
Variables: Define your own colors, fonts, and other variables in
custom-variables.scss
. -
Styles: Add custom styles and overrides in
custom-theme.scss
. -
Responsive Design: Write custom media queries and responsive styles in
custom-responsive.scss
. -
Colors: Set up a custom color scheme in
custom-colors.scss
.