Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.67 KB

HowToThemeEng.md

File metadata and controls

34 lines (29 loc) · 1.67 KB

Add new theme file to theme switcher

  1. Copy an existing theme from client/themes
  2. Add a reference for the new theme file in client/themeSwitcher.scss "$themes" at the beginning of the file

Add new elements to theme switcher

  1. open .cards in your favourite IDE
  2. move to client/themeSwitcher.scss
  3. find the css-class/id of the element you want to change
    • to know what css-class/id you need use the developer tool of your browser and find the element
  4. search for the attribute you want to change and copy the query
  5. open up the themes in client/theme/
  6. with the help of "Ctrl+F" look for the copied query (without the "$")
  7. here you can change the set color
    • Example: "footer_navigation_background": $default_background,
    • If you want to change the color to white write:
    • "footer_navigation_background": $white,
  8. At the beginning of the file you can set new colors with "$query-name: color;"
    • query-name: used to set the color later to the element
    • color: normal css/scss color attribute

Change background images

  1. to change the backgrounds, go to imports/config/backgrounds.js
  2. create a new background path object or modify an existing one:
    • "none" to deactivate the background
    • or change the url to a new picture

Backgrounds can be found at public/img/background

Add themes color and background images to the Theme Switcher

  1. open the server configuration files in the folder imports/config/serverStyle/style
  2. find the "themes" object
  3. Add the new theme name and background to the list
  4. add in the translation files under i18n/themes/ inside the variable "list" the name of the theme as well as the translation