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.


                <!-- see it in action in another color variant at -->
<a href="#" class="btn">
  <div class="inner">
    <span>Neon Button</span>


                $c-main: hsl(57, 100%, 58%); // color added as sass variable to manipulate with lighten & darken

// body styles for demo purposes only
body {
    background: hsl(105, 0%, 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    min-height: 200px;

// necessary for the button & also the only css reset necessary in general
*::after {
    box-sizing: border-box;
    outline: none;

.btn    {
    border-radius: 30px;
    box-shadow: 0 1px 25px hsl(217, 0%, 0%);
    display: inline-block;
    position: relative;
    border-bottom: 1px solid hsl(217, 0%, 24%);
    border-top: 1px solid hsl(217, 15%, 36%);
    white-space: nowrap;
    padding: 2px;
    margin: 1rem;
    text-decoration: none;

    span    {
        color: $c-main;
        background-image: linear-gradient(to bottom, lighten($c-main, 14%) 30%, darken($c-main, 14%) 80%, lighten($c-main, 64%) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        z-index: 9;
        text-transform: uppercase;
        position: relative;
        letter-spacing: 4px;
        line-height: 2;

    &::before {
        content: "";
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        border-radius: 30px;
        filter: blur(1px);
        background: linear-gradient(to bottom, hsl(243, 61%, 61%) 0%, hsl(0, 100%, 59%) 72%);
        opacity: 0.5;
        z-index: 1;

    &::after {
        content: "";
        width: 82%;
        height: 25%;
        display: block;
        position: absolute;
        left: 9%;
        top: 4px;
        border-radius: 20px;
        background: linear-gradient(to bottom, hsla(57, 100%, 98%, 0.2) 0%, hsla(57, 100%, 98%, 0) 100%);
        z-index: 2;

    .inner {
        width: 100%;
        height: 100%;
        display: block;
        background: hsl(307, 10%, 5%);
        box-shadow: inset 0 0 16px $c-main;
        border-radius: 30px;
        border: solid hsl(57, 100%, 48%);
        border-width: 0 1px 1px 1px;
        padding: 0.75rem calc(3rem - 4px) 0.75rem 3rem;

        &::after {
            content: '';
            display: block;
            position: absolute;
            top: -11px;
            left: -11px;
            width: calc(100% + 22px);
            height: calc(100% + 22px);
            border-radius: 30px;
            background: linear-gradient(to bottom, hsla(0, 0%, 30%, 0.4), hsla(0, 0%, 0%, 0.7));
            filter: blur(5px);
            z-index: -1;