Might be helpful to give better instructions on how to make this work.
For a Sage-based theme
./app/setup.php
/**
* Style the wp-admin area
*/
add_action('admin_enqueue_scripts', function(){
wp_enqueue_style('admin-styles', asset_path('styles/admin.css'));
});
./resources/assets/config.json
{
"entry": {
"main": [
"./scripts/main.js",
"./styles/main.scss"
],
"admin": [
"./styles/admin.scss"
],
"customizer": [
"./scripts/customizer.js"
]
},
....
}
./resources/assets/styles/admin.scss
// Admin styles
@import "~wordpress-ui/admin";
// Login styles
@import "~wordpress-ui/login";
// WordPress classes
@import "~wordpress-ui/admin-bar";