Skip to content

Commit 40c08ed

Browse files
committed
feat(tokens)!: prefer lowercase, hyphenated font names in font stacks
BREAKING CHANGE: updates the font-family stacks to remove the provided value from `@adobe/spectrum-tokens`, and instead use the "older" naming syntax that Spectrum CSS had used previously.
1 parent f521e23 commit 40c08ed

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/tokens/custom-spectrum/custom-vars.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@ governing permissions and limitations under the License.
3535
--spectrum-animation-ease-out: cubic-bezier(0, 0, 0.40, 1);
3636
--spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1);
3737

38-
--spectrum-sans-serif-font: var(--spectrum-sans-serif-font-family);
39-
--spectrum-sans-font-family-stack: var(--spectrum-sans-serif-font), adobe-clean, 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif;
38+
--spectrum-sans-font-family-stack: adobe-clean, 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif;
4039

41-
--spectrum-serif-font: var(--spectrum-serif-font-family);
42-
--spectrum-serif-font-family-stack: var(--spectrum-serif-font), adobe-clean-serif, 'Source Serif Pro', Georgia, serif;
40+
--spectrum-serif-font-family-stack: adobe-clean-serif, 'Source Serif Pro', Georgia, serif;
4341

4442
--spectrum-code-font-family-stack: 'Source Code Pro', Monaco, monospace;
4543

46-
--spectrum-cjk-font: var(--spectrum-cjk-font-family);
47-
--spectrum-cjk-font-family-stack: var(--spectrum-cjk-font), adobe-clean-han-japanese, sans-serif;
44+
--spectrum-cjk-font-family-stack: adobe-clean-han-japanese, sans-serif;
4845

4946
/* static white / black background color for docs containers */
5047
--spectrum-docs-static-white-background-color: rgb(15, 121, 125);

0 commit comments

Comments
 (0)