Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #58 from Shopify/fix-quoted-typography
Browse files Browse the repository at this point in the history
Fix quoted typography
  • Loading branch information
tmlayton authored Apr 4, 2019
2 parents 8111270 + 1157a86 commit 799f7ac
Show file tree
Hide file tree
Showing 22 changed files with 599 additions and 247 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

- Added color names to the Sketch palette ([#53](https://github.com/Shopify/polaris-tokens/pull/53))
- Fixed a bug where the font family value was wrapped in quotes ([#58](https://github.com/Shopify/polaris-tokens/pull/58))

## [2.3.0] - 2019-02-19

Expand Down
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/colors.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ exports[`renders index.d.ts correctly 1`] = `
colorYellowLight: \\"rgb(255, 234, 138)\\";
colorYellowLighter: \\"rgb(252, 241, 205)\\";
colorYellowText: \\"rgb(89, 81, 48)\\";
fontStackBase: \\"-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif\\";
fontStackBase: \\"-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif\\";
fontStackMonospace: \\"Monaco, Consolas, 'Lucida Console', monospace\\";
spacingBase: \\"16px\\";
spacingBaseTight: \\"12px\\";
Expand Down
2 changes: 1 addition & 1 deletion dist/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ module.exports = {
spacingLoose: '20px',
spacingExtraLoose: '32px',
fontStackBase:
"-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
fontStackMonospace: "Monaco, Consolas, 'Lucida Console', monospace",
};
5 changes: 3 additions & 2 deletions dist/index.custom-properties.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
--spacing-base: 16px;
--spacing-loose: 20px;
--spacing-extra-loose: 32px;
--font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
--font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
--font-stack-base: -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto,
'Segoe UI', 'Helvetica Neue', sans-serif;
--font-stack-monospace: Monaco, Consolas, 'Lucida Console', monospace;
}
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ declare interface Tokens {
colorYellowLight: "rgb(255, 234, 138)";
colorYellowLighter: "rgb(252, 241, 205)";
colorYellowText: "rgb(89, 81, 48)";
fontStackBase: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
fontStackBase: "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif";
fontStackMonospace: "Monaco, Consolas, 'Lucida Console', monospace";
spacingBase: "16px";
spacingBaseTight: "12px";
Expand Down
2 changes: 1 addition & 1 deletion dist/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
"spacing-base": "16px",
"spacing-loose": "20px",
"spacing-extra-loose": "32px",
"font-stack-base": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"font-stack-base": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
"font-stack-monospace": "Monaco, Consolas, 'Lucida Console', monospace"
}
13 changes: 11 additions & 2 deletions dist/index.map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,18 @@ $polaris-index-map: (
32px,
),
'font-stack-base': (
"-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
-apple-system,
BlinkMacSystemFont,
'San Francisco',
Roboto,
'Segoe UI',
'Helvetica Neue',
sans-serif,
),
'font-stack-monospace': (
"Monaco, Consolas, 'Lucida Console', monospace",
Monaco,
Consolas,
'Lucida Console',
monospace,
),
);
8 changes: 4 additions & 4 deletions dist/index.raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -632,14 +632,14 @@
"originalValue": "32px"
},
"font-stack-base": {
"type": "string",
"type": "font-family",
"category": "font-family",
"name": "font-stack-base",
"value": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"originalValue": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif"
"value": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
"originalValue": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif"
},
"font-stack-monospace": {
"type": "string",
"type": "font-family",
"category": "font-family",
"name": "font-stack-monospace",
"value": "Monaco, Consolas, 'Lucida Console', monospace",
Expand Down
5 changes: 3 additions & 2 deletions dist/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ $spacing-base-tight: 12px;
$spacing-base: 16px;
$spacing-loose: 20px;
$spacing-extra-loose: 32px;
$font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
$font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
$font-stack-base: -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto,
'Segoe UI', 'Helvetica Neue', sans-serif;
$font-stack-monospace: Monaco, Consolas, 'Lucida Console', monospace;
2 changes: 1 addition & 1 deletion dist/typography.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
fontStackBase:
"-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
fontStackMonospace: "Monaco, Consolas, 'Lucida Console', monospace",
};
5 changes: 3 additions & 2 deletions dist/typography.custom-properties.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
:root {
--font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
--font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
--font-stack-base: -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto,
'Segoe UI', 'Helvetica Neue', sans-serif;
--font-stack-monospace: Monaco, Consolas, 'Lucida Console', monospace;
}
2 changes: 1 addition & 1 deletion dist/typography.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"font-stack-base": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"font-stack-base": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
"font-stack-monospace": "Monaco, Consolas, 'Lucida Console', monospace"
}
13 changes: 11 additions & 2 deletions dist/typography.map.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
$polaris-typography-map: (
'font-stack-base': (
"-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
-apple-system,
BlinkMacSystemFont,
'San Francisco',
Roboto,
'Segoe UI',
'Helvetica Neue',
sans-serif,
),
'font-stack-monospace': (
"Monaco, Consolas, 'Lucida Console', monospace",
Monaco,
Consolas,
'Lucida Console',
monospace,
),
);
8 changes: 4 additions & 4 deletions dist/typography.raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"aliases": {},
"props": {
"font-stack-base": {
"type": "string",
"type": "font-family",
"category": "font-family",
"name": "font-stack-base",
"value": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
"originalValue": "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif"
"value": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif",
"originalValue": "-apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif"
},
"font-stack-monospace": {
"type": "string",
"type": "font-family",
"category": "font-family",
"name": "font-stack-monospace",
"value": "Monaco, Consolas, 'Lucida Console', monospace",
Expand Down
5 changes: 3 additions & 2 deletions dist/typography.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
$font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
$font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
$font-stack-base: -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto,
'Segoe UI', 'Helvetica Neue', sans-serif;
$font-stack-monospace: Monaco, Consolas, 'Lucida Console', monospace;
2 changes: 1 addition & 1 deletion docs/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 799f7ac

Please sign in to comment.