Documentation
Duo — Login & Signup Pages
Version 1.0.0 · Bootstrap 5 · 15 files · 118 KB
Getting started
- Unzip the download and open index.html in a browser. No build step is needed.
- Bootstrap is bundled in assets/vendor/bootstrap/. Theme overrides and custom components live in assets/css/style.css, loaded after Bootstrap.
- Adjust the CSS variables at the top of assets/css/style.css to re-theme the template.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 15 files:
- LICENSE.txt1.4 KB
- README.md3.0 KB
- assets/css/style.css13 KB
- assets/fonts/montserrat-LICENSE.txt4.4 KB
- assets/fonts/montserrat-latin-wght-normal.woff237 KB
- assets/images/favicon.svg312 B
- assets/images/panel-art.svg1.6 KB
- assets/js/main.js9.9 KB
- assets/vendor/bootstrap/LICENSE.txt1.1 KB
- assets/vendor/bootstrap/css/bootstrap.min.css227 KB
- assets/vendor/bootstrap/js/bootstrap.bundle.min.js79 KB
- documentation/index.html13 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html7.8 KB
- signup.html11 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--duo-teal#0d9488--duo-teal-dark#0f766e--duo-teal-deep#134e4a--duo-teal-soft#ccfbf1--duo-slate#0f172a--duo-slate-2#1e293b--duo-canvas#f1f5f9--duo-line#e2e8f0--duo-muted#64748b--bs-body-color#334155--bs-body-bg#ffffff--bs-success#15803d--bs-form-valid-color#15803d--bs-form-valid-border-color#15803d--bs-form-invalid-color#b91c1c--bs-form-invalid-border-color#b91c1c--bs-focus-ring-colorrgba(13, 148, 136, 0.28)
Interactive features
Login form
In assets/js/main.js, replace the timeout inside initLogin() with a request to your API. Remove the DEMO object and the #demo-hint block in index.html when going live.
Signup form
Replace the timeout inside initSignup() with your registration request. TAKEN_EMAIL simulates a duplicate account; delete it when connecting a backend.
Validation helper
mark(input, message) adds is-invalid with a message in the matching #<id>-feedback element, or is-valid when the message is empty. Add a field by giving it an id and a sibling .invalid-feedback with the id <id>-feedback.
Password strength rules
Edit the RULES object in main.js and the matching list items (data-rule) in signup.html; the bar has four steps.
Password toggles
Place a button with data-toggle-password="<input id>" inside the .form-floating wrapper of any password input.
Customisation notes
Theme variables
The :root block in assets/css/style.css overrides Bootstrap's --bs-primary, --bs-link-color, --bs-body-font-family and related variables and defines the --duo-* tokens. Change --duo-teal and --bs-primary-rgb together.
Demo credentials
Email [email protected] and password Duo!Pass2026 log in successfully on index.html; other valid-looking pairs show the error alert. On signup.html the email [email protected] shows the already-registered error.
Brand panel
The panel copy lives in an aside with class panel on both pages; the illustration is assets/images/panel-art.svg.
Bootstrap files
Bootstrap 5.3.9 CSS and the JS bundle sit in assets/vendor/bootstrap. The JS bundle is loaded for Bootstrap components; the forms themselves do not need it.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- Nothing is sent or stored and no real authentication happens: login compares against demo credentials in JavaScript and signup only shows a success alert.
- The already-registered error on signup is simulated with [email protected].
- Forgot password, terms, privacy and help links point to example.com placeholders.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Montserrat typeface — OFL-1.1 (
assets/fonts/montserrat-LICENSE.txt) - Bootstrap 5.3.9 — MIT (
assets/vendor/bootstrap/LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.