Forms
Bootstrap 5 Forms
Bootstrap 5 forms are input-based components that are used to collect information from users. All of these forms, whether used as a login, subscription, or contact form, may be readily altered.
Predefined Form logins, Form registers, Form subscriptions, Form contacts, and other layout forms with varied designs are all available in Contrast Bootstrap. Each of them has an own set of capabilities.
Default Login Form
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-4"> <p class="h4">Sign in</p> </div> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Password</label> </div> <div class="d-flex flex-wrap justify-content-center align-items-center"> <input type="checkbox" class="me-1" /> <p class="m-0">Remember me</p> <a class="text-decoration-none ms-3" href="#">Forgot Password ?</a> </div> <button class="btn btn-dark btn-block my-3"> Sign in </button> <p class="text-center">Not a member? <a class="text-decoration-none" href="#">Register</a></p> <p class="text-center">or sign in with</p> <div class="my-3 d-flex justify-content-center"> <button class="m-0 btn btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-google-plus-g"></i> </button> </div> </div></div>
Contrast Login Form
Sign in
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div style="background:black;" class="text-center text-white"> <p class="h5 mt-2 py-4 font-weight-bold">Sign in</p> </div> <div class="mx-4 mt-4 p-3"> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control" /> <label>Password</label> </div> <div class="mt-5 d-flex flex-wrap justify-content-center align-items-center"> <input type="checkbox" class="me-2" /> <p class="m-0">Remember me</p> <a href="#" class="text-decoration-none ms-3">Forgot Password ?</a> </div> <button class="btn btn-block btn-outline-dark my-3"> Sign in </button> <p class="text-center">Not a member? <a class="text-decoration-none" href="#">Register</a></p> <p class="text-center">or sign in with</p> <div class="my-3 d-flex justify-content-center"> <button class="btn m-0"> <i class="fab fa-facebook-f"></i> </button> <button class="btn m-0"> <i class="fab fa-twitter"></i> </button> <button class="btn m-0"> <i class="fab fa-linkedin-in"></i> </button> <button class="btn m-0"> <i class="fab fa-github"></i> </button> </div> </div></div>
Default Register Form
Sign up
At least 8 characters and 1 digit
Optional - for two step authentication
Subscribe to our newsletter
or sign up with
Already have an account? Sign In
By clicking Sign up you agree to ourterms of service
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-2"> <p class="h4 mb-5">Sign up</p> </div> <div class="row mb-n4"> <div class="col"> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>First Name</label> </div> </div> <div class="col"> <div class="cs-form"> <input type="text" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Last Name</label> </div> </div> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Password</label> </div> <p class="text-muted text-center small">At least 8 characters and 1 digit</p> <div class="cs-form"> <input type="text" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Phone number</label> </div> <p class="text-muted text-center small">Optional - for two step authentication</p> </div> <div class="d-flex justify-content-center align-items-center mt-4"> <input class="me-2" type="checkbox" /> <p class="m-0">Subscribe to our newsletter</p> </div> <button class="btn btn-block my-3 btn-dark"> Sign up </button> <p class="text-center">or sign up with</p> <div class="mb-3 d-flex justify-content-center"> <button class="m-0 btn btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-google-plus-g"></i> </button> </div> <p class="text-center m-0"> Already have an account? <a class="text-decoration-none" href="#">Sign In</a> </p> <hr /> <p class="text-center"> By clicking <em>Sign up</em> you agree to our <a class="text-decoration-none" href="#">terms of service</a> </p> </div></div>
Contrast Register Form
Sign up
At least 8 characters and 1 digit
Optional - for two step authentication
Subscribe to our newsletter
or sign up with
Already have an account? Sign In
By clicking Sign up you agree to ourterms of service
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="text-center text-white" style="background:black;"> <p class="h5 mt-2 py-4 font-weight-bold">Sign up</p> </div> <div class="mx-4 mt-4 p-3"> <div class="row mb-n4"> <div class="col"> <div class="cs-form"> <input type="email" class="form-control" /> <label>First Name</label> </div> </div> <div class="col"> <div class="cs-form"> <input type="text" class="form-control" /> <label>Last Name</label> </div> </div> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control" /> <label>Password</label> </div> <p class="text-muted text-center small">At least 8 characters and 1 digit</p> <div class="cs-form"> <input type="text" class="form-control" /> <label>Phone number</label> </div> <p class="text-muted text-center small">Optional - for two step authentication</p> </div> <div class="d-flex justify-content-center align-items-center mt-4"> <input class="me-2" type="checkbox" /> <p class="m-0">Subscribe to our newsletter</p> </div> <button class="btn btn-block my-3 btn-outline-dark"> Sign up </button> <p class="text-center">or sign up with</p> <div class="mb-3 d-flex justify-content-center"> <button class="m-0 btn"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn"> <i class="fab fa-linkedin-in"></i> </button> <button class="m-0 btn"> <i class="fab fa-github"></i> </button> </div> <p class="text-center m-0"> Already have an account? <a class="text-decoration-none" href="#">Sign In</a> </p> <hr /> <p class="text-center"> By clicking <em>Sign up</em> you agree to our <a class="text-decoration-none" href="#">terms of service</a> </p> </div></div>
Default Subscription Form
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-2"> <p class="h4">Subscribe</p> </div> <p class="text-center mt-4 font-weight-light"> Join our mailing list. We write rarely, but only the best content. </p> <p class="text-center"> <a class="font-weight-light text-decoration-none mb-4" href="#">See the last newsletter</a> </p> <div class="cs-form"> <input type="text" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Name</label> </div> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>E-mail</label> </div> <button class="btn btn-dark btn-block my-3"> Subscribe </button> </div></div>
Contrast Subscription Form
Subscribe
Join our mailing list. We write rarely, but only the best content.
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="text-center text-white" style="background:black;"> <p class="h5 mt-2 py-4 font-weight-bold">Subscribe</p> </div> <div class="mx-4 p-3"> <p class="text-center mt-2"> Join our mailing list. We write rarely, but only the best content. </p> <p class="text-center"><a class="text-decoration-none" href="#">See the last newsletter</a></p> <div class="cs-form"> <input type="text" class="form-control" /> <label>Name</label> </div> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <button class="btn btn-block btn-outline-dark my-3"> Subscribe </button> </div></div>
Default Contact Form
Contact us
Subject
Send me a copy of this message
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-5"> <p class="h4">Contact us</p> </div> <div class="cs-form"> <input type="text" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Name</label> </div> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>E-mail</label> </div> <p class="text-center m-0">Subject</p> <select class="select w-100"> <option>Resources</option> <option>Docs</option> <option>Contact</option> </select> <div class="cs-form mt-4"> <textarea class="form-control border-top-0 border-left-0 border-right-0"></textarea> <label>Message</label> </div> <div class="d-flex justify-content-center align-items-center mt-4"> <input class="me-2" type="checkbox" /> <p class="m-0">Send me a copy of this message</p> </div> <button class="btn btn-block btn-dark my-3"> Send </button> </div></div>
Contrast Contact Form
Contact Us
Subject
Send me a copy of this message
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div style="background:black;" class="text-center text-white mb-4"> <p class="h5 mt-2 py-4 font-weight-bold">Contact Us</p> </div> <div class="mx-4 p-3"> <div class="cs-form"> <input type="text" class="form-control" /> <label>Name</label> </div> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <p class="text-center m-0 text-muted">Subject</p> <select class="select w-100"> <option>Resources</option> <option>Docs</option> <option>Contact</option> </select> <div class="cs-form mt-4"> <textarea class="form-control"></textarea> <label>Message</label> </div> <div class="d-flex justify-content-center align-items-center mt-4"> <input class="me-2" type="checkbox" /> <p class="m-0">Send me a copy of this message</p> </div> <button class="btn btn-block btn-outline-dark my-3"> Send </button> </div></div>
Login Form with Icons
Sign in
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4 font-weight-bold">Sign in</p> </div> <div class="cs-form"> <i class="fa fa-user prefix"></i> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <i class="fa fa-lock prefix"></i> <input type="password" class="form-control" /> <label>Password</label> </div> <button style="width:40%;" class="btn btn-success btn-block mt-5 mx-auto"> Login </button> </div></div>>
Login Form with Label
Sign in
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-4"> <p class="h4">Sign in</p> </div> <div> <label htmlFor="defaultLoginEmail" class="text-muted"> Your email </label> <input type="email" id="defaultLoginEmail" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginPassword" class="text-muted"> Your password </label> <input type="password" id="defaultLoginPassword" class="form-control" /> </div> <button style="width:40%;" class="btn btn-primary btn-block mt-5 mx-auto"> Login </button> </div></div>
Sign Up Form with Icon
Sign in
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4 font-weight-bold">Sign in</p> </div> <div class="cs-form"> <i class="fa fa-user prefix"></i> <input type="text" class="form-control" /> <label>Your name</label> </div> <div class="cs-form"> <i class="fa fa-envelope prefix"></i> <input type="email" class="form-control" /> <label>Your Email</label> </div> <div class="cs-form"> <i class="fa fa-exclamation-triangle prefix"></i> <input type="email" class="form-control" /> <label>Confirm your Email</label> </div> <div class="cs-form"> <i class="fa fa-lock prefix"></i> <input type="password" class="form-control" /> <label>Your Password</label> </div> <button style="width:40%;" class="btn btn-success btn-block mt-5 mx-auto"> Register </button> </div></div>
Sign Up Form with Label
Sign in
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-4"> <p class="h4">Sign in</p> </div> <div> <label htmlFor="defaultLoginName" class="text-muted"> Your name </label> <input type="text" id="defaultLoginName" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginEmail" class="text-muted"> Your email </label> <input type="email" id="defaultLoginEmail" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="confirmLoginEmail" class="text-muted"> Confirm your Email </label> <input type="email" id="confirmLoginEmail" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginPassword" class="text-muted"> Your password </label> <input type="password" id="defaultLoginPassword" class="form-control" /> </div> <button style="width:40%;" class="btn btn-danger btn-block mt-5 mx-auto"> Register </button> </div></div>
Subscription Form with Icon
Subscribe
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4 font-weight-bold">Subscribe</p> </div> <div class="cs-form"> <i class="fa fa-user prefix"></i> <input type="text" class="form-control" /> <label>Your Name</label> </div> <div class="cs-form"> <i class="fa fa-lock prefix"></i> <input type="email" class="form-control" /> <label>Your Email</label> </div> <button style="width:40%;" class="btn btn-outline-primary btn-block mt-5 mx-auto"> Send <i class="fa fa-paper-plane"></i> </button> </div></div>
Subscription Form without Icon
Subscribe
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-4"> <p class="h4">Subscribe</p> </div> <div> <label htmlFor="defaultLoginPassword" class="text-muted"> Your Name </label> <input type="text" id="defaultLoginPassword" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginEmail" class="text-muted"> Your email </label> <input type="email" id="defaultLoginEmail" class="form-control" /> </div> <button style="width:40%;" class="btn btn-outline-danger btn-block mt-5 mx-auto"> Send <i class="fa fa-paper-plane"></i> </button> </div></div>
Contact Form with Icon
Write to us
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4 font-weight-bold">Write to us</p> </div> <div class="cs-form"> <i class="fa fa-user prefix"></i> <input type="text" class="form-control" /> <label>Your name</label> </div> <div class="cs-form"> <i class="fa fa-envelope prefix"></i> <input type="email" class="form-control" /> <label>Your Email</label> </div> <div class="cs-form"> <i class="fa fa-tags prefix"></i> <input type="text" class="form-control" /> <label>Subject</label> </div> <div class="cs-form"> <i class="fa fa-envelope prefix"></i> <input type="text" class="form-control" /> <label>Your Message</label> </div> <button style="width:40%;" class="btn btn-outline-secondary btn-block mt-5 mx-auto"> Send <i class="fa fa-paper-plane"></i> </button> </div></div>
Contact Form with Label
Write to us
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center mt-4 mb-4"> <p class="h4">Write to us</p> </div> <div> <label htmlFor="defaultLoginName" class="text-muted"> Your name </label> <input type="text" id="defaultLoginName" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginEmail" class="text-muted"> Your email </label> <input type="email" id="defaultLoginEmail" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="confirmLoginEmail" class="text-muted"> Subject </label> <input type="text" id="confirmLoginEmail" class="form-control" /> </div> <div class="mt-3"> <label htmlFor="defaultLoginPassword" class="text-muted"> Your message </label> <textarea class="form-control"></textarea> </div> <button style="width:40%;" class="btn btn-outline-danger btn-block mt-5 mx-auto"> Send <i class="fa fa-paper-plane"></i> </button> </div></div>
Login Form
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4 font-weight-bold">Sign in</p> </div> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control" /> <label>Password</label> </div> <p class="mt-n3 text-end"><a class="text-decoration-none" href="#">Forgot Password ?</a></p> <button class="btn btn-dark btn-block my-4 mx-0"> Sign in </button> <p class="text-center">or sign in with</p> <div class="my-3 d-flex justify-content-center"> <button class="m-0 btn"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn"> <i class="fab fa-google-plus-g"></i> </button> </div> <hr /> <p class="text-center">Not a member? <a class="text-decoration-none" href="#">Sign up</a></p> </div></div>
Sign Up Form
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div class="mx-4 p-3"> <div class="text-center my-4"> <p class="h4">Sign up</p> </div> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control" /> <label>Password</label> </div> <div class="d-flex align-items-center"> <input type="checkbox" /> <p class="mb-0 ms-3"> Accept the <a class="text-decoration-none" href="#">terms and conditions</a> </p> </div> <div class="d-flex mt-4 align-items-center"> <button style="width:30%; background:linear-gradient(0deg, rgba(152,117,196,1) 0%, rgba(169,208,213,0.8746849081429446) 100%);" class="btn btn-block" > Sign up </button> <p class="ms-auto mb-0"> Have an account? <a class="text-decoration-none" href="#">Log in</a> </p> </div> </div> <div class="pt-4" style="background:linear-gradient(0deg, rgba(152,117,196,1) 0%, rgba(169,208,213,0.8746849081429446) 100%);" > <p class="text-center m-0">or sign up with</p> <div class="mb-3 d-flex justify-content-center"> <button class="m-0 btn"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn"> <i class="fab fa-google-plus-g"></i> </button> </div> </div></div>
Login Form
HTML
<div class="border d-flex flex-column" style="width:30rem;"> <div style="background:linear-gradient(0deg, rgba(152,117,196,1) 0%, rgba(169,208,213,0.8746849081429446) 100%);" class="text-center mb-4" > <p class="h5 mt-2 mt-5 mb-2 font-weight-bold">Login</p> <div class="mb-3 d-flex justify-content-center"> <button class="m-0 btn btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-linkedin-in"></i> </button> <button class="m-0 btn btn-flat"> <i class="fab fa-github"></i> </button> </div> </div> <div class="mx-4 p-3"> <div class="cs-form"> <input type="email" class="form-control" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control" /> <label>Password</label> </div> <p class="text-end">Forgot <a class="text-decoration-none ms-auto" href="#">Password ?</a></p> <button style="width:40%; background:linear-gradient(0deg, rgba(152,117,196,1) 0%, rgba(169,208,213,0.8746849081429446) 100%);" class="btn btn-block my-3 mx-0 font-weight-bold" > Login </button> <p class=" text-end mt-4"> Don't have an account? <a class="text-decoration-none" href="#">Sign Up</a> </p> </div></div>
Sign Up Form with Background Image
HTML
<div class="border d-flex flex-column view" style="width:30rem; background:url(https://images.unsplash.com/photo-1528287942171-fbe365d1d9ac?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&w=1200&cs=srgb&ixid=eyJh); background-size:cover;"> <div class="mask pattern-4"></div> <div class="mx-4 p-3" style="z-index:2;"> <div class="text-center my-5"> <p class="h4 font-weight-bold text-white">Sign up</p> </div> <div class="cs-form"> <input type="email" class="form-control border-top-0 border-left-0 border-right-0" /> <label>E-mail</label> </div> <div class="cs-form"> <input type="password" class="form-control border-top-0 border-left-0 border-right-0" /> <label>Password</label> </div> <div class="d-flex mt-3 align-items-center justify-content-center"> <input type="checkbox" /> <p class="text-white mb-0 ms-2"> Accept the <a class="text-decoration-none" href="#">terms and conditions</a> </p> </div> <button class="btn btn-block my-4"> Sign up </button> <p class="text-white text-center mb-5"> Have an account? <a class="text-decoration-none" href="#">Log in</a> </p> </div></div>
Sign In Forms
HTML
<div class="header">Sign In forms <a href="https://devwares.com/product/bootstrap-contrast-pro" target="_blank" rel="noreferrer" class="text-white text-decoration-none"> <span class="px-3 py-2" style="background-color:#9871ff;">Pro Component</span> </a> </div> <div class="description">Sign In Form in card</div> <div class="example2"> <div class="shadow border d-flex flex-column" style="width:30rem;"> <div class="p-5"> <div class="mt-4 mb-5"> <h4 class="h2 font-weight-bold">Sign up</h4> </div> <label htmlFor="defaultRegisterUsername" class="text-muted m-0"> Username </label> <div class="cs-form"> <input type="text" class="form-control"> <label>Username</label> </div> <label htmlFor="defaultRegisterPassword" class="text-muted m-0"> Password </label> <div class="cs-form"> <input type="password" class="form-control"> <label>Password</label> </div> <button class="btn btn-dark btn-block mb-3 mt-5" > Sign up </button> <p class="text-muted">By Clicking sign up, you agree to the Contrast <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">terms and conditions</a></p> <div class="d-flex align-items-center"> <span style="border:0.5px solid black; width:45%;"></span> <span class="text-center" style="width:10%;">OR</span> <span style="border:0.5px solid black; width:45%;"></span> </div> <div class="my-3 d-flex justify-content-center"> <button class="btn btn-flat btn-dark"> <i class="fab fa-facebook-f"></i> </button> <button class="btn btn-flat btn-dark" > <i class="fab fa-twitter"></i> </button> <button class="btn btn-flat btn-dark"> <i class="fab fa-google-plus-g"></i> </button> </div> <p class="text-muted text-center">Have an Account? <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Sign In</a></p> </div> </div> <div class="shadow border d-flex flex-column mt-4" style="width:30rem;"> <div class="p-5"> <div class="my-4 d-flex align-items-center"> <div> <h4 class="h4 mt-0 font-weight-bold">Sign up</h4> <p class="m-0" style="font-weight:600;">Let's get started</p> </div> <button class="btn btn-outline-dark ms-auto px-4" style="font-weight:600;">Sign Up</button> </div> <label htmlFor="defaultRegisterUsername" class="text-muted m-0"> Username </label> <div class="cs-form"> <input type="text" class="form-control"> <label>Username</label> </div> <label htmlFor="defaultRegisterPassword" class="text-muted m-0"> Password </label> <div class="cs-form"> <input type="password" class="form-control"> <label>Password</label> </div> <button class="btn btn-dark btn-block mb-3 mt-5" > Sign up </button> <p class="text-muted">By Clicking sign up, you agree to the Contrast <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">terms and conditions</a></p> <div class="d-flex align-items-center"> <span style="border:0.5px solid black; width:45%;"></span> <span class="text-center" style="width:10%">OR</span> <span style="border:0.5px solid black; width:45%;"></span> </div> <div class="my-3 d-flex justify-content-center"> <button class="btn btn-dark btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-google-plus-g"></i> </button> </div> <p class="text-muted text-center">Have an Account? <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Sign In</a></p> </div> </div> </div> <div class="example2"> <div class="shadow border d-flex flex-column" style="width:30rem;"> <div class="p-5"> <div class="mt-4 mb-5"> <h4 class="h2 font-weight-bold">Sign in</h4> </div> <label htmlFor="defaultRegisterUsername" class="text-muted m-0"> Username </label> <div class="cs-form"> <input type="text" class="form-control"> <label>Username</label> </div> <label htmlFor="defaultRegisterPassword" class="text-muted m-0"> Password </label> <div class="cs-form"> <input type="password" class="form-control"> <label>Password</label> </div> <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Forgot Password?</a> <button class="btn btn-dark btn-block mb-3 mt-5" > Sign in </button> <div class="d-flex align-items-center"> <span style="border:0.5px solid #555; width:45%;"></span> <span class="text-center" style="width:10%;">OR</span> <span style="border:0.5px solid #555; width:45%;"></span> </div> <div class="my-3 d-flex justify-content-center"> <button class="btn btn-dark btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-google-plus-g"></i> </button> </div> <p class="text-muted text-center">Don't have an Account? <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Sign Up</a></p> </div> </div> <div class="shadow border d-flex flex-column mt-4" style="width:30rem;"> <div class="p-5"> <div class="my-4 d-flex align-items-center"> <div> <h4 class="h4 mt-0 font-weight-bold">Sign in</h4> <p class="m-0" style="font-weight:600;">Welcome Back.</p> </div> <button class="btn btn-outline-dark ms-auto px-4" style="font-weight:600;">Sign Up</button> </div> <label htmlFor="defaultRegisterUsername" class="text-muted m-0"> Username </label> <div class="cs-form"> <input type="text" class="form-control"> <label>Username</label> </div> <label htmlFor="defaultRegisterPassword" class="text-muted m-0"> Password </label> <div class="cs-form"> <input type="password" class="form-control"> <label>Password</label> </div> <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Forgot Password?</a> <button class="btn btn-dark btn-block mb-3 mt-5" > Sign in </button> <div class="d-flex align-items-center"> <span style="border:0.5px solid #555; width:45%;"></span> <span class="text-center" style="width:10%;">OR</span> <span style="border:0.5px solid #555; width:45%;"></span> </div> <div class="my-3 d-flex justify-content-center"> <button class="btn btn-dark btn-flat"> <i class="fab fa-facebook-f"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-twitter"></i> </button> <button class="btn btn-dark btn-flat"> <i class="fab fa-google-plus-g"></i> </button> </div> <p class="text-muted text-center">Don't have an Account? <a style="font-weight:600;" class="text-decoration-none text-dark" href="#">Sign Up</a></p> </div> </div> </div> </div>
Script
<script type="module" src="../js/cdb.js" defer></script>
Build modern projects using Bootstrap 5 and Contrast
Trying to create components and pages for a web app or website from
scratch while maintaining a modern User interface can be very tedious.
This is why we created Contrast, to help drastically reduce the amount of time we spend doing that.
so we can focus on building some other aspects of the project.
Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants.
Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for
building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.