Get started with Monochrome Edge in minutes. Choose your preferred installation method.
The fastest way to start using Monochrome Edge is via CDN. Add a single line to your HTML and you're ready to go.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@monochrome-edge/ui@latest/dist/monochrome.min.css">
@latest
to ensure consistent styling
across deployments.
Use jsDelivr CDN for the fastest and easiest integration. No build process required.
<!DOCTYPE html>
<html lang="en" data-theme="light" data-theme-variant="warm">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My App</title>
<!-- Monochrome Edge CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@monochrome-edge/ui@latest/dist/monochrome.min.css">
</head>
<body>
<button class="btn btn-primary">Click Me</button>
</body>
</html>
Replace @latest
with a specific version for
production stability:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@monochrome-edge/ui@latest/dist/monochrome.min.css">
For projects with a build process, install via npm for better control and tree-shaking benefits.
Run the following command in your project directory:
npm install @monochrome-edge/ui
Import the CSS file in your main JavaScript or CSS entry point:
import '@monochrome-edge/ui/dist/monochrome.min.css';
Or in your CSS file:
@import '@monochrome-edge/ui/dist/monochrome.min.css';
You're all set! Start using Monochrome Edge classes in your HTML.
function App() {
return (
<div className="card">
<h2>Welcome</h2>
<p>Get started with Monochrome Edge</p>
<button className="btn btn-primary">Get Started</button>
</div>
);
}
Monochrome Edge is a pure CSS library. Apply classes to your HTML elements to style them.
<button class="btn btn-primary">Primary Button</button>
<button class="btn btn-secondary">Secondary Button</button>
<button class="btn btn-ghost">Ghost Button</button>
<div class="card">
<h3>Card Title</h3>
<p>Card content goes here.</p>
<button class="btn btn-primary">Action</button>
</div>
<div class="form-group">
<label class="label">Email</label>
<input type="email" class="input" placeholder="you@example.com">
</div>
Monochrome Edge includes two theme variants (Warm and Cold) and supports light/dark modes.
Control themes using HTML data attributes on the root element:
<!-- Warm theme, light mode -->
<html data-theme="light" data-theme-variant="warm">
<!-- Cold theme, dark mode -->
<html data-theme="dark" data-theme-variant="cold">
Toggle themes programmatically with JavaScript:
// Toggle light/dark mode
function toggleMode() {
const html = document.documentElement;
const currentMode = html.getAttribute('data-theme');
html.setAttribute('data-theme', currentMode === 'light' ? 'dark' : 'light');
}
// Toggle warm/cold variant
function toggleVariant() {
const html = document.documentElement;
const currentVariant = html.getAttribute('data-theme-variant');
html.setAttribute('data-theme-variant', currentVariant === 'warm' ? 'cold' : 'warm');
}
Explore all available components and their variants in the main documentation.
Add animated landscape backgrounds for visual depth:
<!-- Wave pattern -->
<div class="b-landscape b-landscape-wave"></div>
<!-- Mountain pattern -->
<div class="b-landscape b-landscape-mountain"></div>
<!-- Colored mode -->
<div class="b-landscape b-landscape-wave" data-landscape-mode="colored"></div>
b-landscape-wave
- Flowing wave pattern
b-landscape-mountain
- Mountain silhouette
b-landscape-forest
- Forest treelineb-landscape-desert
- Desert dunes