Conversation
Phase 2 of #200. Paragraph, title, headings, blockquote and separator are styled by plain CSS in @plone/plate's styles/content.css instead of Tailwind utilities, in both the public renderer and the editor. Values read the theme's Tailwind variables with Tailwind's defaults as fallback. Editor affordances stay Tailwind. A new acceptance test checks the text blocks render the same under any public theme reset; the reset helpers move to the shared Playwright tooling.
This was referenced Oct 3, 2026
* b1b-anatomy-gaps: Move the table drag handle fragment to @plone/quanta Releasing @plone/aurora 1.0.0-alpha.16 Release @plone/contents 1.0.0-alpha.3 Release @plone/publicui 1.0.0-alpha.8 Release @plone/cmsui 1.0.0-alpha.11 Release @plone/agave 1.0.0-alpha.8 Release @plone/theming 1.0.0-alpha.8 Release @plone/layout 1.0.0-alpha.13 Release @plone/blocks 1.0.0-alpha.17 Release @plone/plate 1.0.0-alpha.22 Release @plone/react-router 2.0.0-alpha.7 Release @plone/helpers 2.0.0-alpha.9 Release @plone/registry 4.0.0-alpha.4 Release @plone/quanta 1.0.0-alpha.1 Release @plone/components 5.0.0-alpha.5 Release @plone/client 2.0.0-alpha.8 Release @plone/icons 1.0.0-alpha.1 Release @plone/types 3.0.0-alpha.7 Split Quanta and icons out of @plone/components into @plone/quanta and @plone/icons (#212)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of #200: the text blocks are styled by plain CSS instead of Tailwind utilities, with zero visual change.
Changes
@plone/plate/styles/content.cssnow styles the paragraph, title, headings, blockquote and separator, in both the public renderer and the editor:.slate-pm-0 px-0 py-1.slate-titlemt-[1.6em] pb-1 text-4xl font-bold.slate-h1….slate-h6cvavariants:relative mb-1,mt-[…],pb-*,text-*,font-*,tracking-tight.slate-blockquote > .block-inner-containermy-1 border-l-2 pl-6 italic.block-hr__spacer,.block-hr__line(new parts)py-6;h-0.5 rounded-sm border-none bg-muted bg-clip-contentHow the values stay identical
font-size: var(--text-4xl, 2.25rem)andcalc(var(--spacing, 0.25rem) * 6).--text-base: 1.15remstill applies in the public view.background-color: var(--block-separator-color, var(--muted)), the first themeable content token for text blocks.font-headinggenerated no CSS anywhere, so it's simply removed.Components
slate-title, the class the editor title already has. Its renderer ignores the anatomy classes Plate passes in, and I left that alone: addingblockthere would makecontent-area.cssrules match it, which belongs to Phase 9.cursor-pointer, and the title'srelative, which positions the placeholder. The static separator'scursor-textis dropped; it had no visual effect in the public view.cvaandcnare gone from the heading, paragraph and blockquote nodes.Not relying on a reset (authoring rule 1)
New explicit margins: two rules set values that Tailwind's reset used to provide implicitly,
.slate-blockquote { margin: 0 }and the title'smargin: 1.6em 0 0. Without a reset, browsers give<blockquote>1em/40px margins and<h1>a bottom margin.New acceptance test:
plate/acceptance/tests/text-blocks-content-css.test.tscompares the computed values of every property these rules set, in the public view, under:@plone/theming's non-Tailwind "simple" reset, loaded into thebaselayer.All three match. A plain element confirms which reset is active in each case.
Shared helpers: the reset helpers move to
tooling/playwright/resets.ts, and the A3 image test uses them too.Ratchet
PENDINGin the class-contract test loses thetitle,h2,h3,h4,blockquoteandhrentries, pluspx-0andpy-1fromp. The rest ofpbelongs to the list markup (Phase 4).Validation
CI=1 pnpm visual-test --retries=0: 22/22 pixel-identical to the Phase 1b reference.pnpm acceptance-test: 171 passed, including the class-contract test and the new reset test.pnpm --filter @plone/plate test --run: 75 passed.check:ts,eslintandstylelint: clean.Part of #200.