@guillaumemmm/marquedefabrique 1.0.6 → 2.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/build/kit.js DELETED
@@ -1,326 +0,0 @@
1
- // Generated on Sat Aug 09 2025 from v1.0.5
2
-
3
- export const kit = `/* TITLES */
4
- .mdf-title1,
5
- .mdf-title2,
6
- .mdf-title3,
7
- .mdf-title4 {
8
- font-weight: 700;
9
- }
10
- .mdf-title1 {
11
- font-size: 3rem;
12
- }
13
-
14
- .mdf-title2 {
15
- font-size: 2.4rem;
16
- }
17
-
18
- .mdf-title3 {
19
- font-size: 1.7rem;
20
- }
21
-
22
- .mdf-title4 {
23
- font-size: 1.2rem;
24
- }
25
-
26
- /* TEXT */
27
- .mdf-emphasis {
28
- font-weight: 700;
29
- }
30
-
31
- .mdf-italic {
32
- font-style: italic;
33
- }
34
-
35
- .mdf-highlighted {
36
- font-weight: 700;
37
- color: var(--mdf-color-primary);
38
- }
39
-
40
- .mdf-muted {
41
- color: var(--mdf-color-text-muted);
42
- }
43
-
44
- .mdf-block {
45
- padding: 1rem;
46
- background-color: var(--mdf-color-secondary-transparent);
47
- border-radius: 3px;
48
- border: 2px solid var(--mdf-color-secondary-transparent-2);
49
-
50
- &.mdf-block-info {
51
- background-color: var(--mdf-color-info-transparent);
52
- border-color: var(--mdf-color-info);
53
- }
54
-
55
- &.mdf-block-error {
56
- background-color: var(--mdf-color-error-transparent);
57
- border-color: var(--mdf-color-error);
58
- }
59
-
60
- &.mdf-block-success {
61
- background-color: var(--mdf-color-success-transparent);
62
- border-color: var(--mdf-color-success);
63
- }
64
- }
65
-
66
- /* CTA */
67
- .mdf-link {
68
- color: var(--mdf-color-primary);
69
- background-color: var(--mdf-color-primary-transparent);
70
- padding: 1px 2px;
71
- border-radius: 3px;
72
- text-underline-offset: 2px;
73
- text-decoration-color: hsl(from var(--mdf-color-primary) h s calc(l + 10));
74
-
75
- &:hover {
76
- background-color: var(--mdf-color-primary-transparent-2);
77
- }
78
-
79
- &:visited {
80
- color: var(--mdf-color-secondary);
81
- background-color: var(--mdf-color-primary-transparent);
82
- text-decoration-color: hsl(
83
- from var(--mdf-color-secondary) h s calc(l + 10)
84
- );
85
- }
86
- }
87
-
88
- .mdf-link:focus-visible,
89
- .mdf-button:focus-visible {
90
- outline: 2px solid var(--mdf-color-primary);
91
- outline-offset: 3px;
92
- }
93
-
94
- .mdf-button {
95
- border: none;
96
- background: none;
97
- cursor: pointer;
98
- display: flex;
99
- align-items: center;
100
- padding: 0.5rem 1.5rem;
101
- line-height: 1.5rem;
102
- background-color: var(--mdf-color-primary-light);
103
- color: white;
104
- text-decoration: none;
105
- border-radius: 3px;
106
- border: 2px solid var(--mdf-color-primary-light);
107
- font-size: 1rem;
108
-
109
- &:hover {
110
- background-color: var(--mdf-color-primary);
111
- }
112
-
113
- &.mdf-button-secondary {
114
- background-color: var(--mdf-color-secondary-light);
115
- border-color: var(--mdf-color-secondary-light);
116
-
117
- &:hover {
118
- background-color: var(--mdf-color-secondary);
119
- }
120
- }
121
-
122
- &.mdf-button-tertiary {
123
- background-color: var(--mdf-color-tertiary-light);
124
- border-color: var(--mdf-color-tertiary-light);
125
-
126
- &:hover {
127
- background-color: var(--mdf-color-tertiary);
128
- }
129
- }
130
- }
131
-
132
- /* FORM */
133
- .mdf-input:focus-visible,
134
- .mdf-textarea:focus-visible,
135
- .mdf-color:focus-visible,
136
- .mdf-select:focus-visible {
137
- outline: 2px solid var(--mdf-color-primary);
138
- outline-offset: 3px;
139
- }
140
-
141
- .mdf-select-control {
142
- display: inline-flex;
143
- flex-direction: column;
144
- }
145
-
146
- .mdf-select {
147
- display: block;
148
- cursor: pointer;
149
- padding: 0.375rem 2.25rem 0.375rem 0.75rem;
150
- line-height: 1.5rem;
151
- background-color: var(--mdf-color-primary-transparent);
152
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");
153
- background-repeat: no-repeat;
154
- background-position: right 0.75rem center;
155
- background-size: 16px 12px;
156
- border: 2px solid var(--mdf-color-primary);
157
- border-radius: 0.25rem;
158
- -webkit-appearance: none;
159
- -moz-appearance: none;
160
- appearance: none;
161
- font-size: 1rem;
162
- color: black;
163
- width: 250px;
164
-
165
- &:hover,
166
- &:focus {
167
- background-color: var(--mdf-color-primary-transparent-2);
168
- }
169
- }
170
-
171
- .mdf-select:hover {
172
- background-color: var(--mdf-color-primary-transparent-2);
173
- }
174
-
175
- .mdf-input-control,
176
- .mdf-textarea-control {
177
- display: inline-flex;
178
- flex-direction: column;
179
- }
180
-
181
- .mdf-input[type="text"],
182
- .mdf-input[type="search"],
183
- .mdf-input[type="password"],
184
- .mdf-textarea {
185
- border: 2px solid var(--mdf-color-primary);
186
- border-radius: 0.25rem;
187
- font-size: 16px;
188
- padding: 0.375rem 0.75rem;
189
- line-height: 1.5rem;
190
- background-color: var(--mdf-color-primary-transparent);
191
- width: 250px;
192
-
193
- &:hover,
194
- &:focus {
195
- background-color: var(--mdf-color-primary-transparent-2);
196
- }
197
- }
198
-
199
- .mdf-textarea {
200
- width: 320px;
201
- height: 150px;
202
- }
203
-
204
- .mdf-checkbox-control {
205
- font-size: 1rem;
206
- display: flex;
207
- align-items: center;
208
- gap: 0.5em;
209
- cursor: pointer;
210
- }
211
-
212
- .mdf-checkbox {
213
- -webkit-appearance: none;
214
- appearance: none;
215
- margin: 0;
216
- width: 1.4em;
217
- height: 1.4em;
218
- border: 0.15em solid var(--mdf-color-primary);
219
- border-radius: 0.25rem;
220
- padding: 0;
221
- cursor: pointer;
222
-
223
- display: grid;
224
- place-content: center;
225
-
226
- &:hover,
227
- &:focus {
228
- background-color: var(--mdf-color-primary-transparent-2);
229
- }
230
- }
231
-
232
- .mdf-checkbox::before {
233
- content: "";
234
- width: 0.8em;
235
- height: 0.8em;
236
- clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
237
- transform: scale(0);
238
- transform-origin: bottom left;
239
- box-shadow: inset 1em 1em var(--mdf-color-primary);
240
- background-color: CanvasText;
241
- }
242
-
243
- .mdf-checkbox:checked::before {
244
- transform: scale(1);
245
- }
246
-
247
- .mdf-checkbox:focus-visible {
248
- border: 2px solid var(--mdf-color-primary);
249
- outline: 2px solid var(--mdf-color-primary);
250
- outline-offset: 3px;
251
-
252
- &::before {
253
- box-shadow: inset 1em 1em var(--mdf-color-primary);
254
- }
255
- }
256
-
257
- .mdf-color-control {
258
- display: flex;
259
- flex-direction: column;
260
- width: 8rem;
261
- }
262
-
263
- .mdf-color-label {
264
- padding: 0.5rem;
265
- background-color: white;
266
- border-bottom-left-radius: 0.25rem;
267
- border-bottom-right-radius: 0.25rem;
268
- }
269
-
270
- .mdf-color {
271
- appearance: none;
272
- -moz-appearance: none;
273
- -webkit-appearance: none;
274
- background: none;
275
- border: 0;
276
- cursor: pointer;
277
- padding: 0;
278
- width: 100%;
279
- height: 4rem;
280
- position: relative;
281
- z-index: 0;
282
- border-bottom-left-radius: 0;
283
- border-bottom-right-radius: 0;
284
-
285
- &:focus {
286
- border-radius: 0.25rem;
287
- }
288
-
289
- &::-webkit-color-swatch {
290
- border-top-left-radius: 0.25rem;
291
- border-top-right-radius: 0.25rem;
292
- border-bottom-left-radius: 0;
293
- border-bottom-right-radius: 0;
294
- border: 2px solid black;
295
- }
296
-
297
- &::-webkit-color-swatch-wrapper {
298
- padding: 0;
299
- }
300
- }
301
-
302
- /* TABLES */
303
- .mdf-td,
304
- .mdf-th {
305
- padding: 0.5rem;
306
- border: 1px solid var(--mdf-color-secondary);
307
- }
308
-
309
- .mdf-th,
310
- :nth-child(even) > .mdf-td {
311
- background-color: var(--mdf-color-secondary-transparent);
312
- }
313
-
314
- /* UTILITIES */
315
- .visually-hidden {
316
- position: absolute !important;
317
- width: 1px !important;
318
- height: 1px !important;
319
- padding: 0 !important;
320
- margin: -1px !important;
321
- overflow: hidden !important;
322
- clip: rect(0, 0, 0, 0) !important;
323
- white-space: nowrap !important;
324
- border: 0 !important;
325
- }
326
- `;
@@ -1,33 +0,0 @@
1
- // Generated on Sat Aug 09 2025 from v1.0.5
2
-
3
- export const variables = `:root {
4
- --mdf-color-primary: #04675d;
5
- --mdf-color-primary-light: #048275;
6
- --mdf-color-primary-transparent: #bcecce3b;
7
- --mdf-color-primary-transparent-2: #bcecce7a;
8
-
9
- --mdf-color-secondary: #534534;
10
- --mdf-color-secondary-light: #806b53;
11
- --mdf-color-secondary-transparent: #b1a49527;
12
- --mdf-color-secondary-transparent-2: #b1a4957a;
13
-
14
- --mdf-color-tertiary: #482c68;
15
- --mdf-color-tertiary-light: #805bab;
16
- --mdf-color-tertiary-transparent: #7e6d9127;
17
- --mdf-color-tertiary-transparent-2: #7e6d917a;
18
-
19
- --mdf-color-error: #a43030;
20
- --mdf-color-error-transparent: #a4303027;
21
- --mdf-color-info: #167792;
22
- --mdf-color-info-transparent: #16779227;
23
- --mdf-color-success: #3c843f;
24
- --mdf-color-success-transparent: #3c843f27;
25
- --mdf-color-text-muted: #595959;
26
-
27
- --mdf-background-gradient: linear-gradient(
28
- 121deg,
29
- var(--mdf-color-secondary-transparent),
30
- var(--mdf-color-tertiary-transparent) 100%
31
- );
32
- }
33
- `;
package/index.css DELETED
@@ -1,3 +0,0 @@
1
- @import "./reset.css";
2
- @import "./variables.css";
3
- @import "./kit.css";
package/index.html DELETED
@@ -1,223 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta
7
- name="description"
8
- content="Minimalistic UI kit that includes a set of core styles and CSS
9
- variables centralizing design elements to maintain consistency across
10
- personal projects"
11
- />
12
- <title>Marque de fabrique</title>
13
- <link href="./styles.css" rel="stylesheet" />
14
- <link
15
- rel="icon"
16
- type="image/svg+xml"
17
- href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E🥞%3C/text%3E%3C/svg%3E"
18
- />
19
- </head>
20
- <body>
21
- <main>
22
- <div class="content">
23
- <h1 class="mdf-title1">Marque de fabrique</h1>
24
- <p class="mdf-block" lang="en">
25
- <span class="mdf-emphasis" lang="fr">Marque de Fabrique</span> is a
26
- minimalistic UI kit. It includes a set of core styles and CSS
27
- variables centralizing design elements to maintain consistency across
28
- personal projects. The code for the kit is
29
- <a
30
- class="mdf-link"
31
- href="https://github.com/GuillaumeMMM/marquedefabrique"
32
- >available here</a
33
- >.
34
- </p>
35
- <h2 class="mdf-title2">Marque de fabrique</h2>
36
- <h3 class="mdf-title3">Marque de fabrique</h3>
37
- <h3 class="mdf-title4">Marque de fabrique</h3>
38
- <p>Marque de fabrique</p>
39
- <p>Marque de <span class="mdf-highlighted">fabrique</span></p>
40
- <div><em class="mdf-emphasis">Marque de fabrique</em></div>
41
- <div><i class="mdf-italic">Marque de fabrique</i></div>
42
- <div><em class="mdf-muted">Marque de fabrique</em></div>
43
- <div><a class="mdf-link" href="#">Marque de fabrique</a></div>
44
- <p>
45
- Une <span class="mdf-highlighted">manufacture</span> (du latin
46
- <span class="mdf-italic">manufactura</span>, « fait à la main ») est
47
- un lieu de fabrication dans lequel des produits sont à l'origine
48
- fabriqués à la main par des ouvriers et qui sert à désigner
49
- aujourd'hui une entreprise dans laquelle les biens sont produits
50
- directement ou indirectement (robotisation) par l'homme. Le terme est
51
- aujourd'hui particulièrement utilisé dans l'industrie horlogère pour
52
- désigner les entreprises, à l'image des marques des groupes Rolex,
53
- Seiko, Swatch et Citizen ou encore de la division horlogerie de
54
- Cartier, qui fabriquent elles-mêmes leurs propres mouvements, afin de
55
- les différencier de celles qui sous-traitent partiellement ou
56
- intégralement cette fabrication.
57
- </p>
58
- <div>
59
- <a class="mdf-link" href="#" target="_blank"
60
- >Marque de fabrique
61
- <svg
62
- width="0.8rem"
63
- height="0.8rem"
64
- viewBox="0 0 20 20"
65
- xmlns="http://www.w3.org/2000/svg"
66
- fill="none"
67
- aria-label="New tab"
68
- >
69
- <path
70
- stroke="currentColor"
71
- stroke-linecap="round"
72
- stroke-linejoin="round"
73
- stroke-width="2"
74
- d="M4.343 15.657L15.657 4.343m0 0v9.9m0-9.9h-9.9"
75
- />
76
- </svg>
77
- </a>
78
- </div>
79
- <div>
80
- <a
81
- class="mdf-link"
82
- href="https://github.com/GuillaumeMMM/marquedefabrique"
83
- >Marque de fabrique <span lang="en">on github</span>
84
- <svg
85
- width="1rem"
86
- height="1rem"
87
- xmlns="http://www.w3.org/2000/svg"
88
- viewbox="0 0 100 100"
89
- aria-hidden="true"
90
- >
91
- <path
92
- fill-rule="evenodd"
93
- clip-rule="evenodd"
94
- d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
95
- fill="#24292f"
96
- />
97
- </svg>
98
- </a>
99
- </div>
100
- <div>
101
- <button class="mdf-button" type="button">Marque de fabrique</button>
102
- </div>
103
- <div>
104
- <button class="mdf-button mdf-button-secondary" type="button">
105
- Marque de fabrique
106
- </button>
107
- </div>
108
- <div>
109
- <button class="mdf-button mdf-button-tertiary" type="button">
110
- Marque de fabrique
111
- </button>
112
- </div>
113
- <div>
114
- <label class="mdf-input-control" for="text-input">
115
- Marque de fabrique
116
- <input type="text" class="mdf-input" id="text-input" />
117
- </label>
118
- </div>
119
- <div>
120
- <label for="textinput" class="mdf-textarea-control">
121
- Marque de fabrique
122
- <textarea
123
- type="text"
124
- class="mdf-textarea"
125
- id="textinput"
126
- ></textarea>
127
- </label>
128
- </div>
129
- <div>
130
- <label class="mdf-select-control" for="select">
131
- Marque de fabrique
132
- <select class="mdf-select" id="select">
133
- <option>Marque de fabrique 1</option>
134
- <option>Marque de fabrique 2</option>
135
- <option>Marque de fabrique 3</option>
136
- </select>
137
- </label>
138
- </div>
139
- <div>
140
- <label for="checkbox" class="mdf-checkbox-control">
141
- <input type="checkbox" id="checkbox" class="mdf-checkbox" />
142
- Marque de fabrique</label
143
- >
144
- </div>
145
- <div>
146
- <label for="color" class="mdf-color-control">
147
- <input type="color" id="color" class="mdf-color" value="#048275" />
148
- <span class="mdf-color-label">Marque de fabrique</span>
149
- </label>
150
- </div>
151
- <div class="colors">
152
- <div
153
- class="color"
154
- style="background-color: var(--mdf-color-primary)"
155
- ></div>
156
- <div
157
- class="color"
158
- style="background-color: var(--mdf-color-primary-light)"
159
- ></div>
160
- <div
161
- class="color"
162
- style="background-color: var(--mdf-color-primary-transparent)"
163
- ></div>
164
- <div
165
- class="color"
166
- style="background-color: var(--mdf-color-primary-transparent-2)"
167
- ></div>
168
- <div
169
- class="color"
170
- style="background-color: var(--mdf-color-secondary)"
171
- ></div>
172
- <div
173
- class="color"
174
- style="background-color: var(--mdf-color-secondary-light)"
175
- ></div>
176
- <div
177
- class="color"
178
- style="background-color: var(--mdf-color-secondary-transparent)"
179
- ></div>
180
- <div
181
- class="color"
182
- style="background-color: var(--mdf-color-secondary-transparent-2)"
183
- ></div>
184
- <div
185
- class="color"
186
- style="background-color: var(--mdf-color-tertiary)"
187
- ></div>
188
- <div
189
- class="color"
190
- style="background-color: var(--mdf-color-tertiary-light)"
191
- ></div>
192
- <div
193
- class="color"
194
- style="background-color: var(--mdf-color-tertiary-transparent)"
195
- ></div>
196
- <div
197
- class="color"
198
- style="background-color: var(--mdf-color-tertiary-transparent-2)"
199
- ></div>
200
- <div
201
- class="color"
202
- style="background-color: var(--mdf-color-error)"
203
- ></div>
204
- <div
205
- class="color"
206
- style="background-color: var(--mdf-color-info)"
207
- ></div>
208
- <div
209
- class="color"
210
- style="background-color: var(--mdf-color-success)"
211
- ></div>
212
- </div>
213
- <p class="mdf-block">Marque de fabrique</p>
214
- <p class="mdf-block mdf-block-info">Marque de fabrique</p>
215
- <p class="mdf-block mdf-block-success">Marque de fabrique</p>
216
- <p class="mdf-block mdf-block-error">Marque de fabrique</p>
217
- </div>
218
- </main>
219
- <footer class="footer">
220
- <p>v1.0.5</p>
221
- </footer>
222
- </body>
223
- </html>
package/index.js DELETED
@@ -1,20 +0,0 @@
1
- const fs = require("fs");
2
- const pjson = require("./package.json");
3
-
4
- const comment = `// Generated on ${new Date().toDateString()} from v${
5
- pjson.version
6
- }\n\n`;
7
-
8
- const kit = fs.readFileSync("./kit.css", "utf8");
9
- const variables = fs.readFileSync("./variables.css", "utf8");
10
- const reset = fs.readFileSync("./reset.css", "utf8");
11
-
12
- fs.writeFileSync("build/kit.js", `${comment}export const kit = \`${kit}\`;`);
13
- fs.writeFileSync(
14
- "build/variables.js",
15
- `${comment}export const variables = \`${variables}\`;`
16
- );
17
- fs.writeFileSync(
18
- "build/reset.js",
19
- `${comment}export const reset = \`${reset}\`;`
20
- );
File without changes
File without changes
File without changes