Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <h2>Flowbite to CSS</h2>
<button type="button">
  Default
</button>
<button type="button" class="outline">
  Outline Button
</button>
              
            
!

CSS

              
                :root {
  --tw-neutral-50:  #fafafa;
  --tw-neutral-100: #f5f5f5;
  --tw-neutral-200: #e5e5e5;
  --tw-neutral-300: #d4d4d4;
  --tw-neutral-400: #a3a3a3;
  --tw-neutral-500: #737373;
  --tw-neutral-600: #525252;
  --tw-neutral-700: #404040;
  --tw-neutral-800: #262626;
  --tw-neutral-900: #171717;
  --tw-blue-50:  #eff6ff;
  --tw-blue-100: #dbeafe;
  --tw-blue-200: #bfdbfe;
  --tw-blue-300: #93c5fd;
  --tw-blue-400: #60a5fa;
  --tw-blue-500: #3b82f6;
  --tw-blue-600: #2563eb;
  --tw-blue-700: #1d4ed8;
  --tw-blue-800: #1e40af;
  --tw-blue-900: #1e3a8a;
  --tw-size-1: 0.25rem; /* 4px */
  --tw-size-2: 0.5rem; /* 8px */
  --tw-size-3: 0.75rem; /* 12px */
  --tw-size-4: 1rem; /* 16px */
  --tw-size-5: 1.25rem; /* 20px */
  --tw-size-6: 1.5rem; /* 24px */
  --tw-size-7: 1.75rem; /* 28px */
  --tw-size-8: 2rem; /* 32px */
  --tw-size-9: 2.25rem; /* 36px */
  --tw-size-10: 2.5rem; /* 40px */
  --tw-font-medium:     500;
  --tw-rounded-lg:   0.5rem; /* 8px */
  --tw-font-sans:  ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*, *::before, *::after { box-sizing: border-box; }

body {
  color: var(--tw-neutral-700);
  font-family: var(--tw-font-sans);
  line-height: 1.5;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0 1rem;
}

/* text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800 */
button {
  border: none;
  cursor: pointer;
  color: white;
  background-color: var(--tw-blue-700);
  font-weight: var(--tw-font-medium);
  border-radius: var(--tw-rounded-lg);
  padding: var(--tw-size-2) var(--tw-size-5);
}

button:hover {
  background-color: var(--tw-blue-800);
}

/* text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 mb-2 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-500 dark:focus:ring-blue-800 */
button.outline {
  background-color: unset;
  color: var(--tw-blue-700);
  border: 2px solid var(--tw-blue-700);
}

button.outline:hover {
  color: white;
  background-color: var(--tw-blue-800);
}


              
            
!

JS

              
                
              
            
!
999px

Console