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 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.


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.


                <a href="#" target="_blank" id="custom-tweet" class="tweet-style"><i class="fa fa-twitter fa-fw"></i>Share This</a>


                /* Included Font Awesome For Custome tweet */

$button-background-color: #cacaca;

// Default Colors
$default-background-color: #fafafa;
$default-text-color: #0a0a0a;

// Default Dropshadow
@mixin drop-shadow ($height, $width, $blur, $fade) {
  box-shadow: $height $width $blur fade-out(darken($default-background-color, 30%), $fade);

body {
  background-color: $default-background-color;
  color: $default-text-color;

a {
  text-decoration: none;

#tweet {
  margin: 1em;

.tweet-style {
  display: inline-block;
  font-size: 1.5rem;
  padding: 0.2em;
  margin: 0.5em;
  border: 2px solid darken($button-background-color, 15%);
  border-radius: 0.4em;
  background-color: $button-background-color;
  color: darken($button-background-color, 30%);
  @include drop-shadow (3px, 3px, 3px, 0.5);
  transition: 500ms all ease-in-out;
  &:hover {
    color: darken($button-background-color, 50%);
    @include drop-shadow (1px, 1px, 2px, 0.8);
  i {
    font-size: 1.5em;


                /* also see actual documentation on twitter */

/* Twitter code */
window.twttr = (function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0],
    t = window.twttr || {};
  if (d.getElementById(id)) return t;
  js = d.createElement(s); = id;
  js.src = "";
  fjs.parentNode.insertBefore(js, fjs);
  t._e = [];
  t.ready = function(f) {
  return t;
}(document, "script", "twitter-wjs"));
/* end twitter code */

// The Base Twitter url
var twitterEndPoint = "";

// Options We will pass
var options = {
  text: 'Hello World', // The Message
  related: 'freecodecamp', // Referals
  lang: 'en' // Language en = english

  Update the custom-tweet button href attr
  using $.param to url encode our options
  could also use encodeURIComponent on string of options.
  .attr('href', twitterEndPoint + $.param(options));