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'
17 logo: images/logo2.svg
19 - '@stable/css/system/components/js.module.css'
21 - test_theme/global-styling
23 # Replace an entire library.
24 core/drupal.collapse: test_theme/collapse
25 # Remove an entire library.
26 core/drupal.progress: false
27 # Replace particular library assets.
31 css/components/button.css: css/my-button.css
32 css/components/collapse-processed.css: css/my-collapse-processed.css
33 css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
34 css/components/details.css: /themes/my_theme/css/my-details.css
35 # Remove particular library assets.
39 css/components/dialog.css: false
40 # It works for JS as well.
43 assets/vendor/jquery/jquery.min.js: js/collapse.js
44 # Use Drupal-relative paths.
45 core/drupal.dropbutton:
48 /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
49 # Use stream wrappers.
50 core/drupal.vertical-tabs:
53 /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
54 # Use a protocol-relative URI.
58 assets/vendor/jquery.ui/themes/base/core.css: //my-server/my_theme/css/jquery_ui.css
59 # Use an absolute URI.
60 core/jquery.farbtastic:
63 assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css