-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutilities.html
More file actions
137 lines (130 loc) · 5.7 KB
/
utilities.html
File metadata and controls
137 lines (130 loc) · 5.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Utilities | The Forge - Design System</title>
<link rel="icon" type="image/x-icon" href="favicon.png">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Lato:900' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav id="global-navbar">
<div id="global-navbar-icons">
<a href="index.html"><img src="logo.png" alt="" id="global-navbar-img"></a>
</div>
<div id="global-navbar-links-section">
<a href="index.html" class="global-navbar-links">Home</a>
<a href="colors.html" class="global-navbar-links">Colors</a>
<a href="foundations.html" class="global-navbar-links">Foundations</a>
<a href="components.html" class="global-navbar-links">Components</a>
<a href="utilities.html" class="global-navbar-links">Utilities</a>
</div>
</nav>
</header>
<main class="main-content">
<aside class="sidebar">
<h4>Utilities</h4>
<nav class="sidebar-nav">
<a href="#spacing">Spacing</a>
<a href="#text">Text</a>
</nav>
</aside>
<section class="page-content utilities-page">
<h1>Utilities</h1>
<p class="page-intro">Helper classes for applying quick, single-purpose styles directly in your HTML without writing new CSS.</p>
<section id="spacing" class="content-section-box">
<h2>Spacing</h2>
<p>
Use these classes to quickly add margin (<code>m</code>) or padding (<code>p</code>).
The direction is specified (<code>t, b, l, r, x, y</code>) and the size is a multiple of our 8px unit (1 = 8px, 2 = 16px, 3 = 24px).
</p>
<table class="utility-table">
<thead>
<tr>
<th>Class</th>
<th>CSS Property</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.mt-1</code></td>
<td><code>margin-top: 8px;</code></td>
</tr>
<tr>
<td><code>.mb-2</code></td>
<td><code>margin-bottom: 16px;</code></td>
</tr>
<tr>
<td><code>.ml-3</code></td>
<td><code>margin-left: 24px;</code></td>
</tr>
<tr>
<td><code>.py-2</code></td>
<td><code>padding-top: 16px; padding-bottom: 16px;</code></td>
</tr>
<tr>
<td><code>.px-3</code></td>
<td><code>padding-left: 24px; padding-right: 24px;</code></td>
</tr>
</tbody>
</table>
</section>
<section id="text" class="content-section-box">
<h2>Text</h2>
<p>Classes for quickly changing text alignment, weight, and color.</p>
<table class="utility-table">
<thead>
<tr>
<th>Class</th>
<th>CSS Property</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.text-center</code></td>
<td><code>text-align: center;</code></td>
</tr>
<tr>
<td><code>.text-right</code></td>
<td><code>text-align: right;</code></td>
</tr>
<tr>
<td><code>.font-bold</code></td>
<td><code>font-weight: 900;</code> (Uses 'Lato')</td>
</tr>
<tr>
<td><code>.text-primary</code></td>
<td><code>color: #2a62a5;</code></td>
</tr>
<tr>
<td><code>.text-danger</code></td>
<td><code>color: #721c24;</code> (Uses alert color)</td>
</tr>
</tbody>
</table>
</section>
</section>
</main>
<footer>
<div class="quick-links-container">
<h3>Quick Links</h3>
<div class="quick-links">
<a href="index.html">Home</a>
<a href="colors.html">Colors</a>
<a href="foundations.html">Foundations</a>
<a href="components.html">Components</a>
<a href="utilities.html">Utilities</a>
<a href="#" class="back-to-top">Back to Top ↑</a>
</div>
</div>
<div class="trademark">
<p>© 2025 The Forge. A project by skullxcode.</p>
</div>
</footer>
</body>
</html>