@guillaumemmm/marquedefabrique 1.0.5 → 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/.prettierrc +1 -0
- package/README.md +16 -0
- package/{variables.css → dist/css/variables.css} +2 -2
- package/dist/js/kit.js +6 -0
- package/examples/index.html +397 -0
- package/{styles.css → examples/styles.css} +15 -8
- package/package.json +9 -3
- package/src/index.js +5 -0
- package/src/kit.css +457 -0
- package/{build/reset.js → src/reset.css} +1 -4
- package/src/variables.css +68 -0
- package/vite.config.js +25 -0
- package/.vscode/settings.json +0 -5
- package/build/kit.js +0 -326
- package/build/variables.js +0 -33
- package/index.css +0 -3
- package/index.html +0 -223
- package/index.js +0 -20
- /package/{kit.css → dist/css/kit.css} +0 -0
- /package/{reset.css → dist/css/reset.css} +0 -0
package/.prettierrc
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/README.md
CHANGED
|
@@ -3,3 +3,19 @@
|
|
|
3
3
|
Marque de Fabrique is a minimalistic UI kit. It includes a set of core styles and CSS variables centralizing design elements to maintain consistency across my projects.
|
|
4
4
|
|
|
5
5
|
A demo for the use of the styles is [available here](https://guillaume-marquedefabrique.web.val.run/).
|
|
6
|
+
|
|
7
|
+
## Building & Testing
|
|
8
|
+
|
|
9
|
+
To build a new version:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
npm install
|
|
13
|
+
npm run build
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
To run the local examples:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
npm install
|
|
20
|
+
npm run dev
|
|
21
|
+
```
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
--mdf-color-tertiary: #482c68;
|
|
13
13
|
--mdf-color-tertiary-light: #805bab;
|
|
14
|
-
--mdf-color-tertiary-transparent: #
|
|
15
|
-
--mdf-color-tertiary-transparent-2: #
|
|
14
|
+
--mdf-color-tertiary-transparent: #7e6d9127;
|
|
15
|
+
--mdf-color-tertiary-transparent-2: #7e6d917a;
|
|
16
16
|
|
|
17
17
|
--mdf-color-error: #a43030;
|
|
18
18
|
--mdf-color-error-transparent: #a4303027;
|
package/dist/js/kit.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const r = `.mdf-title1,.mdf-title2,.mdf-title3,.mdf-title4{font-weight:700}.mdf-title1{font-size:3rem}.mdf-title2{font-size:2.4rem}.mdf-title3{font-size:1.7rem}.mdf-title4{font-size:1.2rem}.mdf-emphasis{font-weight:700}.mdf-italic{font-style:italic}.mdf-highlighted{font-weight:700;color:var(--mdf-color-primary)}.mdf-muted{color:var(--mdf-color-text-muted)}.mdf-block{padding:1rem;background-color:var(--mdf-color-secondary-transparent);border-radius:3px;border:2px solid var(--mdf-color-secondary-transparent-2)}.mdf-block.mdf-block-info{background-color:var(--mdf-color-info-transparent);border-color:var(--mdf-color-info)}.mdf-block.mdf-block-error{background-color:var(--mdf-color-error-transparent);border-color:var(--mdf-color-error)}.mdf-block.mdf-block-success{background-color:var(--mdf-color-success-transparent);border-color:var(--mdf-color-success)}.mdf-link{color:var(--mdf-color-primary);background-color:var(--mdf-color-primary-transparent);padding:1px 2px;border-radius:3px;text-underline-offset:2px;text-decoration-color:hsl(from var(--mdf-color-primary) h s calc(l + 10))}.mdf-link:hover{background-color:var(--mdf-color-primary-transparent-2)}.mdf-link:visited{color:var(--mdf-color-secondary);background-color:var(--mdf-color-primary-transparent);text-decoration-color:hsl(from var(--mdf-color-secondary) h s calc(l + 10))}.mdf-link:focus-visible,.mdf-button:focus-visible{outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-button{border:none;background:none;cursor:pointer;display:flex;align-items:center;padding:.5rem 1.5rem;line-height:1.5rem;background-color:var(--mdf-color-primary-light);color:#fff;text-decoration:none;border-radius:3px;border:2px solid var(--mdf-color-primary-light);font-size:1rem}.mdf-button:hover{background-color:var(--mdf-color-primary)}.mdf-button.mdf-button-secondary{background-color:var(--mdf-color-secondary-light);border-color:var(--mdf-color-secondary-light)}.mdf-button.mdf-button-secondary:hover{background-color:var(--mdf-color-secondary)}.mdf-button.mdf-button-tertiary{background-color:var(--mdf-color-tertiary-light);border-color:var(--mdf-color-tertiary-light)}.mdf-button.mdf-button-tertiary:hover{background-color:var(--mdf-color-tertiary)}.mdf-input:focus-visible,.mdf-textarea:focus-visible,.mdf-color:focus-visible,.mdf-select:focus-visible{outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-select-control{display:inline-flex;flex-direction:column}.mdf-select{display:block;cursor:pointer;padding:.375rem 2.25rem .375rem .75rem;line-height:1.5rem;background-color:var(--mdf-color-primary-transparent);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>");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:2px solid var(--mdf-color-primary);border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:1rem;color:#000;width:250px}.mdf-select:hover,.mdf-select:focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-select:hover{background-color:var(--mdf-color-primary-transparent-2)}.mdf-input-control,.mdf-textarea-control{display:inline-flex;flex-direction:column}.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea{border:2px solid var(--mdf-color-primary);border-radius:.25rem;font-size:16px;padding:.375rem .75rem;line-height:1.5rem;background-color:var(--mdf-color-primary-transparent);width:250px}:is(.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea):hover,:is(.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea):focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-textarea{width:320px;height:150px}.mdf-checkbox-control{font-size:1rem;display:flex;align-items:center;gap:.5em;cursor:pointer}.mdf-checkbox{-webkit-appearance:none;appearance:none;margin:0;width:1.4em;height:1.4em;border:.15em solid var(--mdf-color-primary);border-radius:.25rem;padding:0;cursor:pointer;display:grid;place-content:center}.mdf-checkbox:hover,.mdf-checkbox:focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-checkbox:before{content:"";width:.8em;height:.8em;clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);transform:scale(0);transform-origin:bottom left;box-shadow:inset 1em 1em var(--mdf-color-primary);background-color:CanvasText}.mdf-checkbox:checked:before{transform:scale(1)}.mdf-checkbox:focus-visible{border:2px solid var(--mdf-color-primary);outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-checkbox:focus-visible:before{box-shadow:inset 1em 1em var(--mdf-color-primary)}.mdf-color-control{display:flex;flex-direction:column;width:8rem}.mdf-color-label{padding:.5rem;background-color:#fff;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.mdf-color{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;padding:0;width:100%;height:4rem;position:relative;z-index:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.mdf-color:focus{border-radius:.25rem}.mdf-color::-webkit-color-swatch{border-top-left-radius:.25rem;border-top-right-radius:.25rem;border-bottom-left-radius:0;border-bottom-right-radius:0;border:2px solid black}.mdf-color::-webkit-color-swatch-wrapper{padding:0}.mdf-td,.mdf-th{padding:.5rem;border:1px solid var(--mdf-color-secondary)}.mdf-th,:nth-child(2n)>.mdf-td{background-color:var(--mdf-color-secondary-transparent)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}`, o = ":root{--mdf-color-primary: #04675d;--mdf-color-primary-light: #048275;--mdf-color-primary-transparent: #bcecce3b;--mdf-color-primary-transparent-2: #bcecce7a;--mdf-color-secondary: #534534;--mdf-color-secondary-light: #806b53;--mdf-color-secondary-transparent: #b1a49527;--mdf-color-secondary-transparent-2: #b1a4957a;--mdf-color-tertiary: #482c68;--mdf-color-tertiary-light: #805bab;--mdf-color-tertiary-transparent: #7e6d9127;--mdf-color-tertiary-transparent-2: #7e6d917a;--mdf-color-error: #a43030;--mdf-color-error-transparent: #a4303027;--mdf-color-info: #167792;--mdf-color-info-transparent: #16779227;--mdf-color-success: #3c843f;--mdf-color-success-transparent: #3c843f27;--mdf-color-text-muted: #595959;--mdf-background-gradient: linear-gradient( 121deg, var(--mdf-color-secondary-transparent), var(--mdf-color-tertiary-transparent) 100% )}", e = '@layer reset{*{box-sizing:border-box}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}}';
|
|
2
|
+
export {
|
|
3
|
+
r as kitCss,
|
|
4
|
+
e as resetCss,
|
|
5
|
+
o as variablesCss
|
|
6
|
+
};
|
|
@@ -0,0 +1,397 @@
|
|
|
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 rel="preconnect" href="https://fonts.googleapis.com" />
|
|
15
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
16
|
+
<link
|
|
17
|
+
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
|
|
18
|
+
rel="stylesheet"
|
|
19
|
+
/>
|
|
20
|
+
<link
|
|
21
|
+
rel="icon"
|
|
22
|
+
type="image/svg+xml"
|
|
23
|
+
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"
|
|
24
|
+
/>
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
<main>
|
|
28
|
+
<div class="content">
|
|
29
|
+
<h1 class="mdf-title1">Marque de fabrique</h1>
|
|
30
|
+
|
|
31
|
+
<p class="mdf-block" lang="en">
|
|
32
|
+
<span class="mdf-emphasis" lang="fr">Marque de Fabrique</span> is a
|
|
33
|
+
minimalistic UI kit. It includes a set of core styles and CSS
|
|
34
|
+
variables centralizing design elements to maintain consistency across
|
|
35
|
+
personal projects. The code for the kit is
|
|
36
|
+
<a
|
|
37
|
+
class="mdf-link"
|
|
38
|
+
href="https://github.com/GuillaumeMMM/marquedefabrique"
|
|
39
|
+
>available here</a
|
|
40
|
+
>.
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
<!-- TYPO -->
|
|
44
|
+
<div class="block">
|
|
45
|
+
<h2 class="mdf-title2">Typography</h2>
|
|
46
|
+
|
|
47
|
+
<h3 class="mdf-title3">Marque de fabrique title 3</h3>
|
|
48
|
+
<h4 class="mdf-title4">Marque de fabrique title 4</h4>
|
|
49
|
+
<p>Marque de fabrique</p>
|
|
50
|
+
<p>
|
|
51
|
+
Marque de <span class="mdf-highlighted">fabrique highlighted</span>
|
|
52
|
+
</p>
|
|
53
|
+
<p>
|
|
54
|
+
Marque de
|
|
55
|
+
<span class="mdf-highlighted mdf-highlighted-secondary"
|
|
56
|
+
>fabrique highlighted secondary</span
|
|
57
|
+
>
|
|
58
|
+
</p>
|
|
59
|
+
<div><em class="mdf-emphasis">Marque de fabrique emphasis</em></div>
|
|
60
|
+
<div><i class="mdf-italic">Marque de fabrique italic</i></div>
|
|
61
|
+
<div><em class="mdf-muted">Marque de fabrique muted</em></div>
|
|
62
|
+
<p>
|
|
63
|
+
Une <span class="mdf-highlighted">manufacture</span> (du latin
|
|
64
|
+
<span class="mdf-italic">manufactura</span>, « fait à la main ») est
|
|
65
|
+
un lieu de fabrication dans lequel des produits sont à l'origine
|
|
66
|
+
fabriqués à la main par des ouvriers et qui sert à désigner
|
|
67
|
+
aujourd'hui une entreprise dans laquelle les biens sont produits
|
|
68
|
+
directement ou indirectement (robotisation) par l'homme. Le terme
|
|
69
|
+
est aujourd'hui particulièrement utilisé dans l'industrie horlogère
|
|
70
|
+
pour désigner les entreprises, à l'image des marques des groupes
|
|
71
|
+
Rolex, Seiko, Swatch et Citizen ou encore de la division horlogerie
|
|
72
|
+
de Cartier, qui fabriquent elles-mêmes leurs propres mouvements,
|
|
73
|
+
afin de les différencier de celles qui sous-traitent partiellement
|
|
74
|
+
ou intégralement cette fabrication.
|
|
75
|
+
</p>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<!-- BADGE -->
|
|
79
|
+
<div class="block">
|
|
80
|
+
<h2 class="mdf-title2">Badge</h2>
|
|
81
|
+
<div>
|
|
82
|
+
<span class="mdf-badge">Marque de fabrique</span> <span
|
|
83
|
+
class="mdf-badge"
|
|
84
|
+
>HTML</span
|
|
85
|
+
> <span class="mdf-badge">manufacture</span>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<!-- LINK -->
|
|
90
|
+
<div class="block">
|
|
91
|
+
<h2 class="mdf-title2">Link</h2>
|
|
92
|
+
<div><a class="mdf-link" href="#">Marque de fabrique link</a></div>
|
|
93
|
+
<div>
|
|
94
|
+
<a class="mdf-link" href="#" target="_blank"
|
|
95
|
+
>Marque de fabrique
|
|
96
|
+
<svg
|
|
97
|
+
width="0.8rem"
|
|
98
|
+
height="0.8rem"
|
|
99
|
+
viewBox="0 0 20 20"
|
|
100
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
101
|
+
fill="none"
|
|
102
|
+
aria-label="New tab"
|
|
103
|
+
>
|
|
104
|
+
<path
|
|
105
|
+
stroke="currentColor"
|
|
106
|
+
stroke-linecap="round"
|
|
107
|
+
stroke-linejoin="round"
|
|
108
|
+
stroke-width="2"
|
|
109
|
+
d="M4.343 15.657L15.657 4.343m0 0v9.9m0-9.9h-9.9"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
</a>
|
|
113
|
+
</div>
|
|
114
|
+
<div>
|
|
115
|
+
<a
|
|
116
|
+
class="mdf-link"
|
|
117
|
+
href="https://github.com/GuillaumeMMM/marquedefabrique"
|
|
118
|
+
>Marque de fabrique <span lang="en">on github</span>
|
|
119
|
+
<svg
|
|
120
|
+
width="1rem"
|
|
121
|
+
height="1rem"
|
|
122
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
123
|
+
viewbox="0 0 100 100"
|
|
124
|
+
aria-hidden="true"
|
|
125
|
+
>
|
|
126
|
+
<path
|
|
127
|
+
fill-rule="evenodd"
|
|
128
|
+
clip-rule="evenodd"
|
|
129
|
+
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"
|
|
130
|
+
fill="#24292f"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
</a>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<!-- BUTTON -->
|
|
138
|
+
<div class="block">
|
|
139
|
+
<h2 class="mdf-title2">Button</h2>
|
|
140
|
+
<div>
|
|
141
|
+
<div class="mdf-button-container">
|
|
142
|
+
<button class="mdf-button" type="button">
|
|
143
|
+
<span class="mdf-button-content">Marque de fabrique</span>
|
|
144
|
+
</button>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<!-- FORM -->
|
|
150
|
+
<div class="block">
|
|
151
|
+
<h2 class="mdf-title2">Form</h2>
|
|
152
|
+
<label for="text-input" class="mdf-input">
|
|
153
|
+
<div class="mdf-input-label">Marque de fabrique text input</div>
|
|
154
|
+
<input type="text" class="mdf-input-field" id="text-input" />
|
|
155
|
+
</label>
|
|
156
|
+
|
|
157
|
+
<label for="textarea" class="mdf-textarea">
|
|
158
|
+
<div class="mdf-textarea-label">Marque de fabrique textarea</div>
|
|
159
|
+
<textarea
|
|
160
|
+
type="text"
|
|
161
|
+
class="mdf-textarea-field"
|
|
162
|
+
id="textarea"
|
|
163
|
+
></textarea>
|
|
164
|
+
</label>
|
|
165
|
+
|
|
166
|
+
<label for="select" class="mdf-select">
|
|
167
|
+
<div class="mdf-select-label">Marque de fabrique select</div>
|
|
168
|
+
<select class="mdf-select-field" id="select">
|
|
169
|
+
<option>Marque de fabrique 1</option>
|
|
170
|
+
<option>Marque de fabrique 2</option>
|
|
171
|
+
<option>Marque de fabrique 3</option>
|
|
172
|
+
</select>
|
|
173
|
+
</label>
|
|
174
|
+
|
|
175
|
+
<label for="checkbox" class="mdf-checkbox">
|
|
176
|
+
<input type="checkbox" id="checkbox" class="mdf-checkbox-field" />
|
|
177
|
+
<div class="mdf-checkbox-label">
|
|
178
|
+
Marque de fabrique checkbox
|
|
179
|
+
</div></label
|
|
180
|
+
>
|
|
181
|
+
|
|
182
|
+
<div style="max-width: 200px">
|
|
183
|
+
<label for="color" class="mdf-color">
|
|
184
|
+
<input
|
|
185
|
+
type="color"
|
|
186
|
+
id="color"
|
|
187
|
+
class="mdf-color-field"
|
|
188
|
+
value="#0063c0"
|
|
189
|
+
/>
|
|
190
|
+
<span class="mdf-color-label"
|
|
191
|
+
>Marque de fabrique color input</span
|
|
192
|
+
>
|
|
193
|
+
</label>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<!-- BLOCKS -->
|
|
198
|
+
<div class="block">
|
|
199
|
+
<h2 class="mdf-title2">Block</h2>
|
|
200
|
+
|
|
201
|
+
<p class="mdf-block">Marque de fabrique default</p>
|
|
202
|
+
<p class="mdf-block mdf-block-brand-primary">
|
|
203
|
+
Marque de fabrique brand primary
|
|
204
|
+
</p>
|
|
205
|
+
<p class="mdf-block mdf-block-brand-secondary">
|
|
206
|
+
Marque de fabrique brand secondary
|
|
207
|
+
</p>
|
|
208
|
+
<p class="mdf-block mdf-block-success">Marque de fabrique success</p>
|
|
209
|
+
<p class="mdf-block mdf-block-warning">Marque de fabrique warning</p>
|
|
210
|
+
<p class="mdf-block mdf-block-error">Marque de fabrique error</p>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<!-- TABLE -->
|
|
214
|
+
<div class="block">
|
|
215
|
+
<h2 class="mdf-title2">Table</h2>
|
|
216
|
+
|
|
217
|
+
<table class="mdf-table">
|
|
218
|
+
<thead>
|
|
219
|
+
<tr>
|
|
220
|
+
<th class="mdf-th">Column 1</th>
|
|
221
|
+
<th class="mdf-th">Column 2</th>
|
|
222
|
+
<th class="mdf-th">Column 3</th>
|
|
223
|
+
</tr>
|
|
224
|
+
</thead>
|
|
225
|
+
<tbody>
|
|
226
|
+
<tr>
|
|
227
|
+
<td class="mdf-td">Value 1 1</td>
|
|
228
|
+
<td class="mdf-td">Value 1 2</td>
|
|
229
|
+
<td class="mdf-td">Value 1 3</td>
|
|
230
|
+
</tr>
|
|
231
|
+
<tr>
|
|
232
|
+
<td class="mdf-td">Value 2 1</td>
|
|
233
|
+
<td class="mdf-td">Value 2 2</td>
|
|
234
|
+
<td class="mdf-td">Value 2 3</td>
|
|
235
|
+
</tr>
|
|
236
|
+
</tbody>
|
|
237
|
+
</table>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<!-- CODE -->
|
|
241
|
+
<div class="block">
|
|
242
|
+
<h2 class="mdf-title2">Code</h2>
|
|
243
|
+
<p lang="en">
|
|
244
|
+
The <span class="mdf-code-inline">for...of</span> statement executes
|
|
245
|
+
a loop that operates on a sequence of values sourced from an
|
|
246
|
+
iterable object. Iterable objects include instances of built-ins
|
|
247
|
+
such as <span class="mdf-code-inline">Array</span>,
|
|
248
|
+
<span class="mdf-code-inline">String</span>,
|
|
249
|
+
<span class="mdf-code-inline">TypedArray</span>,
|
|
250
|
+
<span class="mdf-code-inline">Map</span>,
|
|
251
|
+
<span class="mdf-code-inline">Set</span>,
|
|
252
|
+
<span class="mdf-code-inline">NodeList</span> (and other DOM
|
|
253
|
+
collections).
|
|
254
|
+
</p>
|
|
255
|
+
|
|
256
|
+
<div>
|
|
257
|
+
<pre class="mdf-code-block"><code>function* idMaker() {
|
|
258
|
+
let index = 0;
|
|
259
|
+
while (true) {
|
|
260
|
+
yield index++;
|
|
261
|
+
}
|
|
262
|
+
}</code></pre>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<!-- QUOTES -->
|
|
267
|
+
<div class="block">
|
|
268
|
+
<h2 class="mdf-title2">Quote</h2>
|
|
269
|
+
<div class="mdf-quote">
|
|
270
|
+
<blockquote
|
|
271
|
+
cite="https://shs.cairn.info/contre-histoire-dinternet--9782748905274?lang=fr"
|
|
272
|
+
>
|
|
273
|
+
"Le contrôle de l’espace public – notamment médiatique – s’appuie
|
|
274
|
+
sur des stratégies multiséculaires sans cesse renouvelées : de la
|
|
275
|
+
naissance de l’imprimerie à Internet, les stratégies de censure,
|
|
276
|
+
de surveillance et de propagande ont été transformées pour
|
|
277
|
+
parvenir à domestiquer toute contestation."
|
|
278
|
+
</blockquote>
|
|
279
|
+
<p class="mdf-quote-source">
|
|
280
|
+
Contre-histoire d’Internet du XVe siècle à nos jours
|
|
281
|
+
</p>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<!-- COLORS -->
|
|
286
|
+
<div class="block">
|
|
287
|
+
<h2 class="mdf-title2">Color</h2>
|
|
288
|
+
<div class="colors">
|
|
289
|
+
<div
|
|
290
|
+
class="color"
|
|
291
|
+
style="background-color: var(--mdf-color-grey-100)"
|
|
292
|
+
></div>
|
|
293
|
+
<div
|
|
294
|
+
class="color"
|
|
295
|
+
style="background-color: var(--mdf-color-grey-200)"
|
|
296
|
+
></div>
|
|
297
|
+
<div
|
|
298
|
+
class="color"
|
|
299
|
+
style="background-color: var(--mdf-color-grey-300)"
|
|
300
|
+
></div>
|
|
301
|
+
<div
|
|
302
|
+
class="color"
|
|
303
|
+
style="background-color: var(--mdf-color-grey-400)"
|
|
304
|
+
></div>
|
|
305
|
+
<div
|
|
306
|
+
class="color"
|
|
307
|
+
style="background-color: var(--mdf-color-grey-500)"
|
|
308
|
+
></div>
|
|
309
|
+
<div
|
|
310
|
+
class="color"
|
|
311
|
+
style="background-color: var(--mdf-color-grey-600)"
|
|
312
|
+
></div>
|
|
313
|
+
<div
|
|
314
|
+
class="color"
|
|
315
|
+
style="background-color: var(--mdf-color-grey-700)"
|
|
316
|
+
></div>
|
|
317
|
+
<div
|
|
318
|
+
class="color"
|
|
319
|
+
style="background-color: var(--mdf-color-grey-800)"
|
|
320
|
+
></div>
|
|
321
|
+
<div
|
|
322
|
+
class="color"
|
|
323
|
+
style="background-color: var(--mdf-color-grey-900)"
|
|
324
|
+
></div>
|
|
325
|
+
<div
|
|
326
|
+
class="color"
|
|
327
|
+
style="background-color: var(--mdf-color-grey-1000)"
|
|
328
|
+
></div>
|
|
329
|
+
<div
|
|
330
|
+
class="color"
|
|
331
|
+
style="background-color: var(--mdf-color-blue-100)"
|
|
332
|
+
></div>
|
|
333
|
+
<div
|
|
334
|
+
class="color"
|
|
335
|
+
style="background-color: var(--mdf-color-blue-500)"
|
|
336
|
+
></div>
|
|
337
|
+
<div
|
|
338
|
+
class="color"
|
|
339
|
+
style="background-color: var(--mdf-color-blue-900)"
|
|
340
|
+
></div>
|
|
341
|
+
<div
|
|
342
|
+
class="color"
|
|
343
|
+
style="background-color: var(--mdf-color-purple-100)"
|
|
344
|
+
></div>
|
|
345
|
+
<div
|
|
346
|
+
class="color"
|
|
347
|
+
style="background-color: var(--mdf-color-purple-500)"
|
|
348
|
+
></div>
|
|
349
|
+
<div
|
|
350
|
+
class="color"
|
|
351
|
+
style="background-color: var(--mdf-color-purple-900)"
|
|
352
|
+
></div>
|
|
353
|
+
<div
|
|
354
|
+
class="color"
|
|
355
|
+
style="background-color: var(--mdf-color-green-100)"
|
|
356
|
+
></div>
|
|
357
|
+
<div
|
|
358
|
+
class="color"
|
|
359
|
+
style="background-color: var(--mdf-color-green-500)"
|
|
360
|
+
></div>
|
|
361
|
+
<div
|
|
362
|
+
class="color"
|
|
363
|
+
style="background-color: var(--mdf-color-green-900)"
|
|
364
|
+
></div>
|
|
365
|
+
<div
|
|
366
|
+
class="color"
|
|
367
|
+
style="background-color: var(--mdf-color-red-100)"
|
|
368
|
+
></div>
|
|
369
|
+
<div
|
|
370
|
+
class="color"
|
|
371
|
+
style="background-color: var(--mdf-color-red-500)"
|
|
372
|
+
></div>
|
|
373
|
+
<div
|
|
374
|
+
class="color"
|
|
375
|
+
style="background-color: var(--mdf-color-red-900)"
|
|
376
|
+
></div>
|
|
377
|
+
<div
|
|
378
|
+
class="color"
|
|
379
|
+
style="background-color: var(--mdf-color-yellow-100)"
|
|
380
|
+
></div>
|
|
381
|
+
<div
|
|
382
|
+
class="color"
|
|
383
|
+
style="background-color: var(--mdf-color-yellow-500)"
|
|
384
|
+
></div>
|
|
385
|
+
<div
|
|
386
|
+
class="color"
|
|
387
|
+
style="background-color: var(--mdf-color-yellow-900)"
|
|
388
|
+
></div>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
</main>
|
|
393
|
+
<footer class="footer">
|
|
394
|
+
<p>v2.0.0</p>
|
|
395
|
+
</footer>
|
|
396
|
+
</body>
|
|
397
|
+
</html>
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
3
|
-
@import "
|
|
1
|
+
@import "../src/reset.css" layer(reset);
|
|
2
|
+
@import "../src/kit.css";
|
|
3
|
+
@import "../src/variables.css";
|
|
4
4
|
|
|
5
5
|
body {
|
|
6
|
-
font-family: "
|
|
7
|
-
font-
|
|
6
|
+
font-family: "Inter", sans-serif;
|
|
7
|
+
font-optical-sizing: auto;
|
|
8
|
+
font-weight: 400;
|
|
8
9
|
font-style: normal;
|
|
10
|
+
|
|
9
11
|
line-height: 1.5;
|
|
10
12
|
padding: 1rem;
|
|
11
13
|
min-height: 100vh;
|
|
12
|
-
background:
|
|
13
|
-
background: var(--mdf-background-gradient);
|
|
14
|
+
background-color: var(--mdf-color-background-primary);
|
|
14
15
|
|
|
15
16
|
main {
|
|
16
17
|
max-width: 900px;
|
|
@@ -20,6 +21,12 @@ body {
|
|
|
20
21
|
display: flex;
|
|
21
22
|
flex-direction: column;
|
|
22
23
|
gap: 1rem;
|
|
24
|
+
|
|
25
|
+
.block {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
}
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
.colors {
|
|
@@ -39,4 +46,4 @@ body {
|
|
|
39
46
|
margin-top: 2rem;
|
|
40
47
|
padding: 1rem;
|
|
41
48
|
}
|
|
42
|
-
}
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guillaumemmm/marquedefabrique",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Marque de Fabrique is a minimalistic UI kit. It includes a set of core styles and CSS variables centralizing design elements to maintain consistency across personal projects.",
|
|
5
5
|
"main": "index.css",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"
|
|
9
|
+
"dev": "cd examples && vite",
|
|
10
|
+
"build": "vite build"
|
|
9
11
|
},
|
|
10
12
|
"repository": {
|
|
11
13
|
"type": "git",
|
|
@@ -16,5 +18,9 @@
|
|
|
16
18
|
"bugs": {
|
|
17
19
|
"url": "https://github.com/GuillaumeMMM/marquedefabrique/issues"
|
|
18
20
|
},
|
|
19
|
-
"homepage": "https://github.com/GuillaumeMMM/marquedefabrique#readme"
|
|
21
|
+
"homepage": "https://github.com/GuillaumeMMM/marquedefabrique#readme",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"vite": "^7.3.0",
|
|
24
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
25
|
+
}
|
|
20
26
|
}
|