Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (71 loc) · 2.65 KB
/
Copy pathindex.html
File metadata and controls
84 lines (71 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bare-Mod Dev Lab</title>
<link rel="icon" type="image/x-icon" href="https://s3.us-east-1.amazonaws.com/cmb.codes/images/favicon.ico">
<link rel="stylesheet" href="./src/bare.css">
<style>
body {
font-family: var(--font-main, system-ui, sans-serif);
}
</style>
</head>
<body data-debug="true">
<header class="p-4 bg-primary">
<h1>bare-mod</h1>
<p>Testing fluid typography and modern grid patterns.</p>
</header>
<main class="p-3">
<section class="mb-4">
<h2>Typography Scale</h2>
<p>This text uses <code>--step-0</code>. It scales from 16px to 20px automatically.</p>
<h1>Heading 1 (Step 3)</h1>
<h2>Heading 2 (Step 2)</h2>
<h3>Heading 3 (Step 1)</h3>
<h4>Heading 4 (Step 0)</h4>
</section>
<hr class="mb-4">
<section class="mb-4">
<h2>12-Column Grid</h2>
<div class="grid-12">
<div class="column p-2 bg-primary" style="--span: 8;">
Main Content (8/12)
</div>
<div class="column p-2" style="--span: 4; outline: 1px solid var(--primary);">
Sidebar (4/12)
</div>
<div class="column p-1 bg-primary" style="--span: 3;">3 Cols</div>
<div class="column p-1 bg-primary" style="--span: 3;">3 Cols</div>
<div class="column p-1 bg-primary" style="--span: 3;">3 Cols</div>
<div class="column p-1 bg-primary" style="--span: 3;">3 Cols</div>
</div>
</section>
<hr class="mb-4">
<section>
<h2>Intrinsic Auto-Grid</h2>
<p>No <code>--span</code> needed. These wrap when they hit 250px.</p>
<div class="grid">
<div class="p-3 round" style="background: var(--muted)">Auto Card 1</div>
<div class="p-3 round" style="background: var(--muted)">Auto Card 2</div>
<div class="p-3 round" style="background: var(--muted)">Auto Card 3</div>
<div class="p-3 round" style="background: var(--muted)">Auto Card 4</div>
</div>
</section>
</main>
<script type="module">
import { loadFont, presets } from './src/fonts.js';
// Test a preset (Try changing 'inter' to 'playfair' or 'fira'!)
loadFont(presets.roboto);
// Quick Debug Toggle
window.addEventListener('keydown', (e) => {
if (e.key.toLowerCase() === 'd') {
const isDebug = document.body.getAttribute('data-debug') === 'true';
document.body.setAttribute('data-debug', isDebug ? 'false' : 'true');
console.log(`🛠 Debug Mode: ${!isDebug ? 'ON' : 'OFF'}`);
}
});
</script>
</body>
</html>