Skip to content

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

Draft
mahoneycm wants to merge 9 commits into
developfrom
cm-demo-token-props
Draft

USWDS-Elements: Test Tokens repo as CSS Props [DEMO]#126
mahoneycm wants to merge 9 commits into
developfrom
cm-demo-token-props

Conversation

@mahoneycm

@mahoneycm mahoneycm commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

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

mejiaj commented Feb 13, 2025

Copy link
Copy Markdown

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

@mahoneycm

Copy link
Copy Markdown
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

mejiaj commented Feb 18, 2025

Copy link
Copy Markdown

@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