Overview of the Minecraft UI CSS Framework
This CSS framework allows developers to change the appearance of a website to match the Minecraft Bedrock UI (with support for Java UI). The framework is responsive and supports all devices.
website·Indexed 30 days ago
https://legend077.github.io/framework-docsA responsive CSS framework that changes the appearance of a website to match the Minecraft Bedrock and Java UI. Version 1.2.0 introduces additional features and allows users to apply styles by adding classes to elements.
<head> section and the JavaScript asset at the end of the <body> section of your HTML file. It is recommended to use the latest version (v1.1.9).<!-- In <head> -->
<link rel="stylesheet" href="https://unpkg.com/minecraft-framework-css@1.1.9/css/main.css">
<!-- At the bottom of <body> -->
<script src="https://unpkg.com/minecraft-framework-css@1.1.9/css/assets/script.js"></script>random.click sound when a button is pressed, add the onclick="soundOn()" attribute to the button element. This requires the framework's JavaScript file to be linked.<button class="button" onclick="soundOn()">Click Me</button><!-- Centered Text -->
<div class="text-center">I'm Centered</div>
<!-- Header (Centered text) -->
<div class="header">Hello!</div>
<!-- Title (Large text) -->
<div class="title">Minecraft</div>
<!-- Container (Adds margin, padding, and background) -->
<div class="container">Content here</div>
<!-- Dialogue Box (Minecraft style borders) -->
<div class="dialogue-box">Dialogue text</div>
<!-- Image Border -->
<img class="img" src="image.png"><!-- Background Colors -->
<div class="bg-white">White Background</div>
<div class="bg-primary">Bluish Background</div>
<div class="bg-dark">Dark Background</div>
<div class="bg-warning">Warning Background</div>
<div class="bg-danger">Red/Danger Background</div>
<!-- Text Colors -->
<div class="text-white">White Text</div>
<div class="text-primary">Bluish Text</div>
<div class="text-dark">Dark Text</div>
<div class="text-warning">Warning Text</div>
<div class="text-danger">Red/Danger Text</div><button> elements and do not work with <a> links unless handled via JavaScript.<!-- Bedrock Edition: Normal -->
<button class="button">Click Me</button>
<!-- Bedrock Edition: Dark -->
<button class="button-dark">Click Me</button>
<!-- Java Edition: New -->
<button class="button-java">Click Me</button>
<!-- Java Edition: Old -->
<button class="button-java-old">Click Me</button>
<!-- Java Edition: Full Width (New and Old) -->
<button class="button-java-w">Click Me</button>
<button class="button-java-w-old">Click Me</button><!-- Simple Server Form -->
<form class="server-form">
<label>Choose the Options!</label>
<button class="button full-width">Click Me</button>
</form>
<!-- Server Form with Title -->
<form class="server-form-with-title">
<div class="form-title">Choose the Options</div>
<button class="button full-width">Click Me</button>
</form><body> tag using the cursor attribute.<div cursor="arrow">Minecraft Arrow Cursor</div>
<div cursor="pointer">Console/PS4 Pointer Cursor</div>
<div cursor="default">Default Cursor</div><!-- Text Input -->
<input type="text" class="input-text">
<!-- Checkbox/Toggle (Standard and New) -->
<input type="checkbox">
<input type="checkbox" class="new">
<!-- Slider -->
<input type="range">
<!-- Dropdown -->
<select name="dropdown" id="dropdown">
<option value="1">Option 1</option>
</select>