um.. ok.. this seems like a pretty straightforward thing. I'm trying to make a basic theme. I activated it and went to see, but nothing was there. " got: "The website encountered an unexpected error. Please try again later."

So I stripped everything down to bare essentials. but still got the same message. I've checked folder names and all that's fine. What the heck am I missing? This seems like it's so simple there can't be anything done wrong! 

ThemeName.info.yml = 

name: ThemeName
description: My first Drupal 8 theme
type: theme
base theme: False
core: 8.x
version: VERSION
libraries:
- CyberScout/global-styling
regions:
    header: Header
    content: Content
 

ThemeName.libraries.yml =

global-styling:
version: VERSION
css:
css/layout.css: {}
 

page.html.twig = 

Hello world<br/>

{{ page.header }}
{{ page.content }}

Comments

Jaypan’s picture

You didn't wrap your code in code tags, so we can't see your formatting, but I'd bet that with that small bit of code it's probably a .yml formatting issue. Run your YML files through a YML validator.

dibyajyoti.mallick’s picture

Hi,

First of all enable the error log, so that you can find out what exact error is coming:

For enable go to : Admin > configuration > Development > Logging & Error

Select "Errors and warnings" and save it

Thanks