Skip to content

feat: WGU theme#53

Open
xitij2000 wants to merge 32 commits into
wgu-release/ulmofrom
kshitij/examplar
Open

feat: WGU theme#53
xitij2000 wants to merge 32 commits into
wgu-release/ulmofrom
kshitij/examplar

Conversation

@xitij2000
Copy link
Copy Markdown
Member

@xitij2000 xitij2000 commented Apr 29, 2026

Implements the theme for the WGU Instance.

private-ref: https://tasks.opencraft.com/browse/BB-10703

@xitij2000 xitij2000 force-pushed the kshitij/examplar branch 2 times, most recently from 144e400 to b3e43d5 Compare April 29, 2026 11:29
Copy link
Copy Markdown
Member

@Kelketek Kelketek left a comment

Choose a reason for hiding this comment

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

@xitij2000 Gave this a brief code lookover. I see this is a PR against master, which I'm guessing you don't plan to actually merge into.

Can you create a branch that is up to date with master (after merging your dev enhancements) and then reconfigure/reopen this PR against that?

Comment thread tokens/core/theme.toml Outdated
Comment thread paragon/_customizations.scss Outdated
Comment thread paragon/_overrides.scss
@xitij2000 xitij2000 force-pushed the kshitij/examplar branch from 5ec2990 to 0dcdd19 Compare May 1, 2026 09:27
@xitij2000 xitij2000 changed the base branch from master to wgu-release/ulmo May 1, 2026 09:29
@xitij2000
Copy link
Copy Markdown
Member Author

@Kelketek I've fixed the issues you highlighted and created a release branch for this instead of master.

@Kelketek
Copy link
Copy Markdown
Member

Kelketek commented May 1, 2026

@xitij2000 Zoux/WGU are pretty eager to see the results on this one so they can try it out. They agreed it would be fine to deploy today and risk inaccessibility/needing to spend an hour rolling back without access.

I attempted to roll it out, but it didn't work. Could you take a look there? It might be something in the configuration of the instance right now.

I have a feeling they're eager enough that they'll be fine with you testing on the instance so long as you give them warning and are ready to roll back in case something breaks that affects authoring.

@xitij2000
Copy link
Copy Markdown
Member Author

@xitij2000 Zoux/WGU are pretty eager to see the results on this one so they can try it out. They agreed it would be fine to deploy today and risk inaccessibility/needing to spend an hour rolling back without access.

I attempted to roll it out, but it didn't work. Could you take a look there? It might be something in the configuration of the instance right now.

I have a feeling they're eager enough that they'll be fine with you testing on the instance so long as you give them warning and are ready to roll back in case something breaks that affects authoring.

I've redeployed, the issue was that the theme branch in grove.yml should stay release/teak but the one in config.yml should be set to this one.

@Kelketek
Copy link
Copy Markdown
Member

Kelketek commented May 4, 2026

@xitij2000

I've redeployed, the issue was that the theme branch in grove.yml should stay release/teak but the one in config.yml should be set to this one.

That's very confusing-- why is that?

@xitij2000
Copy link
Copy Markdown
Member Author

@xitij2000

I've redeployed, the issue was that the theme branch in grove.yml should stay release/teak but the one in config.yml should be set to this one.

That's very confusing-- why is that?

Grove is deploying the theme for edx-platform which has a very different format. For a while both the platform and MFEs were using a somewhat compatible theme so we could use a single repo for both. However with tokens that is no longer the case. We can potentially host the code in the same place but the edx-platform side of the UI is mostly going away so we use the older release of edx-simple-theme for edx-platform and the latest release for MFEs.

Comment thread paragon/_exemplar.scss
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

PR preview deployed: https://open-craft.github.io/edx-simple-theme/pr/53/

Bumps [axios](https://github.com/axios/axios) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.16.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@xitij2000 xitij2000 force-pushed the kshitij/examplar branch from 08a9715 to 06048c7 Compare May 8, 2026 11:25
Comment thread tokens/apps/wgu/colors/semantic/buttons.toml Outdated
Comment thread tokens/apps/wgu/colors/semantic/buttons.toml Outdated

[typography.font.size.h5.base]
"$value" = "1.25rem"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We also need to consider how to handle the main body text size - I'm not sure what the final outcome will be though - the designs have a mix of font sizes.

Comment thread tokens/core/wgu.toml Outdated
[typography.font.family.sans.serif]
"$value" = ["Lato", "sans-serif"]

#TODO: Currently can't override the font family of display class
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@xitij2000 do you have a plan for overriding the font family? Or should we hardcode overrides either in the exemplar blocks or in the theme css here? cc @Kelketek

Copy link
Copy Markdown
Member

@samuelallan72 samuelallan72 May 14, 2026

Choose a reason for hiding this comment

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

As in, with this, the font family is still "Inter" for me

image

and

image

Looks like the lms forced styles are overriding the theme rules...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is similar to previous issues we had with injected styling in the studio editor, so I also commented on FAL-4347 (comment)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This todo is just for upstreaming to paragon, it's already applied to display classes through overrides here:

https://github.com/open-craft/edx-simple-theme/pull/53/changes#diff-266181d9542bd6fbcacd17a0d2564e93455f7e46b892a8ac84fd40e3184d28c5R62-R68

I think you should never hardcode any values, especially since there is a much better alternative which is to use a new token. i.e. var(--myblock-display-font) or similar which can default to a paragon variable but still allow overriding with a correct value later.

@samuelallan72
Copy link
Copy Markdown
Member

@xitij2000 do you know why the token variables aren't loading in the preview of blocks in studio? The css variables are displaying as unset for the blocks, but I see the core and light css theme files being successfully requested. It works fine in the LMS.

@xitij2000
Copy link
Copy Markdown
Member Author

@samuelallan72 I think @tecoholic posted this elsewhere (and I posted on the ticket) but it's because currently the blocks are loading the styles from a relative path which doesn't resolve in studio. I'm looking for a solution for this that won't involve bigger changes.

@Kelketek
Copy link
Copy Markdown
Member

@xitij2000 Would you be up for cherry-picking 8b32497? I don't want to step on you since you're actively working.

@xitij2000
Copy link
Copy Markdown
Member Author

@xitij2000 Would you be up for cherry-picking 8b32497? I don't want to step on you since you're actively working.

Done.

Comment thread .github/workflows/preview.yml Outdated
Comment thread paragon/_exemplar.scss
Comment thread paragon/_exemplar.scss Outdated
@xitij2000
Copy link
Copy Markdown
Member Author

@farhaanbukhsh @Kelketek I think we should merge this now and i can continue making adjustments in other PRs. It's become pretty load-bearning at this point.

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.

4 participants