Andrew Wasson closed issue #2: Preprocess PCSS from the sub theme at Jean Valverde / Drupal 10+ Olivero sub theme

Andrew Wasson
2024-05-01T21:36:01Z

Hi there, I've recently come to the conclusion that if we can easily sub-theme Olivero, it will make Drupal just that much more effective vs. other popular CMS solutions. I've been building Drupal sites since 4.5 and have built many custom themes which are definitely necessary for complex sites but I'm quite certain that being able to sub-theme Olivero opens up doors for rapid development of less complex sites because all of the accessibility and mobile compatibility is built right in.

Edited below to strike out the issues I was having. I obviously didn't understand how the postCSS was being interpretted.

your article at https://developpeur-drupal.com/en/article/update-create-drupal-10-olivero-sub-theme takes us part way but I'm not sure how the PCSS files are built into CSS files. I've used Grunt/Gulp to preprocess SASS and SCSS and had hoped that the build script would do that as well but I seem to be missing a step.

Subtheming will only be useful for me if we can preprocess the JS and CSS from the sub-theme

I've lifted yarn run build:js from the D8 development branch of Olivero and it appears to work but I am struggling to make the build:css portion complete without errors.

Have you made any attempts to do this?