Pen Settings

HTML

CSS

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

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

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.

HTML

              
                    <div class="container">

        <div class="window-container">
            <header class="window-header">
                <div class="logo-container">
                    <div class="app-logo">
                        <svg class="app-logo-icon"><use href="#app-icon"></use></svg>
                        <span class="app-name">App Name</span>
                    </div>
                </div>
                <div class="actions-container">
                    <button class="go-back-window window-button-style">
                        <svg class="window-controls-icon"><use href="#window-back"></use></svg>
                    </button>
                    <button class="home-window window-button-style">
                        <svg class="window-controls-icon"><use href="#window-home"></use></svg>
                    </button>
                    <button class="settings-window window-button-style">
                        <svg class="window-controls-icon"><use href="#window-settings"></use></svg>
                    </button>
                    <button class="minimize-window window-button-style">
                        <svg class="window-controls-icon"><use href="#window-minimize"></use></svg>
                    </button>
                    <button class="close-window window-button-style">
                        <svg class="window-controls-icon"><use href="#window-close"></use></svg>
                    </button>
                </div>
            </header>
            <main></main>
            <footer></footer>
        </div>
        
    </div>


    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">

      <symbol id="app-icon" width="28" height="28" viewBox="0 0 28 28">
<path d="M27.9999 14.5194C28.0215 14.5194 21.2296 10.6862 21.2096 10.5735C21.056 9.75874 20.8625 8.41338 19.9256 7.7174C19.1192 7.12364 13.6759 4.67343 13.6651 4.64788C12.6629 3.1652 11.7747 1.61163 11.008 0C10.2798 0.536364 9.68762 1.22956 9.27718 2.02591C8.86674 2.82225 8.6491 3.70037 8.64112 4.59226C5.96717 4.96732 3.4575 6.07941 1.40537 7.79858C6.72736 6.60504 8.26021 7.70537 8.26021 7.70537C6.51781 8.00916 4.83885 8.59328 3.29149 9.43405C1.02293 10.6546 0 12.1203 0 12.1203C0 12.1203 5.1515 10.6787 9.10497 12.0812C7.26135 12.3357 5.54762 13.1556 4.20998 14.4232C12.4041 15.4168 16.4452 22.3765 18.1454 28C18.7706 17.9977 13.682 14.1992 13.682 14.1992C15.1596 14.3029 17.0181 15.4273 18.2069 17.1003C21.8317 16.7005 23.8499 17.7873 23.833 17.7873C23.793 17.7873 25.7928 17.186 27.2028 16.5502C27.0815 16.3713 26.5715 15.7505 26.2812 15.4032C26.3212 15.4062 27.4363 15.3416 27.9999 14.5194ZM16.6817 10.0924C16.7616 10.0729 18.5371 9.58437 19.044 9.77227C19.5047 9.94213 19.514 11.2259 19.514 11.2259C19.514 11.2259 18.4618 11.3702 16.6817 10.0924Z" fill="#E5E5E5"/>
</symbol>


          <!-- window controls icons 30px -->
        <symbol id="window-close" viewBox="0 0 30 30">
            <path d="M15.5941 15.0254L19.6535 10.8629C19.8515 10.6599 19.8515 10.3553 19.6535 10.1523C19.4554 9.94924 19.1584 9.94924 18.9604 10.1523L14.901 14.3147L10.8416 10.1523C10.6436 9.94924 10.3465 9.94924 10.1485 10.1523C9.95049 10.3553 9.95049 10.6599 10.1485 10.8629L14.2079 15.0254L10.1485 19.1878C9.95049 19.3909 9.95049 19.6954 10.1485 19.8985C10.2475 20 10.3465 20 10.5446 20C10.7426 20 10.8416 20 10.9406 19.8985L15 15.736L19.0594 19.8985C19.1584 20 19.2574 20 19.4554 20C19.6535 20 19.7525 20 19.8515 19.8985C20.0495 19.6954 20.0495 19.3909 19.8515 19.1878L15.5941 15.0254Z"/>
        </symbol>

        <symbol id="window-minimize" viewBox="0 0 30 30">
            <path d="M20 19H10V20H20V19Z"/>
        </symbol>

        <symbol id="window-home" viewBox="0 0 30 30">
            <path d="M22.809 13.1L15.009 8L7.20902 13.1C7.00902 13.3 6.90902 13.6 7.10902 13.8C7.30902 14 7.60902 14.1 7.80902 13.9L10.009 12.4V21.4C10.009 21.7 10.209 21.9 10.509 21.9C10.809 21.9 11.009 21.7 11.009 21.4V11.7L15.009 9.1L19.009 11.7V21.4C19.009 21.7 19.209 21.9 19.509 21.9C19.809 21.9 20.009 21.7 20.009 21.4V12.4L22.209 13.9C22.309 14 22.409 14 22.509 14C22.709 14 22.809 13.9 22.909 13.8C23.109 13.5 23.009 13.2 22.809 13.1Z" />
        </symbol>

        <symbol id="window-back" viewBox="0 0 30 30">
            <path d="M20 15.0049H10.8L15.1 9.80846C15.3 9.60859 15.2 9.3088 15 9.10894C14.8 8.90908 14.5 9.00901 14.3 9.20887L9 15.5045L14.3 21.8001C14.4 21.9001 14.5 22 14.7 22C14.8 22 14.9 22 15 21.9001C15.2 21.7002 15.2 21.4004 15.1 21.2006L10.8 16.0042H20V15.0049Z"/>
        </symbol>

        <symbol id="window-settings" viewBox="0 0 30 30">
            <path d="M22 16.3V13.7H19.8C19.7 13.3 19.5 12.9 19.3 12.5L20.9 10.9L19 9.1L17.4 10.7C17 10.5 16.6 10.3 16.2 10.2V8H13.6V10.2C13.2 10.3 12.8 10.5 12.4 10.7L11 9.1L9.1 11L10.7 12.6C10.5 13 10.3 13.4 10.2 13.8H8V16.4H10.2C10.3 16.8 10.5 17.2 10.7 17.6L9.1 19L10.9 20.8L12.5 19.2C12.9 19.4 13.3 19.6 13.7 19.7V22H16.3V19.8C16.7 19.7 17.1 19.5 17.5 19.3L19.1 20.9L20.9 19.1L19.3 17.5C19.5 17.1 19.7 16.7 19.8 16.3H22ZM15 17.8C13.5 17.8 12.2 16.6 12.2 15C12.2 13.5 13.4 12.2 15 12.2C16.6 12.2 17.8 13.4 17.8 15C17.8 16.5 16.5 17.8 15 17.8Z"/>
        </symbol>
        

    </svg>
              
            
