TEMPLIX
DOCS.
Templix is a library of standalone HTML & CSS components. Every template is a single self-contained file — no build step, no npm install, no framework. Open the browser, copy, paste, ship.
Zero setup
No package manager, no bundler, no config file. Every template opens in a browser as-is.
MIT licensed
Use in personal and commercial projects. No attribution required, though it's appreciated.
Copy-paste workflow
See a component you like, hit copy in the viewer, paste it into your project. Done.
Open source
Fork it, extend it, submit templates. The library grows better with community contributions.
Quick Start
The fastest way to use a Templix component is the copy-paste method. No install required.
Clone the repo
git clone https://github.com/muaves/templix.git
cd templix
# open any template directly
open navbars/glass.htmlFile Structure
Templates are organised by category. Each template is a single .html
file that includes its own styles and scripts inline.
Copy & Paste
Each template file is split into three parts in the viewer. You can copy all three together or grab just the pieces you need:
HTML tab
The markup only — styles and scripts stripped out. Paste directly into your body content.
CSS tab
The extracted style block. Drop into your stylesheet or a <style> tag.
JS tab
Extracted JavaScript if the component has any. Paste before </body>.
Full file
Click Copy on the top-level button to grab the entire HTML file as-is, including all three parts.
Customising Templates
Every template is plain HTML and CSS — you can change anything directly. The most common tweaks are changing colors, fonts, and spacing.
font-family
declarations.
Changing the color scheme
Most templates use inline CSS — find the color hex values and replace them. For larger changes,
look for a :root { } block at the
top of the style tag — variables are defined there.
/* override any template's root vars */
:root {
--bg: #0a0905;
--orange: #e8820a; /* swap this for your brand color */
--text: #e8e2d0;
--muted: #6b6452;
}CSS Variables
The shared design system uses these CSS custom properties. Override them in your own stylesheet to retheme any component without touching its source:
:root {
/* backgrounds */
--bg: #0a0905; /* page background */
--card: #111009; /* card / surface */
--border: #1e1b12; /* default border */
/* accent */
--orange: #e8820a; /* primary accent */
--orange-light: #f5a832; /* hover state */
/* text */
--text: #e8e2d0; /* primary text */
--muted: #6b6452; /* secondary / disabled */
}Adding a Template
Contributing a new template is two steps. First, drop your HTML file in the right category
folder. Then register it in assets/templates.js.
<style>
tag and any scripts in a <script>
tag. No external dependencies except Google Fonts.navbars/my-navbar.html
assets/templates.js.
That's the entire process.navbars: [
... existing entries ...
{
id: "nav-my-navbar",
name: "My Navbar",
file: "navbars/my-navbar.html",
tags: ["dark", "minimal"],
desc: "One sentence describing what makes this special."
},
],Contribution Guidelines
Tags Reference
Tags are used in the component browser for filtering. Use only established tags from this list when registering a new template: