The FlexiStyle theme is a base theme. This theme supports the Drupal 9 and 10 versions. In this theme, we have disabled all the system CSS. This theme is lightweight because we are attaching all the CSS and JS libraries based on the components and disabling unnecessary libraries. Use twigs from the system modules for the alteration. We have created all the recommended twigs in the templates folder. The theme is fully responsive and mobile-first. In this theme, we have added the latest version of the font-awesome and Google material library for icons.
Default core block configuration files are added in the optional config folder in the theme. We can manage the header and footer color and style from the theme. It is a user-friendly theme. The theme is fully PWA compatible. The theme performance is very high in the lighthouse.
Create a Subtheme
- You can create a subtheme through a shell script.
- Install the FlexiStyle theme with the composer
composer require 'drupal/flexi_style' but don't enable it. - Go to the theme folder from shell or command prompt:
cd themes/contrib/flexi_style. - Run this command from the shell "Make script executable":
chmod +x scripts/subtheme.sh. - Run this command from the shell to launch the script:
sh scripts/subtheme.shor./scripts/subtheme.sh. - That script will ask the questions for you to create your subtheme.
- Type machine_name of the theme:
my_theme - Type Name of the theme:
My Theme
- Type machine_name of the theme:
- Go to the administration -> Appearance and enable the My Theme.
Project link
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | flexi_style-phpcs.txt | 469.25 KB | vishal.kadam |
Comments
Comment #2
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
anoopsingh92Comment #4
vishal.kadamRemember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
Comment #5
anoopsingh92Drupal coding standard fixes are done.
Comment #6
vishal.kadam1. Fix phpcs issues.
It seems you have missed working on the coding standards of CSS files.(see attached flexi_style-phpcs.txt)
2. Remove empty hooks.
FILE: flexi_style.theme
FILE: subtheme/_flexi_style_subtheme.theme
Comment #7
anoopsingh92Thanks for the review @vishal.kadam, I think, I missed it for the CSS files.
Now, I have fixed all the mentioned issues, you can check and review them.
Thanks.
Comment #8
vishal.kadamRest looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
Comment #9
vishal.kadamComment #10
avpadernoflexi_style.theme
The correct description for those hook implementations starts with Implements hook_preprocess_HOOK() for.
With that code,
$form['keys']['#attributes']['placeholder']will be set for every form.Drupal core already adds a similar description for the mail form element.
It does not make sense to add a similar sentence to the name form element.
That form is also used from users with the role of user administrator, for which the more correct label for the submission button is Create new account, already used from Drupal core.
Since that hook is adding suggestions only for a case, that hook should be replaced by a
hook_theme_suggestions_HOOK_alter().Those are
hook_theme_suggestions_HOOK_alter()implementations.Comment #11
anoopsingh92Thanks for the feedback @apaderno,
I worked on your mentioned comment #10.
I have updated the file flexi_style.theme please review it again.
Thank you
Comment #12
anoopsingh92The code is updated and the branch has also changed.
Please review it now. Thanks.
Comment #13
rushikesh raval commentedI am changing the issue priority as per issue priorities.
Comment #14
avpadernoflexi_style.theme
With the exception of
$variables, all the variables are initialized but never used.Thank you for your contribution!
I updated your account so you can now opt into security advisory coverage for any project you created and every project you will create.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thank you for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank also the dedicated reviewers as well.
Comment #15
avpaderno