Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USWDS-Elements: Test Tokens repo as CSS Props [DEMO] #126

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

mahoneycm
Copy link
Contributor

@mahoneycm mahoneycm commented Feb 3, 2025

Solution

This demo shows a proof of concept using USWDS tokens as CSS props for USWDS web components.

Custom Props were output from tokens package to src/core/tokens/custom-props/color.css

Testing and review

  1. Visit Banner component page
  2. Inspect styles
  3. Confirm background and links colors use CSS props defined in color.css
  4. Update theme colors using CSS props found in /tokens/custom-props/colors.css
  5. Confirm colors are updated on the page

@mahoneycm mahoneycm requested a review from a team as a code owner February 3, 2025 19:43
@mahoneycm mahoneycm changed the title USWDS-Elements: Test Tokens repo as CSS Props USWDS-Elements: Test Tokens repo as CSS Props [DEMO] Feb 3, 2025
@mahoneycm mahoneycm marked this pull request as draft February 10, 2025 20:25
@mejiaj
Copy link

mejiaj commented Feb 13, 2025

@mahoneycm thanks for creating this demo. Is there a cloud pages preview link for this?

@mahoneycm
Copy link
Contributor Author

@mejiaj Unfortunately I haven't been able to get it to work. I think the CircleCI dependency install task is failing because of the link to the GH branch. Because of this, I don't think the federalist preview ever builds.

https://federalist-ab6c0bdb-eccd-4b26-bb5f-b0154661e999.sites.pages.cloud.gov/preview/uswds/web-components/cm-demo-token-props/?path=/docs/readme--docs

@mejiaj
Copy link

mejiaj commented Feb 18, 2025

@mahoneycm in the future, please flag internally if you see this issue so we can address.

In the meantime, I've emailed cloud.gov pages support and CC'd Matt.

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.

2 participants