Skip to content

Commit

Permalink
feat(tokens)!: prefer lowercase, hyphenated font names in font stacks (
Browse files Browse the repository at this point in the history
…#2007)

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.
  • Loading branch information
pfulton authored Jul 13, 2023
1 parent 4ed842f commit e978a3a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions components/tokens/custom-spectrum/custom-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ governing permissions and limitations under the License.
--spectrum-animation-ease-out: cubic-bezier(0, 0, 0.40, 1);
--spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1);

--spectrum-sans-serif-font: var(--spectrum-sans-serif-font-family);
--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;

--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;
--spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack);

--spectrum-serif-font: var(--spectrum-serif-font-family);
--spectrum-serif-font-family-stack: var(--spectrum-serif-font), adobe-clean-serif, 'Source Serif Pro', Georgia, serif;
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), 'Source Serif Pro', Georgia, serif;
--spectrum-serif-font: var(--spectrum-serif-font-family-stack);

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

--spectrum-cjk-font: var(--spectrum-cjk-font-family);
--spectrum-cjk-font-family-stack: var(--spectrum-cjk-font), adobe-clean-han-japanese, sans-serif;
--spectrum-cjk-font-family-stack: adobe-clean-han-japanese, var(--spectrum-cjk-font-family), sans-serif;
--spectrum-cjk-font: var(--spectrum-code-font-family-stack);

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

0 comments on commit e978a3a

Please sign in to comment.