Missing style in wp editor

i’ve already read some topic about it but i cant understand why when i start a project with sage 10 the basic wp style is missing in classic editor. Someone can explain me?

Are you adding the frontend styles also as editor styles, this would be required for proper preview, in Classic and Gutenberg editor:

Is this the article you were referring to having seen already?

This should work for the classic editor too. It certainly fixed it for me in Gutenberg.

Thx @strarsis . I’ve already tried it but it seems not working, i’ve added it in setup.php, but i don’t understand why i have to call app.css

By “missing style” are you only talking about the font face? If so, then you just need to define a font family in your theme.json file

ok but why i have to add font? shouldn’t it be automatic? anyway im talking about font and missing padding in editor. Sorry for the question i’m a newbie with sage

Sage is a starter theme and comes with no styling out of the box

it’s ok that my starter theme has no style, but i expected that wp editor is already styled as always. Anyway the issue persist

@jbiggs1981 can you share your setup.php?

What do you mean “as always”? The twenty twenty WP themes come with specific editor styles defined.

https://github.com/WordPress/WordPress/blob/b22f50655472ebe27b381d6d28d762410c9e42d3/wp-content/themes/twentytwentytwo/theme.json#L173-L200

https://github.com/WordPress/WordPress/blob/b22f50655472ebe27b381d6d28d762410c9e42d3/wp-content/themes/twentytwentytwo/theme.json#L220-L223

Anyway the issue persist

If the issue is that there’s no content width or font families defined, then the answer is still the same — it’s up to you to define those styles in your theme