typographics 1.0.1-dev.2 → 1.0.1-dev.4
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 +14 -17
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -21,29 +21,26 @@ $ yarn add typographics
|
|
|
21
21
|
<br>
|
|
22
22
|
|
|
23
23
|
➤ **Import**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
```css
|
|
27
|
-
@import "typographics/dist";
|
|
24
|
+
```javascript
|
|
25
|
+
import 'typographics/dist/index.css';
|
|
28
26
|
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@import "typographics/src";
|
|
27
|
+
<sub>or</sub>
|
|
28
|
+
```SCSS
|
|
29
|
+
@import "typographics/dist/index.css";
|
|
33
30
|
```
|
|
34
31
|
<br>
|
|
35
32
|
|
|
36
33
|
➤ **Settings**
|
|
37
34
|
|
|
38
|
-
| Variable
|
|
39
|
-
|
|
40
|
-
| `--
|
|
41
|
-
| `--
|
|
42
|
-
| `--
|
|
43
|
-
| `--
|
|
44
|
-
| `--font-
|
|
45
|
-
| `--line-height-
|
|
46
|
-
| `--line-height-heading`
|
|
35
|
+
| Variable | Default | Description |
|
|
36
|
+
|:---------------------------|:---------:|:-------------------------------------------------------------------------------|
|
|
37
|
+
| `--t-base-font-family` | `"Inter"` | Sets the default font family. |
|
|
38
|
+
| `--t-font-size-min-scale` | `0.75` | Sets the minimum font size from which scaling starts. |
|
|
39
|
+
| `--t-font-size-max-scale` | `1` | Sets the maximum font size at which scaling ends. |
|
|
40
|
+
| `--t-font-scale-min-width` | `600` | Sets the minimum viewport width in pixels from which font size scaling starts. |
|
|
41
|
+
| `--t-font-scale-max-width` | `1440` | Sets the maximum viewport width in pixels at which font size scaling ends. |
|
|
42
|
+
| `--t-line-height-body` | `1.5` | Sets the default line height. |
|
|
43
|
+
| `--t-line-height-heading` | `1.3em` | Sets the line height for headings. |
|
|
47
44
|
<br>
|
|
48
45
|
|
|
49
46
|
➤ **License**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typographics",
|
|
3
|
-
"version": "1.0.1-dev.
|
|
3
|
+
"version": "1.0.1-dev.4",
|
|
4
4
|
"description": "typographics provides flexible and adaptive styles for typography on web pages. This package allows you to automate the resizing of fonts based on screen width, ensuring good readability on any device.",
|
|
5
5
|
"author": "ux-ui.pro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"lint:fix:css": "stylelint src/**/*.scss --fix"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
|
-
"
|
|
23
|
-
"default": "./dist/index.css"
|
|
24
|
-
}
|
|
22
|
+
"./dist/*": "./dist/*"
|
|
25
23
|
},
|
|
26
24
|
"files": [
|
|
27
25
|
"dist/"
|