Skip to content

CLD-1736: Drop layer(webflow) from globals.css to unblock Google fonts#5

Merged
fbaralle merged 2 commits into
v1from
cld-1736-globals-css-layer-fix
May 19, 2026
Merged

CLD-1736: Drop layer(webflow) from globals.css to unblock Google fonts#5
fbaralle merged 2 commits into
v1from
cld-1736-globals-css-layer-fix

Conversation

@fbaralle
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #2. Per Simon Oskarsson's testing on CLD-1736, wrapping the DevLink global stylesheet import in layer(webflow):

@import "../webflow/css/global.css" layer(webflow);

…interferes with the @layer ordering inside the DevLink-generated src/webflow/css/global.css, and the Google font preconnect/load logic used by exported components stops firing. Adobe-hosted fonts kept working — only Google fonts were affected.

Dropping layer(webflow) (and the now-orphaned @layer properties, theme, base, webflow, components, utilities; declaration) restores Google font loading. Simon confirmed no other visible side effects in his testing.

Linked ticket

CLD-1736

Test plan

  • webflow cloud init an enterprise nextjs project against this branch
  • npm install && npm run dev — confirm Google fonts used by exported DevLink components load in the browser
  • Sanity-check Tailwind utilities + dark-mode body color still render correctly

🤖 Generated with Claude Code

Per Simon Oskarsson on CLD-1736: wrapping
`@import "../webflow/css/global.css" layer(webflow);`
in a layer interferes with DevLink's own @layer ordering inside that
file, which prevents Google font preconnects from being honored for
fonts used in exported components. Adobe-hosted fonts kept working.

Dropping `layer(webflow)` resolves the Google font issue without
affecting other styling. Also removes the now-unused
`@layer properties, theme, base, webflow, components, utilities;`
declaration and its accompanying tailwind layer-ordering comment.
Per Simon Oskarsson on CLD-1736: the next/font/google Geist/Geist_Mono/
Inter loaders in layout.tsx are part of the Google font breakage in the
scaffold. Removing them (alongside the layer(webflow) drop in the prior
commit) restores Google font loading for fonts used in exported DevLink
components.

Also cleans up the now-unresolvable `--font-sans: var(--font-geist-sans)`
and `--font-mono: var(--font-geist-mono)` mappings in @theme — they
referenced CSS variables only set by the deleted font loaders, so they
were evaluating to nothing.
@fbaralle fbaralle merged commit 4ef5c49 into v1 May 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants