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.


                <!-- Tab into this radio group and use your arrow keys! -->

<fieldset style="--sibling-count: 8">
  <input style="--sibling-index: 1" type="radio" name="cyclical-group" checked>
  <input style="--sibling-index: 2" type="radio" name="cyclical-group">
  <input style="--sibling-index: 3" type="radio" name="cyclical-group">
  <input style="--sibling-index: 4" type="radio" name="cyclical-group">
  <input style="--sibling-index: 5" type="radio" name="cyclical-group">
  <input style="--sibling-index: 6" type="radio" name="cyclical-group">
  <input style="--sibling-index: 7" type="radio" name="cyclical-group">
  <input style="--sibling-index: 8" type="radio" name="cyclical-group">


  Bramus has a great post on CSS trig functions 

  Radio groups naturally have cyclical keyboard interaction,
  all I did here was make it a circle 🤓

@layer demo {
  fieldset {
    /* divide circle by total children */
    --_offset: calc(360deg / var(--sibling-count));
    /* size also used for circle translateX and Y */
    --_circle-size: 25vmin;
    inline-size: var(--_circle-size);
    block-size: var(--_circle-size);
    /* 1x1 centered cell */
    --_cell-size: 10vmin;
    display: grid;
    place-content: center;
    grid: var(--_cell-size) / var(--_cell-size);
    /* stack them together in 1 cell */
    > * {
      grid-area: 1/1;
  input {
    /* take child index * circle fraction offset */
    --_angle: calc(var(--sibling-index) * var(--_offset));
    /* cos() translateX, sin() translateY */
      calc(cos(var(--_angle)) * var(--_circle-size))
		  calc(sin(var(--_angle)) * var(--_circle-size))

@layer {
  * {
    box-sizing: border-box;
    margin: 0;

  html {
    block-size: 100%;
    color-scheme: dark light;

  body {
    min-block-size: 100%;
    font-family: system-ui, sans-serif;

    display: grid;
    place-content: center;
  fieldset {
    border: none;
    padding: 0;
    /* debug or make a flower */
/*     border-radius: 50%;
    background: Highlight; */