Game Save File
This is a brief description of your saved game file.
The pixel-perfect CSS framework for retro-inspired projects.
<section class="gb-hero">
<h1>GAMEBOY.CSS</h1>
<img width="100" class="no-border" src="/assets/gameboy.webp" alt="Game Boy console image" />
<p>The pixel-perfect CSS framework for retro-inspired projects.</p>
<button type="button" class="button primary">Get Started</button>
</section>
Use these containers to hold various in-game information.
This is a brief description of your saved game file.
<article class="gb-card">
<h3 class="title">Game Save File</h3>
<p>This is a brief description of your saved game file.</p>
</article>
A simple card container to display an item in your inventory.
<div class="gb-card primary">
<h4 class="title">Item Card</h4>
<p>A simple card container to display an item in your inventory.</p>
</div>
A success message after finishing a quest.
<div class="gb-card secondary">
<h4 class="title">Quest Complete!</h4>
<p>A success message after finishing a quest.</p>
</div>
HP: 20
ATTACK: 11
DEFENSE: 8
<div class="gb-card pokemon-card">
<img src="assets/tiny-ball.webp" class="no-border pokemon-corner pokemon-corner-top-left"></img>
<img src="assets/tiny-ball.webp" class="no-border pokemon-corner pokemon-corner-top-right"></img>
<img src="assets/tiny-ball.webp" class="no-border pokemon-corner pokemon-corner-bottom-left"></img>
<img src="assets/tiny-ball.webp" class="no-border pokemon-corner pokemon-corner-bottom-right"></img>
<h3 class="title">Pikachu Stats</h3>
<p>HP: 20</p>
<p>ATTACK: 11</p>
<p>DEFENSE: 8</p>
</div>
The first level with mushrooms and coins.
An underground level filled with puzzles.
An above-the-clouds level, be careful not to fall!
The first castle, get ready for the boss fight!
<section class="gb-grid">
<div class="gb-card">
<h4 class="title">World 1-1</h4>
<p>The first level with mushrooms and coins.</p>
</div>
<div class="gb-card">
<h4 class="title">World 1-2</h4>
<p>An underground level filled with puzzles.</p>
</div>
</section>
<button type="button" data-gb-dialog-target="#example-dialog">
Show Dialog
</button>
<dialog id="example-dialog">
<p>This is a dialog box. Press A to continue.</p>
<form method="dialog">
<button>OK</button>
</form>
</dialog>
This is how various text types will appear in your game.
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
This is a paragraph of the story. It contains monster descriptions, spells you've learned, and a link Awakening. Don't forget to highlight important hints from NPCs!
"Hello! Sorry I'm not home, but I have gone to rescue my friends who were captured by Bowser." - Yoshi 🐾
<blockquote>
"It's dangerous to go alone! Take this."
<cite>- Old Man</cite>
</blockquote>
// Code blocks should look retro!
function onStart() {
console.log("Welcome to Hyrule!");
}
<pre><code>
// Code blocks should look retro!
function onStart() {
console.log("Welcome to Hyrule!");
}
</code></pre>
Interactive elements that can be found in game menus or on screen.
<button type="button">Default</button>
<button type="button" class="button dark">Dark</button>
<button type="button" class="button border">Border</button>
<button type="button" disabled>Disabled</button>
A legendary sword said to seal the darkness.
<details>
<summary>Default</summary>
<p>A legendary sword said to seal the darkness.</p>
</details>
A legendary sword said to seal the darkness.
<details class="detail-card">
<summary>Default</summary>
<p>A legendary sword said to seal the darkness.</p>
</details>
.detail-group
Heals 20 HP.
Restores 50 MP.
Revives a fallen ally.
<div class="detail-group">
<details>...</details>
<details>...</details>
<details>...</details>
</div>
Loading saved data...
<h3>Progress Bar</h3>
<p>Loading saved data...</p>
<progress value="75" max="100"></progress>
Different list styles for in-game inventory or items.
<h3>Unordered List</h3>
<ul>
<li>Potion</li>
<li>Ether</li>
<li>Phoenix Down</li>
</ul>
<h3>Unordered List</h3>
<ul class="star">
<li>Starman</li>
<li>Super Star</li>
<li>Power Star</li>
</ul>
<h3>Unordered List</h3>
<ul class="coin">
<li>100 Gold</li>
<li>10 Silver</li>
<li>1 Bronze</li>
</ul>
<h3>Unordered List</h3>
<ul class="goombo">
<li>Goomba</li>
<li>Koopa</li>
<li>Piranha Plant</li>
</ul>
<h3>Ordered List</h3>
<ol>
<li>Choose your starter</li>
<li>Battle your rival</li>
<li>Become the champion</li>
</ol>
Form styles for player registration or game settings menu.
<form>
<fieldset>
<legend>New Player Registration</legend>
<label for="name">Player Name:</label>
<input type="text" id="name" name="name" placeholder="e.g., Mario" />
<!-- ... more form elements ... -->
<input type="submit" value="Press Start" />
</fieldset>
</form>
Displaying media and tables, as seen in game menus.
<figure>
<img src="/assets/mario-land.webp" alt="The legendary device">
<figcaption>Fig. 1 - The legendary device for an adventure.</figcaption>
</figure>
| Rank | Player | Score |
|---|---|---|
| 1 | MARIO | 999990 |
| 2 | LUIGI | 754320 |
| 3 | ZELDA | 640000 |
| 4 | KIRBY | 450000 |
| 5 | SAMUS | 387500 |
<table>
<caption>High Scores</caption>
<thead>
<tr>
<th>Rank</th>
<th>Player</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>MARIO</td>
<td>999990</td>
</tr>
<tr>
<td>2</td>
<td>LUIGI</td>
<td>754320</td>
</tr>
<tr>...</tr>
</tbody>
</table>
Helper classes to quickly adjust elements.
This is an extra-small text (text-xs).
This is a small text (text-sm).
This is a medium text (text-md).
This is a large text (text-lg).
This is an extra-large text (text-xl).
<p class="text-xs">...</p>
<p class="text-sm">...</p>
<p class="text-md">...</p>
<p class="text-lg">...</p>
<p class="text-xl">...</p>
This text is dark gray.
This text uses the primary color.
This text uses the secondary color.
This text is light.
<p class="text-dark">...</p>
<p class="text-primary">...</p>
<p class="text-secondary">...</p>
<p class="text-light">...</p>
This container has a default shadow and border.
This container has no shadow but keeps its border.
This container has a completely flat design.
<div class="gb-card primary">...</div>
<div class="gb-card primary no-shadow">...</div>
<div class="gb-card primary no-shadow no-border">...</div>
The image above is responsive by default (max-width: 100%) and has a border. you can adjust the size using width inline styling.
<img src="/assets/mario-land.webp" alt="Mario Land" style="width: 250px;">
The image above uses the `.img-avatar` class to make it circular.
<img src="/assets/logo.webp" alt="Player Avatar" class="img-avatar">
A big thanks to the people who helped make this project possible.
Creator