Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


Save Automatically?

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.


                <div class="border border-gray-500 rounded p-4 pb-0 text-gray-700">
  <div class="flex items-center">
      class="rounded-full h-12 w-12 mr-4"
      <h3 class="text-gray-900 text-lg font-bold">Nice Title</h3>
      <h4 class="text-sm">A Very Nice Subtitle</h4>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit accusamus numquam blanditiis obcaecati ullam, fugiat repudiandae autem at nostrum labore doloribus non porro similique eveniet.</p>
      class="link text-blue-600 underline transition-opacity ease-in-out duration-300 hover:opacity-50 focus:opacity-50"
    >Hover/focus me.</a>


                /* This pen is configured to pull in Tailwind CSS with its defaults */

/* Look at the JS tab to see CSS property-value configuration */

/* Global/reset */
body {
  font: 16px/1.5 system-ui, sans-serif;
  margin: 1rem;

h3, h4 {
  font-weight: normal;
  line-height: 1.25;
  margin: 0;

p {
  margin: 1rem 0;


                // See
// The Tailwind config file would look something like this:

module.exports = {
  purge: [],
  presets: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    screens: {
      sm: '640px',
      md: '768px',
      lg: '1024px',
      xl: '1280px',
      '2xl': '1536px',
    colors: {
      blue: {
        600: '#007ace',
      gray: {
        500: '#a0aec0',
        700: '#4a5568',
        900: '#1a202c',
    spacing: {
      0: '0px',
      4: '1rem',
      12: '3rem',
    borderColor: (theme) => ({
    borderRadius: {
      DEFAULT: '0.25rem',
      full: '9999px',
    borderWidth: {
      DEFAULT: '1px',
    fontSize: {
      sm: ['0.875rem', { lineHeight: '1.25rem' }],
      lg: ['1.125rem', { lineHeight: '1.75rem' }],
    fontWeight: {
      normal: '400',
      bold: '700',
    height: (theme) => ({
    margin: (theme, { negative }) => ({
      auto: 'auto',
    opacity: {
      50: '0.5',
    padding: (theme) => theme('spacing'),
    space: (theme, { negative }) => ({
    textColor: (theme) => theme('colors'),
    transitionDuration: {
      DEFAULT: '150ms',
      300: '300ms',
    transitionProperty: {
      opacity: 'opacity',
    transitionTimingFunction: {
      'ease-in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
    width: (theme) => ({
  variantOrder: [
  variants: {
    // Variants to generate for of each CSS property
    opacity: ['hover', 'focus'],
  plugins: [],