Install a fresh Plone 5.1.2 site. Add my own add-on.
In the add-on, add a bundle that contains css.
<records prefix="plone.bundles/my-css-bundle"
interface='Products.CMFPlone.interfaces.IBundleRegistry'>
<value key="enabled">True</value>
<value key="compile">True</value>
<value key="depends">plone</value>
<!-- other configs -->
</records>
The CSS files include these lines, for example:
body {
font-family: 'Titillium Web', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 17px;
line-height: 1.5;
color: #1c2024;
background-color: #fff;
}
I expected the site font to be set by my styles
The body font is set by a css file that was previously only added in the tinymce frames. From a quick check of the repo history, it appears that since Plone 5.1.1 this file is cooked into the plone-logged-in bundle by default.
I have a Plone 5.1rc2 site in production and it's not included there, upgrading to Plone 5.1.1 or Plone 5.1.2.1 would break the site styles with this change.
Products.CMFPlone 5.1.2.1
I think this is related to https://github.com/plone/mockup/issues/838 ... maybe you want to watch progress there
fixed and merged here #2471
Most helpful comment
I think this is related to https://github.com/plone/mockup/issues/838 ... maybe you want to watch progress there