mogtofu33 / olivero_sub_theme

Starting point for a minimal Drupal 10 Olivero sub theme with minimal overrides.

Home Page:https://developpeur-drupal.com/en/article/update-create-drupal-10-olivero-sub-theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drupal 10 Olivero sub theme

Minimal template to create a sub theme from Drupal Olivero theme.

This is only recommended if you want to make minor tweaks and understand that Olivero could break your modifications as it changes.

See full article:

Quick HowTo

Copy this theme in your Drupal theme folder web/themes/custom and rename it, ie olivero_sub_theme > _MY_THEME_NAME_.

Rename all files in this folder from olivero_sub_theme > _MY_THEME_NAME_.

Edit _MY_THEME_NAME_.info.yml with your informations.

Edit _MY_THEME_NAME_.theme to change olivero_sub_theme_css_alter > MY_THEME_NAME_css_alter and change the theme name olivero_sub_theme with your name.

Run:

scripts/build.sh _MY_THEME_NAME_

Enable the theme as usual from your Drupal.

Visit theme settings to set base colors: Administration > Appearance > Appearance settings > _MY_THEME_NAME_

Disable css, js aggregation and cache in Drupal, see the Drupal documentation.

Adapt css/theme.css and js/theme.js.

Build the css with postcss by running each time:

scripts/build.sh _MY_THEME_NAME_

About

Starting point for a minimal Drupal 10 Olivero sub theme with minimal overrides.

https://developpeur-drupal.com/en/article/update-create-drupal-10-olivero-sub-theme


Languages

Language:CSS 62.7%Language:Shell 34.3%Language:JavaScript 3.0%