He replaced it with a modern, lean setup. He wrote a custom theme.libraries.yml that imported a single ES6 entry point:
The old theme relied on jQuery UI and a carousel plugin from 2014. Luca opened libraries.yml and grimaced. He deleted the entire jQuery block. luca lusso modernizing drupal 10 theme development
npm init -y npm install tailwindcss postcss autoprefixer --save-dev Then, he enabled the new, experimental single_directory_components module that had just landed in Drupal 10.3. Instead of scattering template, CSS, and JS across three different folders, he created a new directory: components/ . He replaced it with a modern, lean setup
Luca smiled. “I stopped theming Drupal like it was 2015. I started theming it like it’s a modern React app—but without the complexity. It’s just Twig, ES6, and a proper build pipeline.” He replaced it with a modern