Pen Settings

HTML

CSS

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

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

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.

HTML

              
                // Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke

label text-stroke
p.outline01 OUTLINE
p.outline02 OUTLINE
div.color-box
  p.outline01.color-transparent TRANSPARENT

label text-shadow
p.outline03 OUTLINE
p.outline03-2 OUTLINE
  small (blur)

label text-stroke &amp; text-shadow
p.outline04 OUTLINE

label use SVG
p.center
  .wrap
    svg.svg-outline(viewBox="0 0 400 100")
      text(x="0", y="1em") SVG OUTLINE
p.center
  .wrap
    svg.svg-outline(viewBox="0 0 200 100")
      text(x="0", y="1em") 日本語
  
    
  
              
            
!

CSS

              
                body
  margin: 0
  padding: 1rem
  background-color: #fad500
  text-align: center
label
  font-size: 2rem
p
  color: #fad500
  font-size: 5rem
  letter-spacing: .25rem
  margin: 0 0 1.5rem
small
  font-size: 3rem
.color-transparent
  color: transparent
  
// text-stroke
.outline01
  -webkit-text-stroke: 2px #000
  
.outline02
  display: none
  -webkit-text-stroke-width: 2px
  -webkit-text-stroke-color: #000

// text-shadow
.outline03
  text-shadow: #000 2px 2px 0px, #000 -2px 2px 0px, #000 2px -2px 0px, #000 -2px -2px 0px

// text-shadow use blur
.outline03-2
  text-shadow: #000 2px 2px 1px, #000 -2px 2px 1px, #000 2px -2px 1px, #000 -2px -2px 1px

// text-stroke & text-shadow
.outline04
  -webkit-text-stroke: 1px #000
  text-shadow: #000 1px 1px 0px, #000 -1px 1px 0px, #000 1px -1px 0px, #000 -1px -1px 0px

// svg outline
.svg-outline
  fill: #fad500
  stroke: #000
  stroke-width: 1
  stroke-linejoin: round
  stroke-linecap: round
.color-box
  position: relative
  margin-bottom: 1em
  background-color: #eea128
  overflow: hidden
  &:after
    content: ''
    display: block
    position: absolute
    top: 0
    left: 50%
    height: 100%
    width: 100%
    background-color: #e3010f
    transform: skewX(-30deg)
    z-index: 0
  p
    position: relative
    z-index: 1
    &:last-child
      margin-bottom: 0

.center
  text-align: center
.wrap
  height: 5rem
svg
  font-size: 2rem
  display: inline-block
  margin: auto
  padding: 0
  width: 100%
  height: auto
  overflow: hidden

              
            
!

JS

              
                
              
            
!
999px

Console