Problem/Motivation
Based on the https://www.drupal.org/project/drupal/issues/3308890.
The stable theme is deprecated and will be removed from Drupal 10. Themes depending on the stable theme may use the stable contrib project or switch to stable 9.
Steps to reproduce
1. Use Drupal 9.5 clean website
2. Follow readme.txt download the tailwindcss theme project
3. Enable the theme and check the status report.
Proposed resolution
Set stable project as dependency theme.
Remaining tasks
Update composer.json
User interface changes
No
API changes
No
Data model changes
No
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | base-theme-change-3330727-14.patch | 409 bytes | csakiistvan |
Issue fork tailwindcss-3330727
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
csakiistvanI fixed the D10 compatibility issue too.
Comment #3
avpadernoComment #4
avpadernocorecannot be used with thatcore_version_requirementvalue.Either that value is changed, or the patch just corrects the
base themevalue, which is the topic of this issue.Comment #5
csakiistvanThank you apaderno for the feedback. I updated the patch and it is modify only the topic of this issue.
Comment #6
cobenash@apaderno @csakiistvan Thank you !
However, the original issue I reported will be added stable theme as dependency theme.
Therefore, I guess we probably needs to add composer.json and add stable theme in require section.
Also, we might need to change the installation process in readme.txt. Using composer instead of git clone.
Comment #7
cobenashComment #8
csakiistvanThe Readme update is on an another issue https://www.drupal.org/project/tailwindcss/issues/3197085. The composer is a good idea, we should create a new issue for this. What do you think cobenash?
Comment #9
csakiistvanComment #10
cobenash@csakiistvan Thank you.
I am okay with opening another new issue for supporting composer.json.
But the current issue will not be fixed for now. Because stable theme is the base theme of the tailwindcss theme.
About the composer.json format, I think we could use the following format.
Although the themes project will be moved to contrib folder if we use composer, but we could add some script to clone a new one on the custom foler.
Comment #11
csakiistvanYes, you are right. I misunderstood the task, I am on it.
Comment #12
csakiistvan@cobenash do you mean the tailwindcss theme should be move to the themes/custom folder right? There is a vendor-dir option in the composer, we should use this for that
Comment #13
cobenash@csakiistvan
No, I mean if we use composer to download the theme, drupal will put the theme directly at the
theme/contribfolder. But it's fine.Instead, I think we should create a basic shell script, copy the theme from
theme/contrib/tailwindcsstotheme/custom/mythemeAlso, update the theme name and corresponding file name.
For example, mytheme might be the new custom tailwindcss.
Comment #14
csakiistvanI think It looks like a new feature request. Should I create a new issue for this?
I attached the updated patch
Comment #15
cobenash@csakiistvan Thank you for your patch.
From my end, I think the script is necessary. Here is the example I found from bootstrap_sass https://git.drupalcode.org/project/bootstrap_sass/-/blob/5.x/scripts/cre...
Or we need to update the readme.txt to write the correct step if we want to use composer download the project.
It's just my point of view. :)
Comment #16
gambryAdding the correct tag for Drupal Global Contribution Weekend 2023.
Comment #17
norman.lolComment #20
opdaviesI think it's also worth testing this with
base theme: falseand seeing if it works without a base theme.Comment #21
markconroy commentedWe have also worked on the "Stable is deprecated" issue in #3465786: Add support for Drupal 11 where we set Stable9 as the theme, so we are not relying on a contrib theme, and also updating from
coretocore_version_requirement.For that reason, I think this issue could probably be closed as outdated since it doesn't reflect support for D11.