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 id="options">
	<p>click on the following buttons to switch modes</p>
	<button onclick="toggleGradient()">gradient</button>
</div>
<div class="dark">
            <div class="card nue">
                <div class="card-head">
                    <h2>heading</h2>
                </div>
                <div class="card-body">
                    <p>A text beneath to describe the usage of dark neumorphism</p>
                    <hr>
                    <br>
                    <p><small>are you still <b>interested</b>?</small></p>
                    <button class="btn btn-nue btn-primary">do</button>
										<button class="btn btn-nue btn-warning">warn</button>
									<button class="btn btn-nue btn-danger">dont</button>
									  <button class="btn btn-nue btn-success">vuala</button>
                </div>
            </div>
        </div>
        <div class="light">
            <div class="card nue">
                <div class="card-head">
                    <h2>heading</h2>
                </div>
                <div class="card-body">
                    <p>A text beneath to describe the usage of light neumorphism</p>
                    <hr>
                    <br>
                    <p><small>are you still <b>interested</b>?</small></p>
                    <button class="btn btn-nue btn-primary">do</button>
										<button class="btn btn-nue btn-warning">warn</button>
									  <button class="btn btn-nue btn-danger">dont</button>
									  <button class="btn btn-nue btn-success">vuala</button>
                </div>
            </div>
        </div>
              
            
!

CSS

              
                #options{
	display: flex;
	flex-direction: column;
	width: 16vw;
	padding: 2rem;
}
body{
     width: 100vw;
     height: 100vh;
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: space-evenly;
     padding: 0;
     margin: 0;
     font-family: sans-serif;
}
 .dark, .light{
     height: 100%;
     width: 100%;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: space-evenly;
}
 .dark{
     background: #2e1227;
}
.dark.g{
	background: linear-gradient(133deg, #2e1227 0%, #000000 100%);
}
 .light{
     background: #f7eff4;
}
.light.g{
	background: linear-gradient(133deg, #ffffff 0%, #f7eff4 100%);
}
 .card{
     padding: 2.5rem;
     margin: 2.5rem;
     border-radius: 43px;
     background: transparent;
     transition: all 0.25s ease-in;
	 align-items: center;
	 justify-content: center;
	 display: flex;
	 flex-direction: column;
}
 .card:hover{
     transform: scale(1.07);
}
 .card-head{
     height: 96px;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     justify-content: space-evenly;
}
 .dark .card-head{
     color: #f7eff4;
     text-shadow: 1px 1px 0px #210D1C, -1px -1px 0px #3D1834;
}
 .light .card-head{
     color: #2e1227;
     text-shadow: 1px 1px 0px #F0E9ED, -1px -1px 0px #FFFFFF;
}
 .btn{
     outline: none;
     border: none;
     padding: 0.7rem 2.5rem;
     font-size: 1rem;
     line-height: 1.5;
     background: transparent;
     width: 90%;
     margin-left: 5%;
     margin-top: 7%;
     font-weight: 900;
     border-radius: 43px;
     transition: all 0.25s ease-in;
}
 .btn:hover{
     cursor: pointer;
     transform: scale(1.07);
}
 .dark .btn-nue{
     border: 1px solid #3D1834;
     background: #2e1227;
     box-shadow: 4px 3px 7px #210D1C, -3px -4px 7px #3D1834;
     color: #f7eff4;
}
 .light .btn-nue{
     border: 1px solid #ffffff;
     background: #f7eff4;
     box-shadow: 4px 3px 7px #F0E9ED, -7px -7px 7px #ffffff;
     color: #2e1227;
}
.btn-primary:hover{
	border: 1px solid #9900ff;
	text-shadow: 0px 0px 1px #9900ff;
}

.btn-warning{
	
}
.btn-warning:hover{
	border: 1px solid #ffff00;
	text-shadow: 0px 0px 1px #ffff00;
}
.btn-danger{}
.btn-danger:hover{
	border: 1px solid #fa000a;
	text-shadow: 0px 0px 1px #fa000a;
}
.btn-success{}
.btn-success:hover{
	border: 1px solid #25d400;
	text-shadow: 0px 0px 1px #25d400;
}
 .dark .card.nue{
     border: 1px solid #3D1834;
     background: linear-gradient(133deg, #2e1227 0%, #2e1227 100%);
     box-shadow: 7px 7px 7px #210D1C, -7px -7px 7px #3D1834;
     color: #f7eff477;
}
 .dark .card.nue:hover{
     background: linear-gradient(133deg, #3d1834 0%, #2e1227 100%);
     box-shadow: 12px 12px 16px #210D1C, -4px -3px 7px #3D1834;
}
 .light .card.nue{
     border: 1px solid #FFFFFF;
     background: linear-gradient(133deg, #f7eff4 0%, #f7eff4 100%);
    ;
     box-shadow: 7px 7px 7px #F0E9ED, -7px -7px 7px #ffffff;
     color: #2e122777;
}
 .light .card.nue:hover{
     background: linear-gradient(133deg, #f7eff4 0%, #F0E9ED 100%);
    ;
     box-shadow: 12px 12px 16px #F0E9ED, -4px -3px 7px #ffffff;
}
 hr{
     border-top: 1px solid black;
     border-bottom: 1px solid white;
}
 .dark hr{
     border-top: 1px solid #210D1C;
     border-bottom: 1px solid #3D1834;
}
 .light hr{
     border-top: 1px solid #F0E9ED;
     border-bottom: 1px solid #FFFFFF;
}
/* Portrait mobile device*/
@media only screen 
  and (max-device-width: 667px) { 
		html, body{
			min-height: 100vh;
			height: auto;
			max-height: unset;
		}
		.dark, .light{
			height: 100vh;
			padding: 2rem;
		}
		body{
			flex-direction: column;
		}
}
              
            
!

JS

              
                function toggleGradient(){
	$(".dark").toggleClass("g");
	$(".light").toggleClass("g");
}

              
            
!
999px

Console