Skip to content

Commit 64aa5b8

Browse files
committed
fix(tokens): add a stylelint ignore to font family cases
1 parent 9f793b0 commit 64aa5b8

File tree

5 files changed

+27
-23
lines changed

5 files changed

+27
-23
lines changed

.changeset/big-pandas-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/tokens": minor
3+
---
4+
5+
Add a stylelint ignore for typography case

tokens/custom/global-vars.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@
3535
--spectrum-animation-ease-out: cubic-bezier(0, 0, 0.4, 1);
3636
--spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1);
3737

38-
--spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
38+
/* stylelint-disable value-keyword-case -- typography names should use their appropriate cases */
39+
--spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
3940
--spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack);
4041

41-
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", georgia, serif;
42+
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif;
4243
--spectrum-serif-font: var(--spectrum-serif-font-family-stack);
4344

44-
--spectrum-code-font-family-stack: "Source Code Pro", monaco, monospace;
45+
--spectrum-code-font-family-stack: "Source Code Pro", Monaco, monospace;
4546

46-
--spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
47-
--spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
47+
--spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
48+
--spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
49+
/* stylelint-enable value-keyword-case */
4850

4951
--spectrum-font-family: var(--spectrum-sans-font-family-stack);
5052
--spectrum-font-style: var(--spectrum-default-font-style);

tokens/dist/css/global-vars.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -648,17 +648,16 @@
648648
--spectrum-animation-ease-in:cubic-bezier(0.5, 0, 1, 1);
649649
--spectrum-animation-ease-out:cubic-bezier(0, 0, 0.4, 1);
650650
--spectrum-animation-ease-linear:cubic-bezier(0, 0, 1, 1);
651-
652-
--spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
651+
--spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
653652
--spectrum-sans-serif-font:var(--spectrum-sans-font-family-stack);
654653

655-
--spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", georgia, serif;
654+
--spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif;
656655
--spectrum-serif-font:var(--spectrum-serif-font-family-stack);
657656

658-
--spectrum-code-font-family-stack:"Source Code Pro", monaco, monospace;
657+
--spectrum-code-font-family-stack:"Source Code Pro", Monaco, monospace;
659658

660-
--spectrum-font-family-ar:myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
661-
--spectrum-font-family-he:myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
659+
--spectrum-font-family-ar:myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
660+
--spectrum-font-family-he:myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
662661

663662
--spectrum-font-family:var(--spectrum-sans-font-family-stack);
664663
--spectrum-font-style:var(--spectrum-default-font-style);

tokens/dist/css/index.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,17 +1480,16 @@
14801480
--spectrum-animation-ease-in:cubic-bezier(0.5, 0, 1, 1);
14811481
--spectrum-animation-ease-out:cubic-bezier(0, 0, 0.4, 1);
14821482
--spectrum-animation-ease-linear:cubic-bezier(0, 0, 1, 1);
1483-
1484-
--spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1483+
--spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
14851484
--spectrum-sans-serif-font:var(--spectrum-sans-font-family-stack);
14861485

1487-
--spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", georgia, serif;
1486+
--spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif;
14881487
--spectrum-serif-font:var(--spectrum-serif-font-family-stack);
14891488

1490-
--spectrum-code-font-family-stack:"Source Code Pro", monaco, monospace;
1489+
--spectrum-code-font-family-stack:"Source Code Pro", Monaco, monospace;
14911490

1492-
--spectrum-font-family-ar:myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1493-
--spectrum-font-family-he:myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1491+
--spectrum-font-family-ar:myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1492+
--spectrum-font-family-he:myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
14941493

14951494
--spectrum-font-family:var(--spectrum-sans-font-family-stack);
14961495
--spectrum-font-style:var(--spectrum-default-font-style);

tokens/dist/index.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,17 +1479,16 @@
14791479
--spectrum-animation-ease-in: cubic-bezier(0.5, 0, 1, 1);
14801480
--spectrum-animation-ease-out: cubic-bezier(0, 0, 0.4, 1);
14811481
--spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1);
1482-
1483-
--spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1482+
--spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
14841483
--spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack);
14851484

1486-
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", georgia, serif;
1485+
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif;
14871486
--spectrum-serif-font: var(--spectrum-serif-font-family-stack);
14881487

1489-
--spectrum-code-font-family-stack: "Source Code Pro", monaco, monospace;
1488+
--spectrum-code-font-family-stack: "Source Code Pro", Monaco, monospace;
14901489

1491-
--spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1492-
--spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1490+
--spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
1491+
--spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif;
14931492

14941493
--spectrum-font-family: var(--spectrum-sans-font-family-stack);
14951494
--spectrum-font-style: var(--spectrum-default-font-style);

0 commit comments

Comments
 (0)