Classy theme deprecated

Created on 20 January 2023, almost 2 years ago
Updated 8 May 2024, 6 months ago

With Drupal 9.5.*, the Classy theme is deprecated and should be uninstalled.
This theme, bootstrap_business, depends from "classy" theme:

bootstrap_business.inyo.yml:

name: Bootstrap Business
type: theme
base theme: classy

So the Classy theme cannot be uninstalled. I tried modifying the base_theme declaration in bootstrap_business.inyo.yml, from "classy" to "claro", but of course doesn't work.

The Classy theme itself is also depending from the Stable theme - also deprecated. So, it's impossible to uninstall the Stable theme too :-)

Will this theme be updated to no more depending from the classy and/or stable base theme(s)? Or should I move to another theme?

Thanks in advance

FB

💬 Support request
Status

Needs review

Component

Code

Created by

🇮🇹Italy francoud

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.

  • 🇮🇳India Rinku Jacob 13 Kerala

    Hi @francoud , We can set base theme as false. Recently created themes are using base theme as false. If set to false, no base theme is being used. It is clearly mentioned in - Defining a theme with an .info.yml file document.If you need this changes on info.yml file i will create a patch for that.

  • Assigned to ravi kant
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India ravi kant Jaipur

    I am reviewing this patch #4.

  • Issue was unassigned.
  • 🇮🇳India ravi kant Jaipur

    The Patch #4 is applying and it is working as accepted.

  • 🇬🇧United Kingdom Andrew Perriman

    I've got Bootstrap Business 8.x-1.0-beta5 on Drupal 9.5.11. If I change "classy" to "false" in bootstrap_business.info.yml, I lose a lot of css formatting. Why is that? And what can I do about it?

  • 🇮🇳India ravi kant Jaipur

    @Andrew Perriman
    CSS formatting issue will be appearing due to base theme styles is inheriting in child theme.
    So classy theme can download/install separately from https://www.drupal.org/project/classy due to it classy is not part of core in new Drupal releases.

  • Status changed to Needs work 6 months ago
  • 🇬🇧United Kingdom the_g_bomb

    As outlined in the change record for the removal of classy,
    There are a couple of options:
    Option 1: use the Classy contributed theme
    Option 2: Remove your theme's dependency on Stable themes altogether
    https://www.drupal.org/node/3305674

    To use the contrib version, there will need to be a dependency of classy:classy added to the info.yml and possibly an addition of a require to a composer.json file, to make sure the classy theme is enabled when this theme is enabled.

    To remove the dependency, the preprocess functions, twig templates and libraries will need to be moved from the classy theme to this theme, so the inheritance is no longer needed.

    Just removing the base theme entry will result in missing functionality and styling as reported in #8.

  • Status changed to Needs review 6 months ago
  • 🇮🇳India ravi kant Jaipur

    I just started with Option: 2, But I noticed that lots of work needs to be done.
    So I will suggest using Option 1 which is suggesting to use the Classy contributed theme as base theme.

Production build 0.71.5 2024