I have created css to a block in magento 2 admin side. I want to add css to it . Is there any standard way to do this beside using style tags?
1 Answer
Magento2 using Less as css processor.
To add some css, you need write code at less files then magento2 own less converte convert this less code css .
As you want too add some css to admin area then suggesting to you create a custom module .Then create a _module.less at app/code/{Vendor}/{Modulename}/view/adminhtml/web/css/source and write the css on this to less structure.
After that do static content deploy forstrong text you reflect your changes.
Your module should have below files
app/code/{Vendor}/{Modulename}/etc/module.xml.app/code/{Vendor}/{Modulename}/composer.json- .
app/code/{Vendor}/{Modulename}/registration.json.