Pen Settings



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


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.


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.


                <div data-gradient-type="radial-gradient"></div>
<div data-gradient-type="repeating-radial-gradient"></div>


                @import url("");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #222;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 10px;
  padding: 10px 10px 36px;
  font-size: 1.5rem;

div {
  min-height: 30vh;
  border-radius: 5px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
  position: relative;

div::after {
  content: attr(data-gradient-type) "()";
  position: absolute;
  left: 5px;
  right: 5px;
  top: calc(100% + 5px);
  text-align: center;
  font-size: 12px;

div:nth-of-type(1) {
  background-image: radial-gradient(
    circle at center,
    red 20px,
    gold 20px,
    gold 40px,
    red 40px,
    red 60px,
    gold 60px,
    gold 80px,
    red 80px,
    red 100px,
    gold 100px,
    gold 120px,
    red 120px,
    red 140px,
    gold 140px,
    gold 160px,
    red 160px,
    red 180px,
    gold 180px,
    gold 200px,
    red 200px,
    red 220px,
    gold 220px,
    gold 240px,
    red 240px,
    red 260px,
    gold 260px,
    gold 280px,
    red 280px,
    red 300px,
    gold 300px,
    gold 320px,
    red 320px,
    red 340px,
    gold 340px,
    gold 360px,
    red 360px,
    red 380px,
    gold 380px,
    gold 400px,
    red 400px,
    red 420px,
    gold 420px,
    gold 440px,
    red 440px,
    red 460px,
    gold 460px,
    gold 480px,
    red 480px,
    red 500px,
    gold 500px,
    gold 520px,
    red 520px,
    red 540px,
    gold 540px,
    gold 560px,
    red 560px,
    red 580px,
    gold 600px,
    gold 620px

div:nth-of-type(2) {
  background-image: repeating-radial-gradient(
    circle at center,
    red 20px,
    gold 20px,
    gold 40px