1 # Normally, themes may list CSS files like this, and if they exist in the theme
2 # folder, then they get added to the page. If they have the same file name as a
3 # module CSS file, then the theme's version overrides the module's version, so
4 # that the module's version is not added to the page. Additionally, a theme may
5 # have an entry like this one, without having the corresponding CSS file in the
6 # theme's folder, and in this case, it just stops the module's version from
7 # being loaded, and does not replace it with an alternate version. We have this
8 # here in order for a test to ensure that this correctly prevents the module
9 # version from being loaded, and that errors aren't caused by the lack of this
10 # file within the theme folder.
11 name: '<strong>Test theme</strong>'
13 description: 'Theme for testing the theme system'
18 - '@system/css/js.module.css'
20 - test_theme/global-styling
22 # Replace an entire library.
23 core/drupal.collapse: test_theme/collapse
24 # Remove an entire library.
25 core/drupal.progress: false
26 # Replace particular library assets.
30 css/components/button.css: css/my-button.css
31 css/components/collapse-processed.css: css/my-collapse-processed.css
32 css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
33 css/components/details.css: /themes/my_theme/css/my-details.css
34 # Remove particular library assets.
38 css/components/dialog.css: false
39 # It works for JS as well.
42 assets/vendor/jquery/jquery.min.js: js/collapse.js
43 # Use Drupal-relative paths.
44 core/drupal.dropbutton:
47 /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
48 # Use stream wrappers.
49 core/drupal.vertical-tabs:
52 /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
53 # Use a protocol-relative URI.
57 assets/vendor/jquery.ui/themes/base/core.css: //my-server/my_theme/css/jquery_ui.css
58 # Use an absolute URI.
59 core/jquery.farbtastic:
62 assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css