@flodesk/grain 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,10 @@
2
2
  --base: 15px;
3
3
  --ratio: calc(0.2vw + 2px);
4
4
 
5
- --grn-text-sm: 13px;
6
- --grn-text-md: var(--base);
7
- --grn-text-lg: calc(var(--grn-text-md) + var(--ratio));
8
- --grn-text-xl: calc(var(--grn-text-lg) + var(--ratio));
5
+ --grn-text-s: 13px;
6
+ --grn-text-m: var(--base);
7
+ --grn-text-l: calc(var(--grn-text-m) + var(--ratio));
8
+ --grn-text-xl: calc(var(--grn-text-l) + var(--ratio));
9
9
  --grn-text-xxl: calc(var(--grn-text-xl) + var(--ratio));
10
10
 
11
11
  --grn-weight-normal: 400;
@@ -15,4 +15,6 @@
15
15
  * {
16
16
  letter-spacing: calc(1.3px - 0.07em);
17
17
  line-height: calc(5px + 1em);
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
18
20
  }
@@ -17,7 +17,7 @@ var Wrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateL
17
17
  export var Text = function Text(_ref) {
18
18
  var children = _ref.children,
19
19
  _ref$size = _ref.size,
20
- size = _ref$size === void 0 ? 'md' : _ref$size,
20
+ size = _ref$size === void 0 ? 'm' : _ref$size,
21
21
  _ref$weight = _ref.weight,
22
22
  weight = _ref$weight === void 0 ? 'normal' : _ref$weight;
23
23
  return /*#__PURE__*/React.createElement(Wrapper, {
@@ -25,7 +25,7 @@ export var Text = function Text(_ref) {
25
25
  weight: weight
26
26
  }, children);
27
27
  };
28
- var sizes = ['sm', 'md', 'lg', 'xl', 'xxl'];
28
+ var sizes = ['s', 'm', 'l', 'xl', 'xxl'];
29
29
  var weights = ['normal', 'bold'];
30
30
  Text.propTypes = {
31
31
  size: PropTypes.oneOf(sizes),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",