In this example below you will see how to do a Material-WebComponents with some HTML / CSS and Javascript

This awesome code was written by ineedthekeyboard, you can see more from this user in the personal repository.
You can find the original code on
Copyright ineedthekeyboard ©


  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <link rel='stylesheet prefetch' href=''>
<link rel='stylesheet prefetch' href=''>

      <link rel="stylesheet" href="css/style.css">



  <body class="mdc-typography mdc-theme--dark">
  <header class="mdc-toolbar mdc-toolbar--fixed demo-toolbar">
    <div class="mdc-toolbar__row">
      <section class="mdc-toolbar__section mdc-toolbar__section--align-start">
        <span class="mdc-toolbar__title">Fake Site</span>
      <section class="mdc-toolbar__section mdc-toolbar__section--align-end" role="toolbar">
        <a href="#" class="material-icons mdc-toolbar__icon" aria-label="Download" alt="Download">file_download</a>
        <a href="#" class="material-icons mdc-toolbar__icon" aria-label="Print this page" alt="Print this page">print</a>
        <a href="#" class="material-icons mdc-toolbar__icon" aria-label="Bookmark this page" alt="Bookmark this page">bookmark</a>
  <main class="mdl-card center">
    <h1 class="mdc-typography--display1">Tell us about yourself!</h1>

    <form action="#" id="greeting-form">
        <div class="mdc-form-field">
          <div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
            <input id="firstname" type="text" class="mdc-text-field__input">
            <label for="firstname" class="mdc-text-field__label">
            First Name
            <div class="mdc-text-field__bottom-line"></div>

        <div class="mdc-form-field">
          <div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
            <input id="lastname" type="text" class="mdc-text-field__input">
            <label for="lastname" class="mdc-text-field__label">
            Last Name
            <div class="mdc-text-field__bottom-line"></div>

      <button type="submit" class="mdc-button
                   mdc-ripple-surface" data-mdc-auto-init="MDCRipple">
      Print Greeting

    <!-- The p element below is where we'll eventually output our greeting -->
    <p class="mdc-typography--headline" id="greeting"></p>
  <div class="mdc-card element-card">
    <section class="mdc-card__media mdc-theme--primary-bg">
      <h1 class="mdc-card__title mdc-card__title--large mdc-theme--text-primary-on-primary">Earth</h1>
      <h2 class="mdc-card__subtitle mdc-theme--text-primary-on-primary">A solid decision.</h2>
    <section class="mdc-card__supporting-text">
      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  <script src=''></script>


    <script  src="js/index.js"></script>



/*Downloaded from */
:root {
  --mdc-theme-primary: #0e4ead;  
html, body {
  background: black;
main {
  margin: 0 auto;
  max-width: 400px;
.center {
  max-width: 900px

/*Downloaded from */