Why are not all stylesheets in mytheme.info being loaded? I have a strange issue, when I include the last CSS file (assets/fonts/montserrat/style.css), then the assets/css/style.css doesn't get loaded. It seems to have to do with duplicate naming of files, when I rename the stylesheet to montserrat.css, the issue is gone.

How do I solve this issue while keeping the naming of files intact?

mytheme.info:

name = mytheme
description = My custom theme
core = 7.x

stylesheets[all][] = assets/plugins/bootstrap/css/bootstrap.min.css
stylesheets[all][] = assets/plugins/font-awesome/css/font-awesome.min.css
stylesheets[all][] = assets/css/style.css
stylesheets[all][] = assets/css/custom.css
stylesheets[all][] = assets/fonts/montserrat/style.css
the answer is in the drupal_get_css doco page:


  Themes may replace module-defined CSS files by adding a stylesheet with the same filename. For example, themes/bartik/system-menus.css would replace modules/system/system-menus.css. This allows themes to override complete CSS files, rather than specific selectors, when necessary.


If you look at the source code at the bottom of the page, the array that contains the css has the basename of the file as the key. So this is an intentional feature.

You will just have to keep the renamed file.

Hope this helps. :)