artisan
Artisan is a base theme built with Tailwind CSS and DaisyUI.
Its goal is to provide a base theme that allows most of its components to be reused without having to completely overwrite them in the custom theme of a specific project.
Installation & Setup
-
Install the theme as you would normally install a contributed Drupal module or theme via Composer.
composer require drupal/artisan drush then artisan-
Execute the following drush command to create a subtheme based on Artisan
drush --include="web/themes/contrib/artisan" artisan
Key features
CSS Variables to configure the base style guide
Configure your theme color's palette, font-sizes, font-weights, radius, spacings consistently across your project.
Based on DaisyUI & Tailwind CSS
DaisyUI is an open-source Tailwind CSS component library.
A plugin built on top of Tailwind CSS that promotes the usage of semantic class names (such as card, button, accordion) instead of writing a lot of class names to match a button style.
Artisan provides several DaisyUI Components ready to be used, such as cards, accordions, badges, dropdowns…
SDC Usage (Single Directory Components)
Artisan takes advantage of the SDCs, already a Drupal standard, providing the necessary flexibility so that you do not have to overwrite them in each application. Thanks to this implementation, developers can reuse components efficiently, reducing time and effort in each project and guaranteeing greater design consistency.
Effortless Dark Mode
Thanks to the DaisyUI color system, Artisan ships with an automatic & easily customizable dark mode and a built-in theme-switcher.
Drupal Icon API
Drupal 11.1 introduces Icon API, that allows themes and modules to define icon libraries.
Artisan integrates Heroicons, made by the creators of Tailwind CSS, as the default icon library.
Introducing CSS Variables Customizer
CSS Variables Customizer is a module that provides an UI to create/change CSS Variables.
It also allows you to preview your SDCs, modify CSS variables and see real-time changes on them.
About 1.x version
There won't be any further development on Artisan 1.x
The new major release brings significant architectural, framework and design changes, making an upgrade path between versions not feasible.