# How to use compiled css within add_editor_style();

**URL:** https://discourse.roots.io/t/how-to-use-compiled-css-within-add-editor-style/24945
**Category:** sage
**Tags:** sage10
**Created:** 2023-03-11T14:42:32Z
**Posts:** 5
**Showing post:** 4 of 5

## Post 4 by @ben — 2023-03-13T16:36:16Z

I went to test this out to add it to the docs, and for some reason I’m not seeing the requirement to make the path to the asset relative :thinking: This is working for me:

```
add_action('after_setup_theme', function () {
    add_theme_support('editor-styles');
    add_editor_style(asset('app.css'));
});
```

---

_[View the full topic](https://discourse.roots.io/t/how-to-use-compiled-css-within-add-editor-style/24945)._
