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

Set up CI #88

Merged
merged 4 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
61 changes: 61 additions & 0 deletions .github/workflows/automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Automation
on:
pull_request: {}
push:
branches: [main]
jobs:
types:
name: Check types
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up cache
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check types
run: yarn types

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up cache
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn exec biome -- ci

build:
name: Build generated files
robintown marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up cache
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build generated files
run: yarn build
- name: Check for changes
run: >
if [ -z "$(git status --porcelain)" ];
then
echo "Generated files are up to date."
robintown marked this conversation as resolved.
Show resolved Hide resolved
exit 0
else
echo "Some files have not been regenerated recently. Please run 'yarn build' to fix this."
robintown marked this conversation as resolved.
Show resolved Hide resolved
echo "$(git status)"
exit 1
fi
618 changes: 309 additions & 309 deletions assets/ios/swift/CompoundCoreColorTokens.swift

Large diffs are not rendered by default.

340 changes: 170 additions & 170 deletions assets/ios/swift/CompoundIcons.swift

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions assets/web/css/cpd-common-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
--cpd-space-11x: 44px;
--cpd-space-10x: 40px;
--cpd-space-6x: 24px;
--cpd-space-0x: 0px;
--cpd-space-0x: 0;
--cpd-space-scale: 4px;
--cpd-font-heading-xl-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-size-heading-xl)/var(--cpd-font-line-height-tight) var(--cpd-font-family-sans);
--cpd-font-heading-xl-regular: var(--cpd-font-weight-regular) var(--cpd-font-size-heading-xl)/var(--cpd-font-line-height-tight) var(--cpd-font-family-sans);
Expand All @@ -46,36 +46,36 @@
--cpd-font-heading-sm-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-line-height-tight)rem/1.25 var(--cpd-font-family-sans);
--cpd-font-heading-sm-medium: var(--cpd-font-weight-medium) var(--cpd-font-line-height-tight)rem/1.25 var(--cpd-font-family-sans);
--cpd-font-heading-sm-regular: var(--cpd-font-weight-regular) var(--cpd-font-line-height-tight)rem/1.25 var(--cpd-font-family-sans);
--cpd-font-body-lg-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-size-body-lg)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-lg-medium: var(--cpd-font-weight-medium) var(--cpd-font-size-body-lg)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-lg-regular: var(--cpd-font-weight-regular) var(--cpd-font-size-body-lg)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-size-body-md)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-medium: var(--cpd-font-weight-medium) var(--cpd-font-size-body-md)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-regular: var(--cpd-font-weight-regular) var(--cpd-font-size-body-md)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-size-body-sm)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-medium: var(--cpd-font-weight-medium) var(--cpd-font-size-body-sm)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-regular: var(--cpd-font-weight-regular) var(--cpd-font-size-body-sm)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-semibold: var(--cpd-font-weight-semibold) var(--cpd-font-size-body-xs)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-medium: var(--cpd-font-weight-medium) var(--cpd-font-size-body-xs)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-regular: var(--cpd-font-weight-regular) var(--cpd-font-size-body-xs)/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-space-64x: 256px;
--cpd-space-48x: 192px;
--cpd-space-40x: 160px;
--cpd-space-32x: 128px;
--cpd-space-28x: 112px;
--cpd-space-24x: 96px;
--cpd-space-20x: 80px;
--cpd-space-15x: 60px;
--cpd-space-14x: 56px;
--cpd-space-13x: 52px;
--cpd-space-9x: 36px;
--cpd-space-8x: 32px;
--cpd-space-7x: 28px;
--cpd-space-5x: 20px;
--cpd-space-4x: 16px;
--cpd-space-3x: 12px;
--cpd-space-2x: 8px;
--cpd-space-1-5x: 6px;
--cpd-font-body-lg-semibold: var(--cpd-font-weight-semibold) 1.063rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-lg-medium: var(--cpd-font-weight-medium) 1.063rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-lg-regular: var(--cpd-font-weight-regular) 1.063rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-semibold: var(--cpd-font-weight-semibold) 0.938rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-medium: var(--cpd-font-weight-medium) 0.938rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-md-regular: var(--cpd-font-weight-regular) 0.938rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-semibold: var(--cpd-font-weight-semibold) 0.813rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-medium: var(--cpd-font-weight-medium) 0.813rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-sm-regular: var(--cpd-font-weight-regular) 0.813rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-semibold: var(--cpd-font-weight-semibold) 0.688rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-medium: var(--cpd-font-weight-medium) 0.688rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-font-body-xs-regular: var(--cpd-font-weight-regular) 0.688rem/var(--cpd-font-line-height-regular) var(--cpd-font-family-sans);
--cpd-space-64x: var(--cpd-space-scale) * 64;
--cpd-space-48x: var(--cpd-space-scale) * 48;
--cpd-space-40x: var(--cpd-space-scale) * 40;
--cpd-space-32x: var(--cpd-space-scale) * 32;
--cpd-space-28x: var(--cpd-space-scale) * 28;
--cpd-space-24x: var(--cpd-space-scale) * 24;
--cpd-space-20x: var(--cpd-space-scale) * 20;
--cpd-space-15x: var(--cpd-space-scale) * 15;
--cpd-space-14x: var(--cpd-space-scale) * 14;
--cpd-space-13x: var(--cpd-space-scale) * 13;
--cpd-space-9x: var(--cpd-space-scale) * 9;
--cpd-space-8x: var(--cpd-space-scale) * 8;
--cpd-space-7x: var(--cpd-space-scale) * 7;
--cpd-space-5x: var(--cpd-space-scale) * 5;
--cpd-space-4x: var(--cpd-space-scale) * 4;
--cpd-space-3x: var(--cpd-space-scale) * 3;
--cpd-space-2x: var(--cpd-space-scale) * 2;
--cpd-space-1-5x: var(--cpd-space-scale) * 1.5;
--cpd-space-1x: var(--cpd-space-scale);
--cpd-space-0-5x: 2px;
--cpd-space-0-5x: var(--cpd-space-scale) * 0.5;
}
2 changes: 1 addition & 1 deletion assets/web/js/cpdDark.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary : string;
export const cpdColorIconCriticalPrimary : string;
export const cpdColorIconSuccessPrimary : string;
export const cpdColorIconInfoPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
28 changes: 14 additions & 14 deletions assets/web/js/cpdDark.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const cpdSpaceScale = "4px";
export const cpdSpace0X = "0px";
export const cpdSpace0X = "0";
export const cpdSpace0_5X = "2px";
export const cpdSpace1X = "4px";
export const cpdSpace1_5X = "6px";
Expand Down Expand Up @@ -56,18 +56,18 @@ export const cpdFontLetterSpacingHeadingSm = "-0.0166em";
export const cpdFontLetterSpacingHeadingMd = "-0.0195em";
export const cpdFontLetterSpacingHeadingLg = "-0.0209em";
export const cpdFontLetterSpacingHeadingXl = "-0.0216em";
export const cpdFontBodyXsRegular = "400 0.6875rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.6875rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.6875rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.8125rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.8125rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.8125rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.9375rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.9375rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.9375rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.0625rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.0625rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.0625rem/1.5 Inter";
export const cpdFontBodyXsRegular = "400 0.688rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.688rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.688rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.813rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.813rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.813rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.938rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.938rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.938rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.063rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.063rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.063rem/1.5 Inter";
export const cpdFontHeadingSmRegular = "400 1.25rem/1.25 Inter";
export const cpdFontHeadingSmMedium = "500 1.25rem/1.25 Inter";
export const cpdFontHeadingSmSemibold = "600 1.25rem/1.25 Inter";
Expand Down Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary = "#129a78";
export const cpdColorIconCriticalPrimary = "#fd3e3c";
export const cpdColorIconSuccessPrimary = "#129a78";
export const cpdColorIconInfoPrimary = "#4187eb";
export const cpdColorIconOnSolidPrimary = "#101317";
export const cpdColorIconOnSolidPrimary = "#101317";
2 changes: 1 addition & 1 deletion assets/web/js/cpdDarkHc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary : string;
export const cpdColorIconCriticalPrimary : string;
export const cpdColorIconSuccessPrimary : string;
export const cpdColorIconInfoPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
28 changes: 14 additions & 14 deletions assets/web/js/cpdDarkHc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const cpdSpaceScale = "4px";
export const cpdSpace0X = "0px";
export const cpdSpace0X = "0";
export const cpdSpace0_5X = "2px";
export const cpdSpace1X = "4px";
export const cpdSpace1_5X = "6px";
Expand Down Expand Up @@ -56,18 +56,18 @@ export const cpdFontLetterSpacingHeadingSm = "-0.0166em";
export const cpdFontLetterSpacingHeadingMd = "-0.0195em";
export const cpdFontLetterSpacingHeadingLg = "-0.0209em";
export const cpdFontLetterSpacingHeadingXl = "-0.0216em";
export const cpdFontBodyXsRegular = "400 0.6875rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.6875rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.6875rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.8125rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.8125rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.8125rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.9375rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.9375rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.9375rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.0625rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.0625rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.0625rem/1.5 Inter";
export const cpdFontBodyXsRegular = "400 0.688rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.688rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.688rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.813rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.813rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.813rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.938rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.938rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.938rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.063rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.063rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.063rem/1.5 Inter";
export const cpdFontHeadingSmRegular = "400 1.25rem/1.25 Inter";
export const cpdFontHeadingSmMedium = "500 1.25rem/1.25 Inter";
export const cpdFontHeadingSmSemibold = "600 1.25rem/1.25 Inter";
Expand Down Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary = "#37c998";
export const cpdColorIconCriticalPrimary = "#ff968c";
export const cpdColorIconSuccessPrimary = "#37c998";
export const cpdColorIconInfoPrimary = "#89b5f6";
export const cpdColorIconOnSolidPrimary = "#101317";
export const cpdColorIconOnSolidPrimary = "#101317";
2 changes: 1 addition & 1 deletion assets/web/js/cpdLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary : string;
export const cpdColorIconCriticalPrimary : string;
export const cpdColorIconSuccessPrimary : string;
export const cpdColorIconInfoPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
28 changes: 14 additions & 14 deletions assets/web/js/cpdLight.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const cpdSpaceScale = "4px";
export const cpdSpace0X = "0px";
export const cpdSpace0X = "0";
export const cpdSpace0_5X = "2px";
export const cpdSpace1X = "4px";
export const cpdSpace1_5X = "6px";
Expand Down Expand Up @@ -56,18 +56,18 @@ export const cpdFontLetterSpacingHeadingSm = "-0.0166em";
export const cpdFontLetterSpacingHeadingMd = "-0.0195em";
export const cpdFontLetterSpacingHeadingLg = "-0.0209em";
export const cpdFontLetterSpacingHeadingXl = "-0.0216em";
export const cpdFontBodyXsRegular = "400 0.6875rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.6875rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.6875rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.8125rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.8125rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.8125rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.9375rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.9375rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.9375rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.0625rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.0625rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.0625rem/1.5 Inter";
export const cpdFontBodyXsRegular = "400 0.688rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.688rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.688rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.813rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.813rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.813rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.938rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.938rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.938rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.063rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.063rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.063rem/1.5 Inter";
export const cpdFontHeadingSmRegular = "400 1.25rem/1.25 Inter";
export const cpdFontHeadingSmMedium = "500 1.25rem/1.25 Inter";
export const cpdFontHeadingSmSemibold = "600 1.25rem/1.25 Inter";
Expand Down Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary = "#007a61";
export const cpdColorIconCriticalPrimary = "#d51928";
export const cpdColorIconSuccessPrimary = "#007a61";
export const cpdColorIconInfoPrimary = "#0467dd";
export const cpdColorIconOnSolidPrimary = "#ffffff";
export const cpdColorIconOnSolidPrimary = "#ffffff";
2 changes: 1 addition & 1 deletion assets/web/js/cpdLightHc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary : string;
export const cpdColorIconCriticalPrimary : string;
export const cpdColorIconSuccessPrimary : string;
export const cpdColorIconInfoPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
export const cpdColorIconOnSolidPrimary : string;
28 changes: 14 additions & 14 deletions assets/web/js/cpdLightHc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const cpdSpaceScale = "4px";
export const cpdSpace0X = "0px";
export const cpdSpace0X = "0";
export const cpdSpace0_5X = "2px";
export const cpdSpace1X = "4px";
export const cpdSpace1_5X = "6px";
Expand Down Expand Up @@ -56,18 +56,18 @@ export const cpdFontLetterSpacingHeadingSm = "-0.0166em";
export const cpdFontLetterSpacingHeadingMd = "-0.0195em";
export const cpdFontLetterSpacingHeadingLg = "-0.0209em";
export const cpdFontLetterSpacingHeadingXl = "-0.0216em";
export const cpdFontBodyXsRegular = "400 0.6875rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.6875rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.6875rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.8125rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.8125rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.8125rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.9375rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.9375rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.9375rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.0625rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.0625rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.0625rem/1.5 Inter";
export const cpdFontBodyXsRegular = "400 0.688rem/1.5 Inter";
export const cpdFontBodyXsMedium = "500 0.688rem/1.5 Inter";
export const cpdFontBodyXsSemibold = "600 0.688rem/1.5 Inter";
export const cpdFontBodySmRegular = "400 0.813rem/1.5 Inter";
export const cpdFontBodySmMedium = "500 0.813rem/1.5 Inter";
export const cpdFontBodySmSemibold = "600 0.813rem/1.5 Inter";
export const cpdFontBodyMdRegular = "400 0.938rem/1.5 Inter";
export const cpdFontBodyMdMedium = "500 0.938rem/1.5 Inter";
export const cpdFontBodyMdSemibold = "600 0.938rem/1.5 Inter";
export const cpdFontBodyLgRegular = "400 1.063rem/1.5 Inter";
export const cpdFontBodyLgMedium = "500 1.063rem/1.5 Inter";
export const cpdFontBodyLgSemibold = "600 1.063rem/1.5 Inter";
Comment on lines +59 to +70
Copy link
Member

Choose a reason for hiding this comment

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

These actually change the size, even if not by much. Is that ok?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, this should actually go into #87 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I missed this before I merged the other PR. I'll try to research why Style Dictionary is rounding the values, and whether it messes with anything.

Copy link
Member Author

Choose a reason for hiding this comment

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

(as in, I'll do that in another PR now that it's already too late…)

export const cpdFontHeadingSmRegular = "400 1.25rem/1.25 Inter";
export const cpdFontHeadingSmMedium = "500 1.25rem/1.25 Inter";
export const cpdFontHeadingSmSemibold = "600 1.25rem/1.25 Inter";
Expand Down Expand Up @@ -625,4 +625,4 @@ export const cpdColorIconAccentPrimary = "#00553d";
export const cpdColorIconCriticalPrimary = "#99001a";
export const cpdColorIconSuccessPrimary = "#00553d";
export const cpdColorIconInfoPrimary = "#0543a7";
export const cpdColorIconOnSolidPrimary = "#ffffff";
export const cpdColorIconOnSolidPrimary = "#ffffff";
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "http-server .",
"format": "yarn exec biome -- format",
"lint": "yarn exec biome -- lint",
"check": "yarn exec biome -- check"
"check": "yarn exec biome -- check",
"types": "yarn exec tsc -- --noEmit"
},
"keywords": ["compound", "design tokens", "style dictionary", "css"],
"files": ["./assets/web/**/*", "./icons/**/*"],
Expand All @@ -24,13 +25,13 @@
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@tokens-studio/sd-transforms": "^0.4.3",
"@tokens-studio/sd-transforms": "^0.12.2",
"@types/fs-extra": "^11.0.1",
"@types/lodash": "^4.14.191",
"@types/node": "^18.13.0",
"fast-glob": "^3.2.12",
"http-server": "^14.1.1",
"style-dictionary": "https://github.com/amzn/style-dictionary",
"style-dictionary": "^3.8.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
Expand Down
Loading