Problem/Motivation
It is sometimes desirable to make minor css changes to a core admin theme. To do this, usually means creating a sub-theme or using a contrib module such as Asset Injector or CSS Editor.
These approaches seem a big effort, if all that is needed is a minor css modification.
Proposed resolution
It would be helpful to have a method of supplying a css file to the Claro theme, so that minor css changes can be managed without the use of subtheme or contrib modules. This should be done in such a way that is compatible with core updates.
Briefly, this involves insert the following code in to claro.libraries.yml and then referencing this as a library in claro.info.yml
custom-styling:
version: VERSION
css:
theme:
public://claro/custom.css: {}
A similar solution has existed for Adminimal Theme for some time.
Over time this could be developed into a more robust feature, but in the meantime a very small patch could provide most of the necessary functionality.
Remaining tasks
- Create a patch
- Provide documentation
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
To do