Hi all,
I have some issues after testing some themes in Drupal8 beta 4. the problem is that the css is not loading, I tried other themes like Omega Five for Drupal 8 but that had no effect, every time the css was not loaded.
can someone help me why the css is not loading correct.

Comments

zetagraph’s picture

Check out this post about different ways to add css & js to your theme: http://www.appnovation.com/blog/how-add-js-and-css-assets-drupal-8-theme. Recently there have been few changes in how these assets are served, particularly the use of "libraries.yml". Some of the new D8 themes might not have been updated yet to reflect that change. Also, you can always check one of the core themes e.g: core/themes/bartik to see where things are coming from. Hope this helps.

motmot12’s picture

Thanks for your help

motmot12’s picture

idlehands.info.yml

name: Idlehands
type: theme
description: Drupal 8 Theme
version: '1.0'
project: 'idlehands'
core: 8.x
screenshot: screenshot.png
libraries:
  - idlehands/global-styling
# Override a CSS file:
stylesheets-remove:
  - normalize.css
regions:
  content: 'Content'
  sidebar: 'Sidebar'
  footer: 'Footer'

idlehands.libraries.yml

global-styling:
  css:
    theme:
      css/layout.css: {}
      css/style.css: {}
      stylesheets/screen.css: {}
pawandubey’s picture

Also checkout the below link for "Adding stylesheets (CSS) and JavaScript (JS) to a Drupal 8 theme":
https://www.drupal.org/theme-guide/8/assets