Skip to content

Learn Faust tutorial: Blocks step says Faust loads block CSS, but no WordPress styles are applied #2705

Closed

Description

@bsmallwood

Description

Page: https://faustjs.org/docs/tutorial/learn-faust/ ("Blocks" > "2. Query for blocks data")

Summary
After the blocks step, the tutorial says Faust has "even loaded the CSS required to apply the correct styles." But no step in the tutorial loads any WordPress CSS. The paragraph's markup includes the expected classes and inline styles (e.g. has-large-font-size, padding-top: var(--wp--preset--spacing--20)), but none of these classes or CSS variables are defined in the frontend, so font size, padding, etc. have no visible effect.

Suggested fix
Either add a step that loads WordPress's global styles, e.g.:

npx faust generateGlobalStylesheet --output src/styles/globalStylesheet.css
// src/pages/_app.js
import "@/styles/globalStylesheet.css";

or remove the sentence saying Faust loads the CSS.

Steps to reproduce

Steps to reproduce

  1. Follow the Learn Faust tutorial through "Blocks" > "2. Query for blocks data".
  2. In the WordPress editor, change the "Hello World!" post's paragraph font size, padding, and border, then save.
  3. Run npm run dev and open http://localhost:3000/blog/hello-world/.
  4. Inspect the paragraph in DevTools: the classes and inline styles are present, but the font size and padding are not applied.

Expected
The paragraph displays with the styles set in the editor, as the tutorial describes.

@faustwp/core version

3.6.0

WordPress version

7.1.3

@faustwp/cli version

No response

Faust.js plugin version

1.9.0

Additional context

No response

Existing issues

Activity

  1. added
    [Type] Bug
    Needs Triage
    on Oct 26, 2026
  2. self-assigned this
    on Oct 27, 2026
  3. added
    [Type] Documentation
    [Area] Blocks
    [Area] CLI
    and removed
    [Type] Bug
    Needs Triage
    on Oct 27, 2026
  4. josephfusco commented on Oct 27, 2026

    @josephfusco
    Member

    Thanks for catching this. #2708 removes the claim and adds a step that generates and imports the global stylesheet. Tested in the tutorial app: font size, padding and margin now match the editor. Borders already showed, since the app's Tailwind base styles set border-style.

  5. moved this from 🆕 Backlog to ✅ Closed in Headless OSSon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Area] Blocks[Area] CLI[Type] Documentation

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions