diff --git a/.changeset/itchy-peas-report.md b/.changeset/itchy-peas-report.md deleted file mode 100644 index 6b6201d..0000000 --- a/.changeset/itchy-peas-report.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -"@rhds/tokens": patch ---- - -- Added language specific font-family tokens. Example: `--rh-font-family-lang-he: 'Noto Sans Hebrew';` -- Removes language fonts from `--rh-font-family-body-text` and `--rh-font-family-heading` - -Before: -``` -body { - font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif); -} - -:is(h1,h2,h3,h4,h5,h6) { - font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif); -} -``` - -After: -``` -body { - font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text"); -} - -:is(h1,h2,h3,h4,h5,h6) { - font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display"); -} - -[lang="he"] { - font-family: var(--rh-font-family-lang-he: "Noto Sans Hebrew"); -} - -[lang="zh-CN"] { - font-family: var(--rh-font-family-lang-zh-cn: 'Noto Sans SC'); -} -``` diff --git a/.changeset/pink-cameras-reflect.md b/.changeset/pink-cameras-reflect.md deleted file mode 100644 index dfeede9..0000000 --- a/.changeset/pink-cameras-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@rhds/tokens": patch ---- - -Removed empty color theme tokens from \_variables.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index ae790ab..3fd1c81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,47 @@ # @rhds/tokens +## 2.1.1 + +### Patch Changes + +- 75e4dda: - Added language specific font-family tokens. Example: `--rh-font-family-lang-he: 'Noto Sans Hebrew';` + + - Removes language fonts from `--rh-font-family-body-text` and `--rh-font-family-heading` + + Before: + + ``` + body { + font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif); + } + + :is(h1,h2,h3,h4,h5,h6) { + font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif); + } + ``` + + After: + + ``` + body { + font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text"); + } + + :is(h1,h2,h3,h4,h5,h6) { + font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display"); + } + + [lang="he"] { + font-family: var(--rh-font-family-lang-he: "Noto Sans Hebrew"); + } + + [lang="zh-CN"] { + font-family: var(--rh-font-family-lang-zh-cn: 'Noto Sans SC'); + } + ``` + +- f4f68be: Removed empty color theme tokens from \_variables.scss + ## 2.1.0 ### Minor Changes diff --git a/package.json b/package.json index 51408ab..3da582e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rhds/tokens", - "version": "2.1.0", + "version": "2.1.1", "description": "Red Hat Design System Tokens", "scripts": { "build": "wireit",