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

Add Chromatic #133

Merged
merged 4 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Chromatic recommend having this on "push" so we have it as a separate workflow
# https://www.chromatic.com/docs/github-actions/#recommended-configuration-for-build-events

name: "Chromatic"

on: push

jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
exitOnceUploaded: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ storybook-static/
.vscode

src/chartdata/fenton/*.*
src/testParameters/measurements/fenton/*.*
src/testParameters/measurements/fenton/*.*

build-storybook.log
29 changes: 27 additions & 2 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@types/react": "18.2.55",
"@types/styled-components": "5.1.34",
"autoprefixer": "10.4.20",
"chromatic": "11.18.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-storybook": "^0.6.15",
Expand Down
16 changes: 16 additions & 0 deletions src/testParameters/styles/tanner1Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,20 @@ export const Tanner1Styles = {
size: 14,
style: 'normal',
},
toggleTooltipStyle: {
backgroundColor: '#333',
color: '#fff',
fontSize: 14,
fontFamily: 'Montserrat',
fontWeight: 400,
fontStyle: 'regular',
borderRadius: 4
},
referenceTextStyle: {
fontSize: 8,
fontFamily: 'Arial',
color: '#000000',
fontWeight: 200,
fontStyle: 'normal',
}
};
16 changes: 16 additions & 0 deletions src/testParameters/styles/tanner2Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,20 @@ export const Tanner2Styles = {
size: 14,
style: 'normal',
},
toggleTooltipStyle: {
backgroundColor: '#333',
color: '#fff',
fontSize: 14,
fontFamily: 'Montserrat',
fontWeight: 400,
fontStyle: 'regular',
borderRadius: 4
},
referenceTextStyle: {
fontSize: 8,
fontFamily: 'Arial',
color: '#000000',
fontWeight: 200,
fontStyle: 'normal',
}
};
16 changes: 16 additions & 0 deletions src/testParameters/styles/tanner3Styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,20 @@ export const Tanner3Styles = {
size: 14,
style: 'normal',
},
toggleTooltipStyle: {
backgroundColor: '#333',
color: '#fff',
fontSize: 14,
fontFamily: 'Montserrat',
fontWeight: 400,
fontStyle: 'regular',
borderRadius: 4
},
referenceTextStyle: {
fontSize: 8,
fontFamily: 'Arial',
color: '#000000',
fontWeight: 200,
fontStyle: 'normal',
}
};
16 changes: 16 additions & 0 deletions src/testParameters/styles/traditionalBoysStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,20 @@ export const traditionalBoysStyles = {
size: 14,
style: 'normal',
},
toggleTooltipStyle: {
backgroundColor: '#333',
color: '#fff',
fontSize: 14,
fontFamily: 'Montserrat',
fontWeight: 400,
fontStyle: 'regular',
borderRadius: 4
},
referenceTextStyle: {
fontSize: 8,
fontFamily: 'Arial',
color: '#000000',
fontWeight: 200,
fontStyle: 'normal',
}
};
16 changes: 16 additions & 0 deletions src/testParameters/styles/traditionalGirlsStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,20 @@ export const traditionalGirlsStyles = {
size: 14,
weight: 'normal',
},
toggleTooltipStyle: {
backgroundColor: '#333',
color: '#fff',
fontSize: 14,
fontFamily: 'Montserrat',
fontWeight: 400,
fontStyle: 'regular',
borderRadius: 4
},
referenceTextStyle: {
fontSize: 8,
fontFamily: 'Arial',
color: '#000000',
fontWeight: 200,
fontStyle: 'normal',
}
};
Loading