!

CSS

              
                //sizes
$windowWidth: 550px;
$windowHeight: 680px;

//colors
$windowBackground: #151515;
$windowBorderColor: #303030;
$windowShadowColor: rgba(0, 0, 0, 0.5);
$appNameColor: #E9E9E9;
$windowButtonBacgroundHover: #404040;
$windowButtonBacgroundHoverClose: #F24F46;
$windowButtonsIconsColor: #808080;
$windowButtonsIconsColorHover: #F4F4F4;
.window-container {
    max-width: $windowWidth;
    min-height: $windowHeight;
    display: flex;
    flex-direction: column;
    background: $windowBackground;
    border: 1px solid $windowBorderColor;
    box-shadow: 0px 2px 10px $windowShadowColor;

    .window-header {
        display: flex;
        justify-content: space-between;
        height: 48px;
        padding-left: 12px;

        .logo-container {
            padding-top: 10px;

            .app-logo {
                display: flex;
                
                .app-logo-icon {
                    width: 28px;
                    height: 28px;
                }

                .app-name {
                    color: $appNameColor;
                    font-size: 14px;
                    line-height: 26px;
                    padding-left: 8px;
                }
            }
        }

        .actions-container {
            display: flex;
        }
    }

}

.window-button-style {
    background-color: transparent;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    transition: background-color 150ms ease;

    .window-controls-icon {
        fill: $windowButtonsIconsColor;
        pointer-events: none;
        user-select: none;
        width: 30px;
        height: 30px;
        transition: fill 150ms ease;
    }

    &:hover {
        background-color: $windowButtonBacgroundHover;

        .window-controls-icon {
            fill: $windowButtonsIconsColorHover;
        }
    }

    &.close-window:hover {
        background-color: $windowButtonBacgroundHoverClose;
    }

    &:focus {outline:none;}

}

//global page setting
body {
    padding: 0;
    margin: 0;
    background-color: #F4F4F4;
    color: #F4F4F4;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4 {
    font-family: inherit; 
    padding: 0px 50px;
    font-weight: 500;
}

h1 {
    background: #202020;
    margin: 0px 0px 50px 0px;
    font-size: 36px;
    line-height: 100px;
}

h2 {
    margin: 0px 0px 50px 0px;
    font-size: 24px;
}

h3 {
    margin: 0px 0px 30px 0px;
    font-size: 18px;
}

h4 {
    color: #808080;
    margin: 0px 0px 20px 0px;
}

.container {
    padding: 0px 50px 50px 50px;

    .icon-style {
        margin-right: 10px;
    }
}

hr {
    border-top: 1px solid #808080;
    border-bottom: none;
    margin: 50px;
}
              
            
!

JS

              
                
              
            
!
999px

Console