Weesperstraat 61-105
1018 VN Amsterdam
The Netherlands

How to remove all Drupal 10 core CSS -and JS files, for an uber-clean frontend theme

07 Apr, 2023 Drupal
remove drupal core css js files

I wanted to make a frontend theme as clean and fast as possible, so wanted to remove all Drupal core stylsheets. After quite some research I couldn't find a complete solution, so scratched my own itch:

Here's is an example of how your_theme.info.yml could look like, to strip your frontend theme from all Drupal CSS -and JS files.

name: Your Theme
type: theme
description: "Your Theme description"
core_version_requirement: ^10
base theme: false
ckeditor_stylesheets:
  - assets/css/editor/ck_editor.css
libraries:
  - your_theme/global
regions:
  main_menu: Main Menu
  breadcrumbs: Breadcrumbs
  content: Content
  sidebar_right: Sidebar Right
  footer_menu: Footer Menu
libraries-override:
  core/jquery: your_theme/jquery-custom
  system/base: false
  views/views.module: false
  core/internal.underscore: false
  core/once: false
  core/internal.backbone: false
  core/drupalSettings: false
  core/drupal: false
  contextual/drupal.contextual-links: false
  core/drupal.progress: false
  core/drupal.active-link: false
Drupal Drupal theming Planet Drupal
Written by Joris Snoek | Apr 07, 2023
Drupal project? Let's Talk

Please tell me all about your project!
Mail , or send a message:

Got some more time?

Related content

28 Oct 2026 Drupal

Legacy code, all cleaned up

**I had been postponing Drupal coding standards fixes in distro [OpenLucius](https://www.drupal.org/project/openlucius) for far too long now. There were always more interesting things to do: fixing bugs, building new features, and improving existing functionality. While code style fixes should…

Read more →

16 Oct 2026 Drupal

There’s an incredible amount of things happening in the world of Drupal and AI. It’s very exciting, but almost impossible to keep up with. I’d been planning for a while to seriously dive into agentic coding. I feel a little late to the party, but at the same time, I get the impression that many…

Read more →

28 Sep 2026 Drupal

AI as a programming partner

A request from a product owner: their Drupal website has a content type called 'Event'. The editorial team wants to display a block on the homepage showing the next three events. ## The initial request and AI prompt > “Create a Drupal block that displays the next three events, sorted by start…

Read more →

21 Sep 2026 Drupal

With new features like: @-mentions, drag-and-drop images & general settings.

Last week we released a new version of OpenLucius: a lean and fast Drupal social collaboration distribution with features like: groups, social posts, messages, group chats, stories, file -and folder management, notebooks, categories, activity streams, notifications, @-mentions, comments and…

Read more →