I have installed drupal 8.4.2 and created a subtheme with base theme bootstrap. I want to customize settings adding the color module, but really I do not know what steps I am missing.
- I have enabled color module (it's in core)
- I have copied (from bartik) the color directory and files
- I have edited color.inc to have my custom color schemes
I have edited THEME.theme adding this:
function MYTHEME_process_html(&$variables) { // Hook into color.module. if (module_exists('color')) { _color_html_alter($variables); } } function MYTHEME_preprocess_page(&$variables, $hook) { // Hook into color.module if (module_exists('color')) { _color_page_alter($variables); } }
As a result I have white page with no rendering. (It's not cache issue) and I guess my problem is with .theme file I'd like to know where to find the instructions (drupal.org has not much). Thanks