Skip to content

feat(styles): load spectrum vf via typekit - #153

Open
marissahuysentruyt wants to merge 8 commits into
mainfrom
spectrum-vf
Open

marissahuysentruyt wants to merge 8 commits into
mainfrom
spectrum-vf

Conversation

@marissahuysentruyt

@marissahuysentruyt marissahuysentruyt commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds support for the Adobe Clean Spectrum VF font, with Adobe Clean remaining as a fallback.

Screenshots (if applicable)

🚫 Before (Adobe Clean in the rendered fonts; our local font files called in Network tab)

Screenshot 2026-09-28 at 3 29 33 PM
Screenshot 2026-09-28 at 3 30 58 PM

✅ After (Adobe Clean Spectrum VF in the rendered fonts; the typekit URL called in Network tab)

Screenshot 2026-09-28 at 3 29 59 PM Screenshot 2026-09-28 at 3 31 13 PM

Type of change

  • Bug fix
  • New feature / block
  • Refactor
  • Docs / content
  • Chore (deps, config, tooling)

Related issue(s)

Validation steps

  • This PR has code changes, and our linters still pass.
  • This PR affects production code, so it was browser tested (see below).

To Validate

URL for testing:
https://spectrum-vf--spectrum-hub--adobe.aem.live/web/swc/components/action-button
https://spectrum-vf--spectrum-hub--adobe.aem.live/web/rsp/components/menu
https://spectrum-vf--spectrum-hub--adobe.aem.live/foundations/styles/object-styles/border-width

  • Make sure all PR Checks have passed
  • Pull down the branch locally or visit the branch preview
  • Run npm test and confirm all tests pass
  • Run npm run lint and confirm no linting errors
  • Verified in browser with aem up
  • Inspect a page in Dev Tools.
  • Verify the --s2-font-family token is resolving to adobe-clean-spectrum-vf first, with a fallback to its named font ("Adobe Clean Spectrum VF" for any Adobe machines), and further to the existing Trebuchet adjusted font. the previous adobe-clean and "Adobe Clean" fonts.
  • Visit the computed styles tab and verify in the Rendered Fonts section that "Adobe Clean Spectrum VF" is showing up now.
  • If you block the Typekit URL in dev tools, you should see the fallback font.
    • This will work immediately for the playgrounds because their stack is slightly different.
    • For other content, the first fallback would be a local version of Adobe Clean Spectrum VF, so any machine with a local version won't render Trebuchet even if you block the Typekit URL. Instead you can temporarily remove the "Adobe Clean Spectrum VF" fallback in styles.css at about line 301 to validate the request is blocked.

Accessibility testing checklist

  • Keyboard

No keyboard functionality has been changed.

  • Screen reader

No screen reader functionality has been changed.

Device review

  • Did it pass in Desktop?
  • Did it pass in (emulated) Mobile?
  • Did it pass in (emulated) iPad?

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@aem-code-sync

aem-code-sync Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

Comment thread scripts/ak.js Outdated
Comment thread styles/styles.css

@font-face {
font-family: adobe-clean-spectrum-vf;
src: url("https://use.typekit.net/af/c0f469/0000000000000000775c5863/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n1&v=3") format("woff2");

@marissahuysentruyt marissahuysentruyt Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@auniverseaway were you meaning we could "pull the font off their origin" like this?

I also hit these URLs, and downloaded the fonts I think. So I have a local commit with those files instead (and then with these URLs changes to the repo path instead)

@aem-code-sync

aem-code-sync Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

@marissahuysentruyt
marissahuysentruyt marked this pull request as ready for review September 28, 2026 19:38
@marissahuysentruyt marissahuysentruyt added the ❌ Do not merge This is not for merging. label Sep 29, 2026
@marissahuysentruyt

Copy link
Copy Markdown
Collaborator Author

moving back to draft. sounds like there's more to do, and this will be a follow-up after launch.

@marissahuysentruyt
marissahuysentruyt marked this pull request as draft September 29, 2026 21:15
@marissahuysentruyt

Copy link
Copy Markdown
Collaborator Author

look at the shared css for the playground.
Screenshot 2026-10-15 at 1 41 43 PM

@marissahuysentruyt

Copy link
Copy Markdown
Collaborator Author
Screenshot 2026-10-21 at 11 55 32 AM Screenshot 2026-10-21 at 11 55 37 AM

@marissahuysentruyt
marissahuysentruyt marked this pull request as ready for review October 22, 2026 20:09
@marissahuysentruyt marissahuysentruyt removed 🚧 WIP Work in progress, don't judge ❌ Do not merge This is not for merging. labels Oct 22, 2026
@marissahuysentruyt marissahuysentruyt added the 👀 Ready for review PR is ready for review label Oct 22, 2026

This branch was successfully deployed

1 active deployment
spectrum-vf — 05c55833 Deployed Oct 21, 2026 by aem-code-sync[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 Ready for review PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fonts] Adobe Clean Spectrum Variable font

2 participants