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

              
                <div class="grid">
    <div class="card">
        <div class="text text-gradient-001">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-002">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-003">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-004">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-005">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-006">Text Gradient</div>
    </div>
        <div class="card">
        <div class="text text-gradient-007">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-008">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-009">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-010">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-011">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-012">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-013">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-014">Text Gradient</div>
    </div>
    <div class="card">
        <div class="text text-gradient-015">Text Gradient</div>
    </div>
</div>


              
            
!

CSS

              
                body {
	width: 100%;
	height: 100%;
  min-height: 100vh;
  padding:0;
  margin:0 auto;
  background: linear-gradient(to bottom, #0a0a0a, #202020 100%);
  background-size: cover;
  background-repeat: no-repeat;
}
.text{
  font-size:36px;
  font-weight:600;
  font-family: 'Poppins', sans-serif;
  color:#f0f0f0;
}

.card{
    padding: 36px 0;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: linear-gradient(180deg, black, transparent);
}

.grid{
    width: 90%;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 5% auto 10%; 
}

@media (min-width:576px) {
    .grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width:767px) {
    .grid{
        gap: 20px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/** Text Gradient 001 */

/** Text Gradient 001 - Autumn Sunset */
.text-gradient-001 {
 color: #c08175;
 background-image: linear-gradient(45deg, #c08175, #2bdc66 33%, #c8abbc 67%, #e8e4af 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 002 - Cool Blue */
.text-gradient-002 {
 color: #FFD9EE;
 background-image: linear-gradient(135deg, #FFD9EE, #4543DE 50%, #6ad3b2 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 003 - Emerald Fire */
.text-gradient-003 {
 color: #138f5f;
 background-image: linear-gradient(135deg, #138f5f, #2aacb4 50%, #e01e38 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 004 - Neon Future */
.text-gradient-004 {
 color: #ff2a6d;
 background-image: linear-gradient(90deg, #ff2a6d, #05d9e8 60%, #a072ff);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 005 - Golden Hour */
.text-gradient-005 {
 color: #ff7e5f;
 background-image: linear-gradient(120deg, #ff7e5f, #f9b16e 40%, #ffdb3a 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 006 - Midnight Forest */
.text-gradient-006 {
 color: #0f3443;
 background-image: linear-gradient(to right, #0f3443, #34e89e 50%, #1d2671 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 007 - Candy Pop */
.text-gradient-007 {
 color: #fc00ff;
 background-image: linear-gradient(45deg, #fc00ff, #ffea00 50%, #00ff8c);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 008 */
.text-gradient-008 {
 color: #3d5c53;
 background-image: linear-gradient(180deg, #3d5c53 , #da8259 33%, #2b8187 67%, #b1f2a9 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 009  */
.text-gradient-009 {
 color: #7df28d;
 background-image: linear-gradient(135deg, #7df28d , #ed88dd 50%, #96b4b5 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 010  */
.text-gradient-010 {
 color: #d4fd88;
 background-image: linear-gradient(135deg, #d4fd88 , #ecee05 33%, #bea3e1 67%, #3b3f91 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 011  */
.text-gradient-011 {
 color: #f8aa7e;
 background-image: linear-gradient(180deg, #f8aa7e , #7292e8 33%, #255df5 67%, #dba518 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 012  */
.text-gradient-012 {
 color: #98e41d;
 background-image: linear-gradient(135deg, #98e41d , #dee6dc 33%, #95cba6 67%, #96d5b6 100%);
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/** Text Gradient 013  */
.text-gradient-013 {
 color: #FFFFFF; 
 background-image: linear-gradient(180deg, #FFFFFF , #E6E6E6 50%, #404040 100%); 
 background-clip: text; 
 -webkit-background-clip: text; 
 -webkit-text-fill-color: transparent; 
}

/** Text Gradient 014  */
.text-gradient-014 {
 color: #fe8675; 
 background-image: linear-gradient(180deg, #fe8675 , #9f851b 33%, #67c6b5 67%, #b92b91 100%); 
 background-clip: text; 
 -webkit-background-clip: text; 
 -webkit-text-fill-color: transparent; 
}

/** Text Gradient 015  */
.text-gradient-015 {
 color: #8152b5; 
 background-image: linear-gradient(180deg, #8152b5 , #9f2e76 33%, #dd97f4 67%, #6a87f6 100%); 
 background-clip: text; 
 -webkit-background-clip: text; 
 -webkit-text-fill-color: transparent; 
}
              
            
!

JS

              
                
              
            
!
999px

Console