Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <div id="termynal" data-termynal data-ty-typeDelay="40" data-ty-lineDelay="700">
    <span data-ty="input" data-ty-prompt="▲">npm uninstall react</span>
    <span data-ty>Are you sure you want to uninstall 'react'?</span>
    <span data-ty="input" data-ty-typeDelay="1000" data-ty-prompt="(y/n)">y</span>
    <span data-ty="progress" data-ty-progressChar="·"></span>
    <span data-ty>Uninstalled 'react'</span>
    <span data-ty="input" data-ty-prompt="▲">node</span>
    <span data-ty="input" data-ty-prompt=">">Array(5).fill('🦄 ')</span>
    <span data-ty>['🦄', '🦄', '🦄', '🦄', '🦄']</span>
    <span data-ty="input" data-ty-prompt="▲">cd ~/repos</span>
    <span data-ty="input" data-ty-prompt="▲ ~/repos"> git checkout branch master</span>
    <span data-ty="input" data-ty-prompt="▲ ~/repos (master)">git commit -m "Fix things"</span>


                body {
    --color-bg: #ddd;
    --color-text: #1a1e24;
    --color-text-subtle: #D76D77;

    padding: 0; margin: 0;
    background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;   
    justify-content: center;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;

 * termynal.js
 * @author Ines Montani <>
 * @version 0.0.1
 * @license MIT

:root {
    --color-bg: #252a33;
    --color-text: #eee;
    --color-text-subtle: #a2a2a2;

[data-termynal] {
    width: 750px;
    max-width: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 18px;
    font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;
    border-radius: 4px;
    padding: 75px 45px 35px;
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;

[data-termynal]:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    /* A little hack to display the window buttons in one pseudo element. */
    background: #d9515d;
    -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
            box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;

[data-ty] {
    display: block;
    line-height: 2;

[data-ty]:before {
    /* Set up defaults and ensure empty lines are displayed. */
    content: '';
    display: inline-block;
    vertical-align: middle;

[data-ty-prompt]:before {
    margin-right: 0.75em;
    color: var(--color-text-subtle);

[data-ty="input"]:before {
    content: '$';

[data-ty][data-ty-prompt]:before {
    content: attr(data-ty-prompt);

[data-ty-cursor]:after {
    content: attr(data-ty-cursor);
    font-family: monospace;
    margin-left: 0.5em;
    -webkit-animation: blink 1s infinite;
            animation: blink 1s infinite;

/* Cursor animation */

@-webkit-keyframes blink {
    50% {
        opacity: 0;

@keyframes blink {
    50% {
        opacity: 0;




var termynal = new Termynal('#termynal');