I created my own Drupal 8 theme:
mytheme.info.yml:
name: My Theme description: 'Drupal 8 Theme' type: theme base theme: bartik core: '8.x'
mytheme.libraries.yml
global-styling: version: 1.x css: theme: css/layout.css: {} css/style.css: {} css/colors.css: {} css/print.css: { media: print }
I am using “Seven” as admin theme.
When I edit a page (/node/x/edit) Seven theme is used.
Now I have to add some CSS the the edit form. How can I do this? style.css is only loaded on front end pages. Edit pages use seven theme and my theme CSS is ignored.
How can I add some CSS to admin pages or edit forms in Drupal 8?