Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
7841aba
Adding .json that contains all of CFPB color pallets
itsmedavep Jul 15, 2025
b37f944
Adding in button .json tokens
itsmedavep Jul 15, 2025
8001f1a
Install style-dictionary
anselmbradford Jul 15, 2025
cdefb34
Add style-dictionary config
anselmbradford Jul 16, 2025
8b14b84
Trying different organization for json tokens
itsmedavep Jul 17, 2025
147e38e
Updating config to only output .css files that contain what the corre…
itsmedavep Jul 17, 2025
31a3c4d
Updating json files
itsmedavep Jul 17, 2025
2044059
Adding sizing token
itsmedavep Jul 17, 2025
a58541c
Update to json organization
itsmedavep Jul 17, 2025
8e85718
Update to remove tokens/index.js and include its functionality direct…
itsmedavep Aug 11, 2025
4ab4ff5
Getting css styles into shadow dom and hooked into our web component
itsmedavep Aug 12, 2025
1fe51dd
Cleaning up
itsmedavep Aug 18, 2025
bbbf7f2
initial json commit into new tokens folder structure
itsmedavep Oct 8, 2025
045178d
Merge remote-tracking branch 'upstream/main' into dave_design_token
itsmedavep Oct 14, 2025
f98d0de
Web components now all use json tokens for colors
itsmedavep Oct 22, 2025
da92424
Adding building the tokens to yarn start and adding GH action to buil…
itsmedavep Oct 24, 2025
c4c4a13
Testing GH action
itsmedavep Oct 24, 2025
94ab54e
Update to GH workflow for tokens
itsmedavep Oct 24, 2025
58674f2
Trying fix error
itsmedavep Oct 24, 2025
2dbb38a
Trying to hook up GH actions again
itsmedavep Oct 24, 2025
b8930be
Attempting to fix yarn lockflie issue
itsmedavep Oct 24, 2025
dd15eb2
changing order of operations
itsmedavep Oct 24, 2025
08ab34f
using prebuild instead of prestart
itsmedavep Oct 24, 2025
a7819bd
Update build-tokens.yml
itsmedavep Oct 24, 2025
0c8e137
remove yarn install
itsmedavep Oct 24, 2025
298c786
trying to fix installing style dictionary issue
itsmedavep Oct 24, 2025
016530b
Update build-tokens.yml
itsmedavep Oct 24, 2025
02e19b3
Update build-tokens.yml
itsmedavep Oct 24, 2025
83e0644
Revert "Update build-tokens.yml"
itsmedavep Oct 24, 2025
258cf3d
Revert "Update build-tokens.yml"
itsmedavep Oct 24, 2025
d209ce8
Revert "trying to fix installing style dictionary issue"
itsmedavep Oct 24, 2025
f8b6935
Revert "remove yarn install"
itsmedavep Oct 24, 2025
d4a8532
Revert "Update build-tokens.yml"
itsmedavep Oct 24, 2025
bb082b0
Revert "changing order of operations"
itsmedavep Oct 24, 2025
8baf31b
Revert "Attempting to fix yarn lockflie issue"
itsmedavep Oct 24, 2025
9f789fd
Update build-tokens.yml
itsmedavep Oct 24, 2025
3c5d413
Update build-tokens.yml
itsmedavep Oct 24, 2025
3ef8438
Update build-tokens.yml
itsmedavep Oct 24, 2025
d8e5247
Update build-tokens.yml
itsmedavep Oct 24, 2025
8160754
limiting GH action to changes to the tokens dir
itsmedavep Oct 24, 2025
a10fdd2
Update custom-props.json
itsmedavep Oct 24, 2025
7cd2239
working on limiting running to push in the tokens dir
itsmedavep Oct 24, 2025
3d19d13
testing updating token value and GH action
itsmedavep Oct 24, 2025
8396d0d
Update build-tokens.yml
itsmedavep Oct 24, 2025
254d6df
testing updated GH action
itsmedavep Oct 24, 2025
d0317e3
Limits running GH action PR on main
itsmedavep Oct 24, 2025
6cd3801
Vars: Adding in more json for components that have not been made yet
itsmedavep Oct 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build-tokens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Design Tokens

on:
push:
paths:
- 'packages/cfpb-design-system/src/tokens/**'
pull_request:
branches:
- main
paths:
- 'packages/cfpb-design-system/src/tokens/**'

jobs:
build_tokens:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: npm install style-dictionary --force # Add other dependencies if needed

- name: Build tokens
run: npx style-dictionary build --config ./style-dictionary.config.js
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
"serve-html": "http-server docs/_site",
"serve-jekyll": "bundle exec jekyll serve --watch --profile --host=localhost --port=4000",
"serve-decap": "npx decap-server",
"start": "yarn build && concurrently --kill-others \"yarn serve-decap\" \"yarn serve-jekyll\" \"yarn build watch\"",
"prebuild": "yarn tokens",
"start": "yarn tokens && yarn build && concurrently --kill-others \"yarn serve-decap\" \"yarn serve-jekyll\" \"yarn build watch\"",
"jest": "yarn node --experimental-vm-modules $(yarn bin jest)",
"cy": "./scripts/cypress.sh",
"changelog": "./scripts/changelog.sh"
"changelog": "./scripts/changelog.sh",
"tokens": "style-dictionary build --config ./style-dictionary.config.js"
},
"browserslist": "> 0.2% in @cfpb/browserslist-config stats",
"dependencies": {
Expand Down Expand Up @@ -86,6 +88,7 @@
"prop-types": "15.8.1",
"release-it": "19.0.5",
"sass": "1.93.2",
"style-dictionary": "5.1.1",
"stylelint": "16.25.0",
"stylelint-config-standard-scss": "16.0.0",
"svgo": "4.0.0"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading