@pol-cova/gessi 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 +22 -0
- package/README.md +33 -0
- package/dist/gessi.css +201 -0
- package/package.json +33 -0
- package/src/gessi.css +201 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Paul Contreras
|
|
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.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# gessi
|
|
2
|
+
|
|
3
|
+
A tiny style kit for expressive HTML.
|
|
4
|
+
|
|
5
|
+
Gessi gives plain HTML a little more rhythm without asking for classes,
|
|
6
|
+
components, or build tooling. Drop in the stylesheet and write semantic markup.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @pol-cova/gessi
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## CDN
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pol-cova/gessi/dist/gessi.css">
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<link rel="stylesheet" href="https://unpkg.com/@pol-cova/gessi/dist/gessi.css">
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Local usage
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<link rel="stylesheet" href="./dist/gessi.css">
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
The source file lives at `src/gessi.css`. The published CSS is copied to
|
|
33
|
+
`dist/gessi.css`.
|
package/dist/gessi.css
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light dark;
|
|
3
|
+
--gessi-bg: light-dark(#fbfaf7, #171614);
|
|
4
|
+
--gessi-surface: light-dark(#ffffff, #22201d);
|
|
5
|
+
--gessi-text: light-dark(#24211d, #f3eee7);
|
|
6
|
+
--gessi-muted: light-dark(#6d655c, #b8afa4);
|
|
7
|
+
--gessi-line: light-dark(#ded6ca, #3a352f);
|
|
8
|
+
--gessi-accent: light-dark(#b4442d, #f28b73);
|
|
9
|
+
--gessi-accent-strong: light-dark(#7f291b, #ffb19f);
|
|
10
|
+
--gessi-code: light-dark(#f2ede5, #2d2924);
|
|
11
|
+
--gessi-radius: 8px;
|
|
12
|
+
--gessi-measure: 68ch;
|
|
13
|
+
--gessi-font: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
14
|
+
--gessi-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
15
|
+
"Segoe UI", sans-serif;
|
|
16
|
+
--gessi-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
17
|
+
"Liberation Mono", monospace;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
* {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html {
|
|
25
|
+
background: var(--gessi-bg);
|
|
26
|
+
color: var(--gessi-text);
|
|
27
|
+
font-family: var(--gessi-font);
|
|
28
|
+
line-height: 1.6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body {
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
max-width: var(--gessi-measure);
|
|
34
|
+
padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 32px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body > header,
|
|
38
|
+
body > main,
|
|
39
|
+
body > footer {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
header {
|
|
44
|
+
margin-bottom: 3rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
footer {
|
|
48
|
+
border-top: 1px solid var(--gessi-line);
|
|
49
|
+
color: var(--gessi-muted);
|
|
50
|
+
font-family: var(--gessi-sans);
|
|
51
|
+
font-size: 0.9rem;
|
|
52
|
+
margin-top: 4rem;
|
|
53
|
+
padding-top: 1rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h1,
|
|
57
|
+
h2,
|
|
58
|
+
h3 {
|
|
59
|
+
line-height: 1.1;
|
|
60
|
+
margin: 2.25rem 0 0.75rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h1 {
|
|
64
|
+
font-size: clamp(2.6rem, 8vw, 5.5rem);
|
|
65
|
+
letter-spacing: 0;
|
|
66
|
+
margin-top: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
h2 {
|
|
70
|
+
font-size: clamp(1.65rem, 4vw, 2.4rem);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
h3 {
|
|
74
|
+
font-size: 1.25rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
p,
|
|
78
|
+
ul,
|
|
79
|
+
ol,
|
|
80
|
+
blockquote,
|
|
81
|
+
pre,
|
|
82
|
+
table {
|
|
83
|
+
margin: 0 0 1.15rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a {
|
|
87
|
+
color: var(--gessi-accent);
|
|
88
|
+
text-decoration-thickness: 0.08em;
|
|
89
|
+
text-underline-offset: 0.18em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
a:hover {
|
|
93
|
+
color: var(--gessi-accent-strong);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
mark {
|
|
97
|
+
background: color-mix(in srgb, var(--gessi-accent) 22%, transparent);
|
|
98
|
+
border-radius: 0.2em;
|
|
99
|
+
color: inherit;
|
|
100
|
+
padding: 0.05em 0.18em;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
blockquote {
|
|
104
|
+
border-left: 4px solid var(--gessi-accent);
|
|
105
|
+
color: var(--gessi-muted);
|
|
106
|
+
font-size: 1.15rem;
|
|
107
|
+
margin-left: 0;
|
|
108
|
+
padding-left: 1rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
code,
|
|
112
|
+
kbd,
|
|
113
|
+
samp {
|
|
114
|
+
background: var(--gessi-code);
|
|
115
|
+
border: 1px solid var(--gessi-line);
|
|
116
|
+
border-radius: 0.25rem;
|
|
117
|
+
font-family: var(--gessi-mono);
|
|
118
|
+
font-size: 0.9em;
|
|
119
|
+
padding: 0.1em 0.28em;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
pre {
|
|
123
|
+
background: var(--gessi-code);
|
|
124
|
+
border: 1px solid var(--gessi-line);
|
|
125
|
+
border-radius: var(--gessi-radius);
|
|
126
|
+
overflow-x: auto;
|
|
127
|
+
padding: 1rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
pre code {
|
|
131
|
+
background: transparent;
|
|
132
|
+
border: 0;
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
hr {
|
|
137
|
+
border: 0;
|
|
138
|
+
border-top: 1px solid var(--gessi-line);
|
|
139
|
+
margin: 2.5rem 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
img,
|
|
143
|
+
svg,
|
|
144
|
+
video {
|
|
145
|
+
display: block;
|
|
146
|
+
height: auto;
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
table {
|
|
151
|
+
border-collapse: collapse;
|
|
152
|
+
font-family: var(--gessi-sans);
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
th,
|
|
157
|
+
td {
|
|
158
|
+
border-bottom: 1px solid var(--gessi-line);
|
|
159
|
+
padding: 0.65rem 0.5rem;
|
|
160
|
+
text-align: left;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
button,
|
|
164
|
+
input,
|
|
165
|
+
select,
|
|
166
|
+
textarea {
|
|
167
|
+
font: inherit;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
button,
|
|
171
|
+
input[type="button"],
|
|
172
|
+
input[type="submit"] {
|
|
173
|
+
background: var(--gessi-accent);
|
|
174
|
+
border: 0;
|
|
175
|
+
border-radius: var(--gessi-radius);
|
|
176
|
+
color: white;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
font-family: var(--gessi-sans);
|
|
179
|
+
font-weight: 700;
|
|
180
|
+
padding: 0.65rem 0.9rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
input:not([type]),
|
|
184
|
+
input[type="email"],
|
|
185
|
+
input[type="search"],
|
|
186
|
+
input[type="text"],
|
|
187
|
+
textarea {
|
|
188
|
+
background: var(--gessi-surface);
|
|
189
|
+
border: 1px solid var(--gessi-line);
|
|
190
|
+
border-radius: var(--gessi-radius);
|
|
191
|
+
color: inherit;
|
|
192
|
+
display: block;
|
|
193
|
+
padding: 0.6rem 0.7rem;
|
|
194
|
+
width: 100%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
::selection {
|
|
198
|
+
background: var(--gessi-accent);
|
|
199
|
+
color: white;
|
|
200
|
+
}
|
|
201
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pol-cova/gessi",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A tiny style kit for expressive HTML.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"style": "dist/gessi.css",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "cp src/gessi.css dist/gessi.css",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"css",
|
|
19
|
+
"html",
|
|
20
|
+
"style-kit",
|
|
21
|
+
"stylesheet"
|
|
22
|
+
],
|
|
23
|
+
"author": "Paul Contreras",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"homepage": "https://github.com/pol-cova/gessi#readme",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/pol-cova/gessi.git"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/pol-cova/gessi/issues"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/gessi.css
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light dark;
|
|
3
|
+
--gessi-bg: light-dark(#fbfaf7, #171614);
|
|
4
|
+
--gessi-surface: light-dark(#ffffff, #22201d);
|
|
5
|
+
--gessi-text: light-dark(#24211d, #f3eee7);
|
|
6
|
+
--gessi-muted: light-dark(#6d655c, #b8afa4);
|
|
7
|
+
--gessi-line: light-dark(#ded6ca, #3a352f);
|
|
8
|
+
--gessi-accent: light-dark(#b4442d, #f28b73);
|
|
9
|
+
--gessi-accent-strong: light-dark(#7f291b, #ffb19f);
|
|
10
|
+
--gessi-code: light-dark(#f2ede5, #2d2924);
|
|
11
|
+
--gessi-radius: 8px;
|
|
12
|
+
--gessi-measure: 68ch;
|
|
13
|
+
--gessi-font: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
14
|
+
--gessi-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
15
|
+
"Segoe UI", sans-serif;
|
|
16
|
+
--gessi-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
17
|
+
"Liberation Mono", monospace;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
* {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html {
|
|
25
|
+
background: var(--gessi-bg);
|
|
26
|
+
color: var(--gessi-text);
|
|
27
|
+
font-family: var(--gessi-font);
|
|
28
|
+
line-height: 1.6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body {
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
max-width: var(--gessi-measure);
|
|
34
|
+
padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 32px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body > header,
|
|
38
|
+
body > main,
|
|
39
|
+
body > footer {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
header {
|
|
44
|
+
margin-bottom: 3rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
footer {
|
|
48
|
+
border-top: 1px solid var(--gessi-line);
|
|
49
|
+
color: var(--gessi-muted);
|
|
50
|
+
font-family: var(--gessi-sans);
|
|
51
|
+
font-size: 0.9rem;
|
|
52
|
+
margin-top: 4rem;
|
|
53
|
+
padding-top: 1rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h1,
|
|
57
|
+
h2,
|
|
58
|
+
h3 {
|
|
59
|
+
line-height: 1.1;
|
|
60
|
+
margin: 2.25rem 0 0.75rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h1 {
|
|
64
|
+
font-size: clamp(2.6rem, 8vw, 5.5rem);
|
|
65
|
+
letter-spacing: 0;
|
|
66
|
+
margin-top: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
h2 {
|
|
70
|
+
font-size: clamp(1.65rem, 4vw, 2.4rem);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
h3 {
|
|
74
|
+
font-size: 1.25rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
p,
|
|
78
|
+
ul,
|
|
79
|
+
ol,
|
|
80
|
+
blockquote,
|
|
81
|
+
pre,
|
|
82
|
+
table {
|
|
83
|
+
margin: 0 0 1.15rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a {
|
|
87
|
+
color: var(--gessi-accent);
|
|
88
|
+
text-decoration-thickness: 0.08em;
|
|
89
|
+
text-underline-offset: 0.18em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
a:hover {
|
|
93
|
+
color: var(--gessi-accent-strong);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
mark {
|
|
97
|
+
background: color-mix(in srgb, var(--gessi-accent) 22%, transparent);
|
|
98
|
+
border-radius: 0.2em;
|
|
99
|
+
color: inherit;
|
|
100
|
+
padding: 0.05em 0.18em;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
blockquote {
|
|
104
|
+
border-left: 4px solid var(--gessi-accent);
|
|
105
|
+
color: var(--gessi-muted);
|
|
106
|
+
font-size: 1.15rem;
|
|
107
|
+
margin-left: 0;
|
|
108
|
+
padding-left: 1rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
code,
|
|
112
|
+
kbd,
|
|
113
|
+
samp {
|
|
114
|
+
background: var(--gessi-code);
|
|
115
|
+
border: 1px solid var(--gessi-line);
|
|
116
|
+
border-radius: 0.25rem;
|
|
117
|
+
font-family: var(--gessi-mono);
|
|
118
|
+
font-size: 0.9em;
|
|
119
|
+
padding: 0.1em 0.28em;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
pre {
|
|
123
|
+
background: var(--gessi-code);
|
|
124
|
+
border: 1px solid var(--gessi-line);
|
|
125
|
+
border-radius: var(--gessi-radius);
|
|
126
|
+
overflow-x: auto;
|
|
127
|
+
padding: 1rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
pre code {
|
|
131
|
+
background: transparent;
|
|
132
|
+
border: 0;
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
hr {
|
|
137
|
+
border: 0;
|
|
138
|
+
border-top: 1px solid var(--gessi-line);
|
|
139
|
+
margin: 2.5rem 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
img,
|
|
143
|
+
svg,
|
|
144
|
+
video {
|
|
145
|
+
display: block;
|
|
146
|
+
height: auto;
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
table {
|
|
151
|
+
border-collapse: collapse;
|
|
152
|
+
font-family: var(--gessi-sans);
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
th,
|
|
157
|
+
td {
|
|
158
|
+
border-bottom: 1px solid var(--gessi-line);
|
|
159
|
+
padding: 0.65rem 0.5rem;
|
|
160
|
+
text-align: left;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
button,
|
|
164
|
+
input,
|
|
165
|
+
select,
|
|
166
|
+
textarea {
|
|
167
|
+
font: inherit;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
button,
|
|
171
|
+
input[type="button"],
|
|
172
|
+
input[type="submit"] {
|
|
173
|
+
background: var(--gessi-accent);
|
|
174
|
+
border: 0;
|
|
175
|
+
border-radius: var(--gessi-radius);
|
|
176
|
+
color: white;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
font-family: var(--gessi-sans);
|
|
179
|
+
font-weight: 700;
|
|
180
|
+
padding: 0.65rem 0.9rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
input:not([type]),
|
|
184
|
+
input[type="email"],
|
|
185
|
+
input[type="search"],
|
|
186
|
+
input[type="text"],
|
|
187
|
+
textarea {
|
|
188
|
+
background: var(--gessi-surface);
|
|
189
|
+
border: 1px solid var(--gessi-line);
|
|
190
|
+
border-radius: var(--gessi-radius);
|
|
191
|
+
color: inherit;
|
|
192
|
+
display: block;
|
|
193
|
+
padding: 0.6rem 0.7rem;
|
|
194
|
+
width: 100%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
::selection {
|
|
198
|
+
background: var(--gessi-accent);
|
|
199
|
+
color: white;
|
|
200
|
+
}
|
|
201
|
+
|