White label - envris/White-Label-Help-Wiki GitHub Wiki
Brief description
The "White label" front end theme is what gives the site its look and feel. It provides styles and extra functionality.
Detailed description
The "White label" theme is a theme built to add styles and customisations to the White Label website. Drupal themes can be disabled and enabled to achieve different looks/feels. However this theme has been custom built for the purposes of the white label, and provides many enhancements.
The theme provides a handful of options, which you can access via "/admin/appearance/settings/white_label". These options are usually set at the beginning of creating a new site, and are rarely changed later. These are best used by advanced or experience Drupal site admins.
Technical description
To compile the styles and javascript, first install the node packages and then run the build commands.
npm i // run from the root of the project, not the theme root.
npm run // get a list of available commands
npm run watch // compile + watch for changes
npm run build // build the styles + js ready for production
For more detailed info, please see the README file in the theme.
Storybook Integration
See the Storybook Documentation
Customisations
- In white_label_preprocess_block, we alter the block entity field which display the content field on the sidebar of full content page (white label sidebar right layout). The field label value is being replaced by the block title.