@withlayers/mixins 0.0.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/dist/a11y.css ADDED
@@ -0,0 +1,12 @@
1
+ @define-mixin is-visually-hidden {
2
+ border: 0;
3
+ clip-path: inset(50%);
4
+ clip: rect(1px, 1px, 1px, 1px);
5
+ height: 1px;
6
+ margin: -1px;
7
+ overflow: hidden;
8
+ padding: 0;
9
+ position: absolute;
10
+ width: 1px;
11
+ word-wrap: normal !important;
12
+ }
package/dist/index.css ADDED
@@ -0,0 +1,2 @@
1
+ @import url('a11y.css');
2
+ @import url('typography.css');
@@ -0,0 +1,43 @@
1
+ @define-mixin is-style-caption {
2
+ font-family: var(--l--theme--typography--caption--font-family);
3
+ font-size: var(--l--theme--typography--caption--font-size);
4
+ font-style: var(--l--theme--typography--caption--font-style);
5
+ font-variant: var(--l--theme--typography--caption--font-variant-caps);
6
+ font-weight: var(--l--theme--typography--caption--font-weight);
7
+ letter-spacing: var(--l--theme--typography--caption--letter-spacing);
8
+ line-height: var(--l--theme--typography--caption--line-height);
9
+ text-transform: var(--l--theme--typography--caption--text-transform);
10
+ }
11
+
12
+ @define-mixin is-style-caption-attribution {
13
+ font-family: var(--l--theme--typography--caption-attribution--font-family);
14
+ font-size: var(--l--theme--typography--caption-attribution--font-size);
15
+ font-style: var(--l--theme--typography--caption-attribution--font-style);
16
+ font-variant: var(--l--theme--typography--caption-attribution--font-variant-caps);
17
+ font-weight: var(--l--theme--typography--caption-attribution--font-weight);
18
+ letter-spacing: var(--l--theme--typography--caption-attribution--letter-spacing);
19
+ line-height: var(--l--theme--typography--caption-attribution--line-height);
20
+ text-transform: var(--l--theme--typography--caption-attribution--text-transform);
21
+ }
22
+
23
+ @define-mixin is-style-overline {
24
+ font-family: var(--l--theme--typography--overline--font-family);
25
+ font-size: var(--l--theme--typography--overline--font-size);
26
+ font-style: var(--l--theme--typography--overline--font-style);
27
+ font-variant: var(--l--theme--typography--overline--font-variant-caps);
28
+ font-weight: var(--l--theme--typography--overline--font-weight);
29
+ letter-spacing: var(--l--theme--typography--overline--letter-spacing);
30
+ line-height: var(--l--theme--typography--overline--line-height);
31
+ text-transform: var(--l--theme--typography--overline--text-transform);
32
+ }
33
+
34
+ @define-mixin is-style-subhead {
35
+ font-family: var(--l--theme--typography--subhead--font-family);
36
+ font-size: var(--l--theme--typography--subhead--font-size);
37
+ font-style: var(--l--theme--typography--subhead--font-style);
38
+ font-variant-caps: var(--l--theme--typography--subhead--font-variant-caps);
39
+ font-weight: var(--l--theme--typography--subhead--font-weight);
40
+ letter-spacing: var(--l--theme--typography--subhead--letter-spacing);
41
+ line-height: var(--l--theme--typography--subhead--line-height);
42
+ text-transform: var(--l--theme--typography--subhead--text-transform);
43
+ }
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@withlayers/mixins",
3
+ "version": "0.0.0",
4
+ "description": "Mixins layer",
5
+ "license": "MIT",
6
+ "author": "Dmitry Mayorov",
7
+ "type": "module",
8
+ "main": "dist/index.css",
9
+ "exports": {
10
+ ".": "./dist/index.css"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "build": "rm -rf dist && cp -R src dist",
17
+ "dev": "npm run build -- --watch"
18
+ },
19
+ "dependencies": {
20
+ "@withlayers/tokens": "0.1.0"
21
+ }
22
+ }