@onereach/styles 0.4.2 → 0.5.0

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.
package/README.md CHANGED
@@ -21,55 +21,3 @@ import '@onereach/styles';
21
21
  import '@onereach/styles/src/main.scss';
22
22
  ```
23
23
 
24
- ### Components (required: Global Styles):
25
- ```js
26
- import '@onereach/styles/src/components/(base/modern/etc.)/component-name.scss';
27
- ```
28
- #### Vue SFC
29
- ```vue
30
- <template>Template</template>
31
-
32
- <script>
33
- // with sass-loader
34
- // import '@onereach/styles/src/components/or-icon.scss';
35
-
36
- export default {};
37
- </script>
38
-
39
- <style lang="scss">
40
- @import "node_modules/@onereach/styles/src/components/or-icon";
41
- </style>
42
- ```
43
- ```js
44
- // example with js or ts files
45
- import '@onereach/styles/src/components/or-icon.scss';
46
-
47
- export default {
48
- name: 'BaseHeading',
49
-
50
- props: {
51
- level: {
52
- type: [String, Number],
53
- default: 1
54
- },
55
-
56
- text: String
57
- },
58
-
59
- render (h) {
60
- return h(
61
- `h${this.level}`,
62
- {
63
- class: [
64
- 'base-title',
65
- `h${this.level}`
66
- ],
67
- domProps: {
68
- innerHTML: this.text
69
- }
70
- }
71
- )
72
- }
73
- }
74
- ```
75
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "main": "./dist/index.min.css",
6
6
  "unpkg": "./dist/index.css",
@@ -32,5 +32,5 @@
32
32
  "sass": "^1.35.1",
33
33
  "stylelint": "^13.13.1"
34
34
  },
35
- "gitHead": "14ac6aa58cf1ecf3ee65877770c8818a334975b1"
35
+ "gitHead": "acd35fb553e093da7cb55a8e5b37f3bcc1b30732"
36
36
  }
@@ -0,0 +1,11 @@
1
+ // spacings
2
+ $s-0: var(--s-0);
3
+ $s-1: var(--s-1);
4
+ $s-2: var(--s-2);
5
+ $s-3: var(--s-3);
6
+ $s-4: var(--s-4);
7
+ $s-5: var(--s-5);
8
+ $s-6: var(--s-6);
9
+ $s-7: var(--s-7);
10
+ $s-8: var(--s-8);
11
+ $s-9: var(--s-9);
@@ -0,0 +1,15 @@
1
+ // font-sizes
2
+ $fs-0: var(--fs-0);
3
+ $fs-1: var(--fs-1);
4
+ $fs-2: var(--fs-2);
5
+ $fs-3: var(--fs-3);
6
+
7
+ // font-weights
8
+ $fw-0: var(--fw-0);
9
+ $fw-1: var(--fw-1);
10
+ $fw-2: var(--fw-2);
11
+
12
+ // line-heights
13
+ $lh-0: var(--lh-0);
14
+ $lh-1: var(--lh-1);
15
+ $lh-2: var(--lh-2);
@@ -2,3 +2,5 @@
2
2
  @forward "css-vars";
3
3
  @forward "initial";
4
4
  @forward "colors";
5
+ @forward "typography";
6
+ @forward "spacings";