Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <button id="switchTheme" type="buttton" onclick="switchTheme()">Toggle Theme</button>

<div class="main">
  <!-- Responsive Login/Signup form can be injected almost anywhere.
 To render the form in signup mode initially, use the tag mode=signup (eg <upend-login mode="signup"></upend-login>). The user can always switch back and forth between the two modes using the links.


                /* Individual text boxes */
upend-login::part(email):focus {
  background-color: #ffffaa;

/* Call to action button (ie log in or sign up)*/
upend-login::part(upend-cta):active {
  background-color: #ffb300 !important;
  box-shadow: 0 2px 4px #ffb300 !important;
  color: black !important;
upend-login::part(upend-cta):hover {
  background-color: #ffa500 !important;
  border-color: #ffa500 !important;
  box-shadow: 0 2px 4px #ffa500 !important;
  color: black !important;

/** Update provider (social) login button(s) */
upend-login::part(provider-login) {
  background-color: #ffb300 !important;

/* Adjust hyperlinks color */
upend-login::part(upend) {
  --upend-link-color: green;

/* Adjust hyperlinks color only for Dark theme */
.dark upend-login::part(upend) {
  --upend-link-color: yellow;

/* Error text color */
upend-login::part(upend) {
  --upend-text-danger: #ff7777;

#switchTheme {
  margin: 10px auto;
  text-align: center;
  display: block;

/* Optional
  Custom wrapper to simulate resposiveness. Adjust width to simulate.
.main {
  max-width: 100%;
  margin: 0 auto;

/* Use the following logic to apply theme colors to your site pages.

NOTE: The Upend theme only applies to its form content and not its parent elements (eg body), thus you must set the rest of the page colors accordingly as below.
body.dark upend-login::part(upend) {
  background-color: #212529;



                function switchTheme() {
  /* Switch between light and dark themes, manually.
   This allows your page to have theme preference at the user level.  
    .forEach((e) => {

      // Adjust body color to match theme