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 class="basic">basic</div>
<div class="soft">soft</div>
<div class="turn">turn</div>
<div class="razor">razor</div>
<div class="hard">hard</div>


.basic {
  background: conic-gradient(yellow, green, blue);
.soft {
  /* re*/
  background: conic-gradient(from 90deg, #fff, #000, #fff);
.turn {
  /* détermine l’angle de la couleur de départ en degrés et la couleur finale par un tour complet autour du cercle */
  background: conic-gradient(#fff 0deg, #000 1turn);
.razor {
  /* le centre est à 50% de la gauche, 30% du haut */
  /* le départ du dégradé est à 1/4 de tour (0.25turn) */
  /* le jaune s’arrête à 8 degrés (8deg) */
  background: conic-gradient(from 0.25turn at 50% 30%, yellow, 8deg, green);
.hard {
  /* si un color-stop a deux valeurs, la couleur s’étend de l’une à l’autre */
  background: conic-gradient( 
     yellow 6deg, green 6deg 18deg, blue 18deg 45deg, 
     yellow 45deg 60deg, green 60deg 200deg, blue 200deg);

/* démo */
body { display: flex; gap: 1em; flex-wrap: wrap; font-family: monospace; font-size: 12px; }
div { display: grid; place-content: center;  height: 120px; width: 200px; color: white;}