[META] Subtheming Olivero

Created on 5 January 2021, about 4 years ago
Updated 16 February 2024, 11 months ago

Problem/Motivation

Trying to find a future-proof base theme in Drupal right now is very challenging to say the least. There used to be one primary Bootstrap theme for Bootstrap 3, but since the release of Bootstrap 4 stable and the upcoming release of Bootstrap 5 stable, the community is now completely fractured as it relates to Bootstrap.

Additionally, since Classy will be moved to contrib prior to the release of Drupal 10 β†’ in order to Replace Classy with a new starter kit theme β†’ , the decision as to what base theme to use (now) becomes even less clear.

All of the above to say, since Olivero is such a versatile and beautiful theme I think many in the community will want (need) to be able to easily subtheme Olivero, hopefully with color module support β†’ .

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🌱 Plan
Status

Active

Version

11.0 πŸ”₯

Component
OliveroΒ  β†’

Last updated 3 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Sub-theming is used for customizing the look of the site. Custom menu positioning, customizing breakpoints and fixing layout issues quickly in CSS. Writing styles for apps and/or print styles. Custom widgets, form elements, etc. We also integrate TypeScript and attach custom behaviors.

    I understand the built-in themes are great for a simple site with content, but if you have lots of custom modules and functionality, then using the built-in theme really limits what you can do.

  • Currently, I'm looking at upgrading a site to D10, and it has a theme with base theme: classy. I'm also looking at solutions to that.

    So, when upgrading a site from D9 to D10, do I:

    1. Use the contrib base theme and keep my D9 theme as-is?
    2. Rewrite the theme from scratch (again) and hope we won't have to next time?
    3. Something else?
  • πŸ‡¨πŸ‡¦Canada laceysanderson

    > The primary obstacle for this (as I understand it) is that the markup (and CSS selectors) need to be stable. We are currently changing the markup as needed to squash bugs and fix various technical debt issues.

    How much is the markup within Olivero still changing at this point? The above was mentioned as the main obstacle 3 years ago and I would love to hear opinions on how much of a concern this still is when it comes to using Olivero as a base theme?

    Background:
    Like many, I really want to use Olivero as a base theme. I have tried [the script and manual instructions here](https://github.com/mherchel/olivero-subtheme) to setup my own copy of Olivero as recommended by @mherchel but it was quite intense and even after I have it working in the UI as a theme, it is still not functioning from a development standpoint. Specifically, there is no yarn.lock included and running yarn install I get an empty file. When I try to run yarn build:css I get an error because there is no package.json. I'm guessing all of this is due to changes in the structure of the theme when it moved into Drupal core but I have no idea how to go about resolving it.

    The above issues plus the complicated code base that is Olivero really makes me want to use it as a base theme rather than copy the entire thing over. My above question is so that I can make an informed decision about the amount of breaking likely to be caused by core changes. Tbh even if it's a lot I'm starting to think it would still be less work to adapt to a changing core than it would be to try to incorporate fixes into a forked version or write/maintain our own theme from scratch.

  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί
Production build 0.71.5 2024