typographics 0.0.1
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/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/css/typographics.min.css +1 -0
- package/dist/index.html +96 -0
- package/package.json +45 -0
- package/src/index.html +96 -0
- package/src/typographics.scss +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2023 ux-ui.pro
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<br>
|
|
4
|
+
|
|
5
|
+
<h1>typographics</h1>
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/typographics)
|
|
8
|
+
[](https://github.com/ux-ui-pro/typographics)
|
|
9
|
+
[](https://www.npmjs.org/package/typographics)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
<br>
|
|
13
|
+
|
|
14
|
+
### Import
|
|
15
|
+
<sub>Import file if your bundler supports SCSS.</sub>
|
|
16
|
+
```SCSS
|
|
17
|
+
@import "node_modules/typographics/src/typographics.scss";
|
|
18
|
+
```
|
|
19
|
+
<sub>Or link to the file by the `<link>` element:</sub>
|
|
20
|
+
```HTML
|
|
21
|
+
<link rel="stylesheet" href="path-to-the-file/typographics.min.css">
|
|
22
|
+
```
|
|
23
|
+
<br>
|
|
24
|
+
|
|
25
|
+
### License
|
|
26
|
+
<sub>typographics is released under MIT license.</sub>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--landingGridWidth:var(--wrapper, min(1600px, 92vw));--landingGridGutter:var(--gutter, min(60px, 4vw));--landingGridColumn:calc((var(--landingGridWidth) - 11 * var(--landingGridGutter)) / 12);--landingGridMargin:calc((100vw - var(--landingGridWidth)) / 2)}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>typographics</title>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<style type="text/css">
|
|
9
|
+
html {
|
|
10
|
+
font-family: system-ui, -apple-system, "Open Sans", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
11
|
+
font-size: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
margin: 40px 0;
|
|
16
|
+
font-feature-settings: "kern" 1,"liga" 0;
|
|
17
|
+
font-size: 1.6rem;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html,
|
|
23
|
+
body,
|
|
24
|
+
input,
|
|
25
|
+
textarea,
|
|
26
|
+
button {
|
|
27
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.wrapper-to-left {
|
|
31
|
+
width: calc(min(1600px, 92vw) + var(--landingGridMargin));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.wrapper-to-right {
|
|
35
|
+
width: calc(min(1600px, 92vw) + var(--landingGridMargin));
|
|
36
|
+
transform: translateX(var(--landingGridMargin));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.column,
|
|
40
|
+
.wrapper-to-left,
|
|
41
|
+
.wrapper-to-right {
|
|
42
|
+
background: Gainsboro;
|
|
43
|
+
color: DimGray;
|
|
44
|
+
height: 30px;
|
|
45
|
+
line-height: 28px;
|
|
46
|
+
margin-bottom: 30px;
|
|
47
|
+
text-align: center;
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
52
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
|
|
53
|
+
<link rel="stylesheet" href="css/typographics.min.css">
|
|
54
|
+
</head>
|
|
55
|
+
<body>
|
|
56
|
+
<div class="wrapper">
|
|
57
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
58
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
59
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
60
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div class="wrapper">
|
|
64
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
65
|
+
<div class="column" style="--column: 6;">column 6</div>
|
|
66
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div class="wrapper">
|
|
70
|
+
<div class="column column--infinite" style="--column: 6;">column 6</div>
|
|
71
|
+
<div class="column" style="--column: 6;">column 6</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="wrapper">
|
|
75
|
+
<div class="column" style="--column: 8;">column 8</div>
|
|
76
|
+
<div class="column" style="--column: 2;">column 2</div>
|
|
77
|
+
<div class="column column--infinite" style="--column: 2;">column 2</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div class="wrapper">
|
|
81
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
82
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
83
|
+
<div class="column" style="--column: 4;">column 4</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="wrapper">
|
|
87
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
88
|
+
<div class="column" style="--column: 5;">column 5</div>
|
|
89
|
+
<div class="column" style="--column: 1;">column 1</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="wrapper-to-left">big-to-left</div>
|
|
93
|
+
|
|
94
|
+
<div class="wrapper-to-right">big-to-right</div>
|
|
95
|
+
</body>
|
|
96
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typographics",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Styling plain HTML content with beautiful typographic defaults",
|
|
5
|
+
"author": "ux-ui.pro",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ux-ui-pro/typographics.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src"
|
|
14
|
+
],
|
|
15
|
+
"main": "src/typographics.scss",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/ux-ui-pro/typographics/issues"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"serve": "gulp",
|
|
22
|
+
"build": "gulp build --build"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"browser-sync": "^2.27.7",
|
|
27
|
+
"del": "^6.0.0",
|
|
28
|
+
"gulp": "^4.0.2",
|
|
29
|
+
"gulp-if": "^3.0.0",
|
|
30
|
+
"gulp-newer": "^1.4.0",
|
|
31
|
+
"gulp-file-include": "^2.3.0",
|
|
32
|
+
"gulp-rename": "^2.0.0",
|
|
33
|
+
"gulp-replace": "^1.1.3",
|
|
34
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
35
|
+
"gulp-clean-css": "^4.3.0",
|
|
36
|
+
"gulp-group-css-media-queries": "^1.2.2",
|
|
37
|
+
"gulp-sass": "^5.1.0",
|
|
38
|
+
"sass": "^1.49.8",
|
|
39
|
+
"webpack": "^5.69.1",
|
|
40
|
+
"webpack-stream": "^7.0.0"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"Grid system"
|
|
44
|
+
]
|
|
45
|
+
}
|
package/src/index.html
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>typographics</title>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<style type="text/css">
|
|
9
|
+
html {
|
|
10
|
+
font-family: system-ui, -apple-system, "Open Sans", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
11
|
+
font-size: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
margin: 40px 0;
|
|
16
|
+
font-feature-settings: "kern" 1,"liga" 0;
|
|
17
|
+
font-size: 1.6rem;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html,
|
|
23
|
+
body,
|
|
24
|
+
input,
|
|
25
|
+
textarea,
|
|
26
|
+
button {
|
|
27
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.wrapper-to-left {
|
|
31
|
+
width: calc(min(1600px, 92vw) + var(--landingGridMargin));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.wrapper-to-right {
|
|
35
|
+
width: calc(min(1600px, 92vw) + var(--landingGridMargin));
|
|
36
|
+
transform: translateX(var(--landingGridMargin));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.column,
|
|
40
|
+
.wrapper-to-left,
|
|
41
|
+
.wrapper-to-right {
|
|
42
|
+
background: Gainsboro;
|
|
43
|
+
color: DimGray;
|
|
44
|
+
height: 30px;
|
|
45
|
+
line-height: 28px;
|
|
46
|
+
margin-bottom: 30px;
|
|
47
|
+
text-align: center;
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
52
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
|
|
53
|
+
<link rel="stylesheet" href="css/typographics.min.css">
|
|
54
|
+
</head>
|
|
55
|
+
<body>
|
|
56
|
+
<div class="wrapper">
|
|
57
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
58
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
59
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
60
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div class="wrapper">
|
|
64
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
65
|
+
<div class="column" style="--column: 6;">column 6</div>
|
|
66
|
+
<div class="column" style="--column: 3;">column 3</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div class="wrapper">
|
|
70
|
+
<div class="column column--infinite" style="--column: 6;">column 6</div>
|
|
71
|
+
<div class="column" style="--column: 6;">column 6</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="wrapper">
|
|
75
|
+
<div class="column" style="--column: 8;">column 8</div>
|
|
76
|
+
<div class="column" style="--column: 2;">column 2</div>
|
|
77
|
+
<div class="column column--infinite" style="--column: 2;">column 2</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div class="wrapper">
|
|
81
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
82
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
83
|
+
<div class="column" style="--column: 4;">column 4</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="wrapper">
|
|
87
|
+
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
|
|
88
|
+
<div class="column" style="--column: 5;">column 5</div>
|
|
89
|
+
<div class="column" style="--column: 1;">column 1</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="wrapper-to-left">big-to-left</div>
|
|
93
|
+
|
|
94
|
+
<div class="wrapper-to-right">big-to-right</div>
|
|
95
|
+
</body>
|
|
96
|
+
</html>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--landingGridWidth: var(--wrapper, min(1600px, 92vw));
|
|
3
|
+
--landingGridGutter: var(--gutter, min(60px, 4vw));
|
|
4
|
+
--landingGridColumn: calc((var(--landingGridWidth) - 11 * var(--landingGridGutter)) / 12);
|
|
5
|
+
--landingGridMargin: calc((100vw - var(--landingGridWidth)) / 2);
|
|
6
|
+
}
|