-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
431 lines (404 loc) · 15.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pixee</title>
<style>
@import url("https://cdn.jsdelivr.net/gh/BruceArmstrong007/Pixee/dist/index.css");
/* @import url("/dist/index.css"); */
/* :root {
--primary: #326dee;
--secondary: #1ac888;
--error: #d32752;
--info: #f6c31c;
--blue: #1919e6;
--red: #e61919;
--yellow: #e6e619;
--green: #19e635;
--orange: #ffa600;
--purple: #9900ff;
--gray: #808080;
--black: black;
--white: white;
--base-padding: 1rem;
--base-margin: 1rem;
--base-border-radius: 60px;
--base-border-thickness: 5px;
--base-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
--base-font-size: 5rem;
} */
</style>
</head>
<body class="dark-theme" id="theme">
<nav class="navbar-primary text-white mb-4">
<div class="container">
<h2 class="site-title">Pixee UI</h2>
<p>A lightweight CSS library for modern web applications.</p>
<button
class="btn-outlined-black text-black text-hover-white font-size-xs"
(click)="switchMode()"
>
Switch Theme
</button>
</div>
</nav>
<div class="container">
<!-- colors -->
<h2 class="mb-2">Colors</h2>
<div class="display-f flex-direction-column gap-2">
<div class="card mt-2">
<div class="card-title">Text</div>
<div class="card-body">
<span class="text-primary">primary text</span> |
<span class="text-hover-secondary">secondary hover text</span> |
<span class="text-error">error text</span> |
<span class="text-info">info text</span> |
<span class="text-hover-blue">blue hover text</span> |
<span class="text-red">red text</span> |
<span class="text-green">green text</span> |
<span class="text-yellow">yellow text</span> |
<span class="text-hover-purple">purple hover text</span> |
<span class="text-orange">orange text</span> |
<span class="text-gray">gray text</span>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : text-(color) text-hover-(color) </span>
<span class="pt-2"> Example : text-blue text-hover-yellow </span>
</div>
</div>
</div>
<div class="card mt-2">
<div class="card-title">Background</div>
<div class="card-body">
<span class="bg-primary text-white">bg primary</span> |
<span class="bg-secondary text-white">bg secondary</span> |
<span class="bg-error text-white">bg error</span> |
<span class="bg-info text-white">bg info</span> |
<span class="bg-blue text-white">bg blue</span> |
<span class="bg-red text-white">bg red</span> |
<span class="bg-green text-white">bg green</span> |
<span class="bg-yellow text-white">bg yellow</span> |
<span class="bg-purple text-white">bg purple</span> |
<span class="bg-orange text-white">bg orange</span> |
<span class="bg-gray text-white">bg gray</span> |
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : bg-(color) </span>
<span class="pt-2"> Example : bg-blue </span>
</div>
</div>
</div>
<div class="card mt-2">
<div class="card-title">Light and Dark variants</div>
<div class="card-body">
<span class="bg-primary-dark-8 text-white">primary dark 8</span> |
<span class="bg-primary-dark-6 text-white">primary dark 6</span> |
<span class="bg-primary-dark-4 text-white">primary dark 4</span> |
<span class="bg-primary-dark-2 text-white">primary dark 2</span> |
<span class="bg-primary text-white">primary</span> |
<span class="bg-primary-light-2 text-white">primary light 2</span> |
<span class="bg-primary-light-4 text-white">primary light 4</span> |
<span class="bg-primary-light-6 text-white">primary light 6</span> |
<span class="bg-primary-light-8 text-white">primary light 8</span> |
<div class="display-f flex-direction-column">
<span class="pt-2 pb-2">
Syntax : bg-(color)-light-(1-9) bg-(color)-dark-(1-9)
</span>
<span class="pt-2 pb-2">
Example : bg-primary-light-2 bg-primary-dark-6
</span>
</div>
<span class="text-primary-dark-8">primary dark 8</span> |
<span class="text-primary-dark-6">primary dark 6</span> |
<span class="text-primary-dark-4">primary dark 4</span> |
<span class="text-primary-dark-2">primary dark 2</span> |
<span class="text-primary">primary</span> |
<span class="text-primary-light-2">primary light 2</span> |
<span class="text-primary-light-4">primary light 4</span> |
<span class="text-primary-light-6">primary light 6</span> |
<span class="text-primary-light-8">primary light 8</span> |
<div class="display-f flex-direction-column">
<span class="pt-2">
Syntax : text-(color)-light-(1-9) text-(color)-dark-(1-9)
</span>
<span class="pt-2">
Example : text-primary-light-2 text-primary-dark-6
</span>
</div>
</div>
</div>
</div>
<hr class="mt-4 mb-4" />
<!-- font sizes -->
<h2 class="mb-2">Font Sizes</h2>
<div class="font-size-sm">this is small font - (sm)</div>
<div class="font-size-md">this is medium font - (md)</div>
<div class="font-size-lg">this is large font - (lg)</div>
<div class="font-size-xl">this is extra large font - (xl)</div>
<div class="font-size-xxl">this is extra, extra large font - (xxl)</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : font-size-(size) </span>
<span class="pt-2"> Example : font-size-sm </span>
</div>
<hr class="mt-4 mb-4" />
<!-- Margins & Paddings -->
<h2 class="mb-2">Margins and Paddings</h2>
<div class="p-1">Padding 1</div>
<div class="ml-2">Margin left 2</div>
<div class="pr-5">Padding right 5</div>
<div class="mt-3">Margin top 3</div>
<div class="display-f flex-direction-column">
<span class="pt-2">
Syntax : m(direction - l, r, t, b)-(1-5) p(direction - l, r, t, b)-(1-5)
</span>
<span class="pt-2"> Example : mb-4 pt-2 </span>
</div>
<hr class="mt-4 mb-4" />
<!-- Displays -->
<h2 class="mb-2">Displays</h2>
<div class="font-size-md">None - (n)</div>
<div class="font-size-md">Block - (b)</div>
<div class="font-size-md">Flex - (f)</div>
<div class="font-size-md">Inline Block - (i-b)</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : display-(value) </span>
<span class="pt-2"> Example : display-b </span>
</div>
<hr class="mt-4 mb-4" />
<!-- buttons -->
<h2 class="mb-2">Buttons</h2>
<div class="row">
<a href="#" class="btn mr-2">default btn</a>
<a href="#" class="btn-primary text-white mr-2">click me</a>
<a href="#" class="btn-secondary text-white mr-2">click me</a>
<a href="#" class="btn-error text-white mr-2">click me</a>
<a href="#" class="btn-info mr-2">click me</a>
<a href="#" class="btn-outlined-purple text-purple text-hover-white mr-2">click me</a
>
<a href="#" class="btn-outlined-orange text-orange text-hover-white mr-2">click me</a
>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : btn-(color) btn-outlined-(color) </span>
<span class="pt-2"> Example : btn-primary btn-outlined-primary </span>
</div>
<hr class="mt-4 mb-4" />
<!-- Navbar -->
<h2 class="mb-2">Navbar</h2>
<nav class="navbar-primary text-white mb-4">
<div class="container">
<h2 class="site-title">Title</h2>
<p>Hello world.</p>
<button
class="btn-outlined-black text-black text-hover-white font-size-xs"
>
button
</button>
</div>
</nav>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : navbar-(color) </span>
<span class="pt-2"> Example : navbar-info </span>
</div>
<hr class="mt-4 mb-4" />
<!-- cards -->
<h2 class="mb-2">Cards</h2>
<div class="card">
<h1 class="card-title">This is a title (card-title)</h1>
<p class="card-body">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. In sunt, quo
totam aliquam praesentium ducimus tempore sapiente quia nulla optio?
Lorem ipsum, dolor sit amet consectetur
<a href="">adipisicing elit</a>. Libero laboriosam laborum
exercitationem autem commodi voluptas odio aliquid ut velit doloremque
minima, quaerat dolores, corporis consequuntur totam nam id veniam
maxime (card-body) .
</p>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : card, card-title, card-body </span>
</div>
<hr class="mt-4 mb-4" />
<!-- badges -->
<h2 class="mb-2">Badges</h2>
<span class="badge-orange text-white ml-1">new</span>
<span class="badge-blue text-white ml-1">few</span>
<span class="badge-red text-white ml-1">mew</span>
<span class="badge-green text-white ml-1">rew</span>
<span class="badge-primary text-white ml-1">kew</span>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : badge-(color) </span>
<span class="pt-2"> Example : badge-info </span>
</div>
<hr class="mt-4 mb-4" />
<!-- Flex system -->
<h2 class="mb-2">Responsive Flex System</h2>
<div class="display-f flex-wrap-wrap justify-content-space-evenly gap-4">
<div class="display-f justify-content-center align-items-center p-2">
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div
class="display-f justify-content-center align-items-center p-2"
>
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div
class="display-f justify-content-center align-items-center p-2"
>
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div
class="display-f justify-content-center align-items-center p-2"
>
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2">
Syntax : display-f justify-content-(option - center, space-between,
space-evenly, flex-start, flex-end) align-items-(option - center,
space-between, space-evenly, start, end)
</span>
<span class="pt-2">
Example : display-f justify-content-center align-items-center
</span>
</div>
<hr class="mt-4 mb-4" />
<!-- grid system -->
<h2 class="mb-2">Responsive Grid System - (Based on flex)</h2>
<div class="row gap-2 justify-content-center">
<div class="col-12-xs col-5-sm col-3-xl">
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div class="col-12-xs col-5-sm col-3-xl">
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div class="col-12-xs col-5-sm col-3-xl">
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
<div class="col-12-xs col-5-sm col-3-xl">
<div class="card">
<h3 class="card-title">Hello, world</h3>
<p class="card-body">
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
</p>
</div>
</div>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2">
Syntax : col-(1-12)-(size - xs, sm, md, lg, xl, xxl) , row (flex with
wrap)
</span>
<span class="pt-2">
Example : col-5-sm (occupy 5 out of 12 starting from small devices)
</span>
</div>
<hr class="mt-4 mb-4" />
<!-- utilities -->
<h2>Using Utilities</h2>
<h3 class="mt-2">Border Radius</h3>
<div class="mt-2 text-orange-dark-2 bg-orange-light-5 p-2 br-xs">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolores,
perspiciatis!
</p>
</div>
<div class="mt-2 text-secondary-dark-2 bg-secondary-light-5 p-2 br-lg">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolores,
perspiciatis!
</p>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : br-(size - xs, sm, lg) </span>
<span class="pt-2"> Example : br-sm (Border radius of container) </span>
</div>
<h3 class="mt-2">Opacity</h3>
<div>
<div class="display-i-b bg-purple text-white o-10 mt-3 mr-3 p-2">
opacity 10
</div>
<div class="display-i-b bg-purple text-white o-30 mt-3 mr-3 p-2">
opacity 30
</div>
<div class="display-i-b bg-purple text-white o-50 mt-3 mr-3 p-2">
opacity 50
</div>
<div class="display-i-b bg-purple text-white o-70 mt-3 mr-3 p-2">
opacity 70
</div>
<div class="display-i-b bg-purple text-white o-90 mt-3 mr-3 p-2">
opacity 90
</div>
</div>
<div class="display-f flex-direction-column">
<span class="pt-2"> Syntax : o-(10-100) </span>
<span class="pt-2"> Example : 0-50 (Opacity of container) </span>
</div>
<hr class="mt-4 mb-4" />
<div
class="display-f justify-content-center align-items-center flex-direction-column"
>
<h3 class="font-size-lg">
For Installation and customising themes, colors and variables, Checkout
this
<a
class="text-primary text-hover-green"
target="_blank"
href="https://github.com/BruceArmstrong007/Pixee/blob/master/README.md"
>Readme.md</a
>
</h3>
<span class="font-size-lg pt-2"> Happy Coding !</span>
<span class="font-size-xs pt-2"> 0 effort on docs for now :) </span>
</div>
</div>
</body>
<script>
const buttonEvent = () => {
const theme = document.getElementById("theme");
if (theme.classList.contains("dark-theme")) {
theme.classList.remove("dark-theme");
theme.classList.add("light-theme");
} else {
theme.classList.remove("light-theme");
theme.classList.add("dark-theme");
}
};
</script>
</html>