The real magic came when he integrated Tailwind’s @layer components with Drupal’s SDC (Single Directory Components). He configured postcss.config.js to scan the components/ folder. Now, unused CSS was purged automatically. Build times dropped from 12 seconds to 0.8 seconds.
He showed the client a preview. The carousel that used to stutter on scroll now ran at 120fps. The CLS (Cumulative Layout Shift) score went from 0.45 to 0.02. luca lusso modernizing drupal 10 theme development
% include 'components/card' with title: label, image: content.field_image only % Clean. Reusable. Predictable. The real magic came when he integrated Tailwind’s
He replaced it with a modern, lean setup. He wrote a custom theme.libraries.yml that imported a single ES6 entry point: Build times dropped from 12 seconds to 0
He opened his terminal and ran the familiar commands:
“How?” the client asked, bewildered.
“This isn’t a theme,” Luca muttered, sipping his espresso. “This is a historical artifact.”