Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <header><a href="https://codepen.io/road-to-100k/full/GRpvMzb" target="_blank">Try out the new Visual Theme Maker by Clicking Me!</a></header>



<form oninput="finalCode.value = JSON.stringify({
  name: themeName.value,
  author: authorName.value,
  content: {
    teal: teal.value,
    lgreen: lgreen.value,
    orange: orange.value,
    yellow: yellow.value,
    lavender: lavender.value,
    pink: pink.value,
    vlgrey: vlgrey.value,
    lgrey: lgrey.value,
    guiwhite: guiWhite.value,
    black: black.value,
    blue: blue.value,
    green: green.value,
    red: red.value,
    gold: gold.value,
    purple: purple.value,
    magenta: magenta.value,
    grey: grey.value,
    dgrey: dgrey.value,
    white: white.value,
    guiblack: guiBlackDropdown.value,
    paletteSize: 10,
    border: borderSize.value,
  }
})">
  
  

<div class="header">
  <div class="progress-container">
    <div class="progress-bar" id="myBar"></div>
  </div> 
</div>  
  
<form>

 <!-- Future Default Values Changer


 <select style= "border:3px solid #3d6a7b;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #43a4c8;
  color: #ffffff;float: left;" id="changeTheme">
   
  <option value="" hidden selected>Change Default Theme (not finished yet)</option>
  <option value="lightColors">Light Colors</option>
  <option value="darkColors">Dark Colors</option>
  <option value="natural">Natural</option>
  <option value="classic">Classic</option>
  <option value="pumpkinSkeleton">Pumpkin Skeleton</option>
  <option value="forest">Forest</option>
  <option value="midnight">Midnight</option>
  <option value="snow">Snow</option>
  <option value="coralReef">Coral Reef</option>
  <option value="badlands">Badlands</option>
  <option value="bleach">Bleach</option>
</select>  
-->  

 

  
  
<input style= "border:3px solid #3d6a7b;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #43a4c8;
  color: #ffffff;float: right;"

type="button" name="importCode" id="importCode" value="Import Theme (Only works in Visual Theme Maker)" 
       onclick="window.location.href='https://codepen.io/road-to-100k/full/GRpvMzb', '_blank' " 

style="float: right" target="_blank"
}       
/> 

<br><br>  
  
  
  
  
<div class="boxGreen">  
  <h2> Road's Arras.io Theme Maker (v2.0) </h2>
</div>  
<br>
  
  

  
  
<img src="https://res.cloudinary.com/road6943/image/upload/v1539508344/Arras/Supported-Browsers.png" id="supportedThemes" name="supportedThemes"/>  
  
  <img src="https://res.cloudinary.com/road6943/image/upload/v1539508635/Arras/Unsupported-Browsers.png" id="unsupportedThemes"/>
  
<div class="boxGrey">   
   <h6> <a href="https://docs.google.com/spreadsheets/d/1Aw93tmKPomncLDERNs7UsF4SqD9EJ0yzHh5BN2EzJUM/edit?usp=sharing" target="_blank" >(ps: If this theme maker doesn't play well with your computer, then you can still try out my old theme maker!)</a>
</h6>  
</div>
  
  
  
<div class="boxBlue1">  
  <h1>Please enter the name of your theme:
  <br>  
     <input type="text" name="themeName" placeholder="Enter Theme Name Here" style="text-align:center" value="Enter Theme Name Here"/> 
    
    
    <h1>Please enter your name:
  <br>  
     <input type="text" name="authorName" placeholder="Enter Author Name Here" style="text-align:center" value="Enter Author Name Here"/>
</div>
  <br><br>
  
    <!-- Do NOT Remove the value="Enter Theme Name Here" part or else you'll screw up the Theme Code Importer -->

  
  
<div class="boxBlue2">  
  <div class="custom-select" >
   <h1> What type of theme are you making? </h1> <!-- Road - I used 1 unicode space characters before and after the theme names to create some space http://www.fileformat.info/info/unicode/char/00a0/browsertest.htm -->  
    <select id="guiBlackDropdown">
     <option name="guiBlack" id="lightTheme" value="#000000">⠀Light Theme⠀⚪</option>
     <option name="guiBlack" id="darkTheme" value="#ffffff">⠀Dark Theme⠀⚫</option>
   </select>
  </div>
</div>
  <br><br> 

    
  

<div class="boxBlue2">  
  <!-- Road - I used 2 unicode space characters after longest text to create some space http://www.fileformat.info/info/unicode/char/00a0/browsertest.htm-->
  <h1> What color should the map background and room boundaries be? </h1>
    <p>
     <img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/Map%20Background%252FRoom%20Boundaries.png?raw=true"/>
   </p>
 
 <table style="width:auto" cellpadding="10">
    <tr>
      <td>Map Background:</td>
      <td><input type="color" name="white" value="#DBDBDB" /></td> 
    </tr>
    <tr>
      <td>Room Boundaries:</td>
      <td><input type="color" name="dgrey" value="#726F6F"/></td>
    </tr>
  </table>
</div>
  <br><br>
 
  

<div class="boxBlue2">    
  <h1> What colors should the 4 Teams be? </h1>
    <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/Teams3.png?raw=true"/></p>
    <table style="width:auto" cellpadding="10">
    <tr>
      <td>Blue Team (Top Left/Left):</td>
      <td><input type="color" name="blue" value="#3CA4CB"/></td> 
    </tr>
    <tr>
      <td>Green Team (Top Right/Right):</td>
      <td><input type="color" name="green" value="#8ABC3F"/></td>
    </tr>
    <tr>
      <td>Red Team (Bottom Left):</td>
      <td><input type="color" name="red" value="#E03E41"/></td>
    </tr>
    <tr>
      <td>Magenta Team (Bottom Right):</td>
      <td><input type="color" name="magenta" value="#CC669C"></td>
    </tr>
  </table>
</div>
  <br><br>

  
  
<div class="boxBlue2">    
  <!-- Road - I used 2 unicode space characters after longest text to create some space http://www.fileformat.info/info/unicode/char/00a0/browsertest.htm-->
  <h1> What colors do you want the shapes to be? </h1>
  <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/Shapes.png?raw=true"/></p>	
   <table style="width:auto" cellpadding="10">
   <tr>
     <td>Eggs:</td>
     <td><input type="color" name="vlgrey" value="#E8EBF7"/></td>
   </tr>
   <tr>
     <td>Squares:</td>
     <td><input type="color" name="gold" value="#EFC74B"/></td>
   </tr>
   <tr>
     <td>Triangles:</td>
     <td><input type="color" name="orange" value="#E7896D"/></td>
   </tr>
   <tr>
     <td>Pentagons:</td>
     <td><input type="color" name="purple" value="#8D6ADF"></td>
   </tr>
   <tr>
     <td>Crashers:</td>
     <td><input type="color" name="pink" value="#EF99C3"></td>
   </tr>
  </table>
</div>
  <br><br>
  
  
  
<div class="boxBlue2">    
  <!-- Road - I used 2 unicode space characters after longest text to create some space http://www.fileformat.info/info/unicode/char/00a0/browsertest.htm -->
  <h1> What colors do you want the bars to be? </h1>
   <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/bars.png?raw=true"/></p>	
   <table style="width:auto" cellpadding="10">
   <tr>
     <td>Main Health Bar:</td>
     <td><input type="color" name="lgreen" value="#B9E87E"  /></td>
   </tr>
   <tr>
     <td>Shield Bar:</td>
     <td><input type="color" name="teal" value="#7ADBBC" /></td>
   </tr>
   <tr>
     <td>EXP Bar:</td>
     <td><input type="color" name="yellow" value="#FDF380"  /></td>
   </tr>
  </table>
</div>
  <br><br>

  
 
<div class="boxBlue2">    
  <h1> What color do you want barrels, rocks, and the bar backgrounds to be? </h1>
   <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/Barrels%252FRocks.png?raw=true"/></p>	
   Barrels/Rocks/Bar Backgrounds:  <input type="color" name="grey" value="#A7A7AF"/> 
</div>
  <br><br>

 
<div class="boxBlue2">    
  <h1> What color should the in-game text be? </h1> 
   <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/inGameText.png?raw=true"/></p>	
   Text Color:  <input type="color" name="guiWhite" value="#ffffff"  />
</div>
  <br><br>  
  
  
  
  
<div class="boxBlue2">    
  <h1> What color do you want dark borders, text outlines, and health bar backgrounds to be? </h1>
    <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/DarkBorders%252FTextOutlines%252FHealthBarBackground.png?raw=true"/></p>	
    Dark Borders/Text Outlines/Health Bar Backgrounds:  <input type="color" name="black" value="#484848"/>
</div>
  <br><br>


<div class="boxBlue2">  
  <h1> Please enter 2 colors that control the background of the pentagon nest: </h1>  
   <h5> Color 4 blends with the pentagon color and gives the bg color when there is a pentagon nest. </h5>
   <h5> Color 7 blends with the map background color and sometimes gives the color of the middle when there is no pentagon nest. It's basically unused unless purposely enabled in a private server. </h5>	
    <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/Color4%252FColor7.png?raw=true"/></p>	

  <table style="width:auto" cellpadding="10">
    <tr>
      <td>Color 4:</td>
      <td><input type="color" name="lavender" value="#B58EFD"  /></td> 
    </tr>
    <tr>
      <td>Color 7:</td>
      <td><input type="color" name="lgrey" value="#AA9F9E"  /></td>
    </tr>
  </table>
</div>
  <br><br>
  
  
<div class="boxBlue2">  
  <h1> Please enter a border size: </h1>  
   <h5> If you don't know what border size to pick, use 0.5 </h5>
   <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/BorderSize.png?raw=true"/></p>	
   Border Size:  <input type="number" name="borderSize" value="0.5" step="0.1" style="text-align:left"/><p> 
</div>
  <br><br>

  
  
<div class="boxGreen">  
  <h1>Final Code: 
   <br><br>
    <textarea rows='5' cols='80' name="finalCode" id='finalCode' ></textarea>
<br>

<input type="button" id="copyCode" value="⠀Copy Code⠀" onclick="copy_to_clipboard('finalCode');">

<script>
function copy_to_clipboard(id)
{
    document.getElementById('finalCode').select();
    document.execCommand('copy');
    alert("The code has been copied to your clipboard. Please follow the instrcutions below in order to use it in Arras");
}
</script>

  
    
<!-- Don't delete the line under this one! Its not blank, it has a unicode space character! -->
 
<input value='⠀Download Code⠀' type='button' id="downloadCode"
onclick='doDL(document.getElementById("finalCode").value)' />

<script type='text/javascript'>
function doDL(s){
    function dataUrl(data) {return "data:x-application/text," + escape(data);}
    window.open(dataUrl(s));
}
</script>
<!-- Don't delete the line under this one! Its not blank, it has a unicode space character-->  
 
<input type="reset" value="⠀Reset Inputs⠀" id="resetInputs">    
                    
</div>
  
<br><br>  


  
  

<div class="boxBlue2">  
  <h1> How to use your theme in Arras.io: </h1>  
   <p><img src="https://github.com/Road6943/ArrasThemeMaker/blob/master/HowToUseTheme.png?raw=true" id='how2use' name='how2use'/></p>	
 
</div> <br><br>
  
  
    <div class="boxGreen" onclick="window.open('https://codepen.io/road-to-100k/full/OJVaypw', '_blank')">
    <h3><u>Can't Think of a theme? Try Out the Random Theme Generator by clicking here!</u></h3>
  </div>  
  

<div class="boxGrey">   
   <h6> <a>(Special Thanks to CX for (once again) making my code beautiful and readable)</a>
</h6>  
</div>
  
  
<br>




              
            
!

CSS

              
                /* 

Credit where credit is due:

- CSS for the boxes and buttons and textboxes was made by /u/MrDoggyPants for the /r/diepio subreddit
- w3schools.com for a lot of stuff like the copy code and reset buttons, progress bar, and a lot of the styling stuff with js
- StackOverflow helped answer a lot of technical issues and stuff, but I'm too lazy to go back and credit every single StackOverflow user whose code I used
*/


@import url('https://fonts.googleapis.com/css?family=Ubuntu:700,900');

@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');



body {
  font-family: "Ubuntu", "Trebuchet MS", "Helvetica Neue", helvetica, arial, sans-serif;
  margin: 2em;
  background-image: url("https://res.cloudinary.com/road6943/image/upload/v1538771066/Arras/grid.png");
  background-color: #CDCDCD
}


/* Style the header: fixed position (always stay at the top) */
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
}

/* The progress container (grey background) */
.progress-container {
  width: 100%;
  height: 8px;
  background: #ccc;
}

/* The progress bar (scroll indicator) */
.progress-bar {
  height: 8px;
  background: #c86743;
  width: 0%;
}


h2 {
  font-weight: bold;
  color: #fff;
  font-size: 45px;
}

table{
    align: center
    table-layout: fixed;
    border-collapse:collapse;
    margin-left:auto;
    margin-right:auto
}

td {
    display: table-cell;
    vertical-align: inherit;
    font-weight: normal;
    font-size: 16px;
}

th, td {
    overflow: hidden;
}



img {
  not sure why but typing stuff here centers images
  display: block;
  max-width: 33%;
  background:#a7a7b0;
  border-radius: 8px 8px 8px 8px;
	border-top:6px solid #3d6a7b;
  border-bottom:6px solid #3d6a7b;
  border-left:6px solid #3d6a7b;
	border-right:6px solid #3d6a7b;
  padding-left:0px;
	padding-right:0px;
	padding-top:0px;
  padding-bottom:0px;
}


.boxGrey {
	background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:0px solid #86868D;
  border-bottom:0px solid #86868D;
  border-left:15px solid #86868D;
	border-right:15px solid #86868D;
	padding-left:0px;
	padding-right:0px;
	padding-top: 0px;
  padding-bottom: 0px;
	color: #F6F6F6;
}

#supportedThemes{
	background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:6px solid #3A7524;
  border-bottom:6px solid #3A7524;
  border-left:6px solid #3A7524;
	border-right:6px solid #3A7524;
	padding-left:0px;
	padding-right:0px;
	padding-top:0px;
  padding-bottom: 0px;
	color: #F6F6F6;
}


#unsupportedThemes {
	background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:6px solid #CA0813;
  border-bottom:6px solid #CA0813;
  border-left:6px solid #CA0813;
	border-right:6px solid #CA0813;
	padding-left:0px;
	padding-right:0px;
	padding-top:0px;
  padding-bottom: 0px;
	color: #F6F6F6;
}



.boxGreen {
	background:#8abc3f;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #5f7044;
  border-bottom:3px solid #5f7044;
  border-left:3px solid #5f7044;
	border-right:3px solid #5f7044;
	padding-left:6px;
	padding-right:6px;
	padding-top:0px;
  padding-bottom: 0px;
	color: #F6F6F6;
}



.boxBlue1 {
	background:#43a4c8;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #3d6a7b;
  border-bottom:3px solid #3d6a7b;
  border-left:3px solid #3d6a7b;
	border-right:3px solid #3d6a7b;
	padding-left:6px;
	padding-right:6px;
	padding-top:0px;
  padding-bottom: 0px;
	color: #F6F6F6;
}
 
.boxBlue2 {
	background:#43a4c8;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #3d6a7b;
  border-bottom:3px solid #3d6a7b;
  border-left:3px solid #3d6a7b;
	border-right:3px solid #3d6a7b;
	padding-left:6px;
	padding-right:6px;
	padding-top:0px;
  padding-bottom: 20px;
	color: #F6F6F6;
}
  
input[type="submit"]{
  background:#43a4c8;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #3d6a7b;
  border-bottom:3px solid #3d6a7b;
  border-left:3px solid #3d6a7b;
	border-right:3px solid #3d6a7b;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 2px;
	color: #F6F6F6;
}
input[type="submit"]:hover{
  background:#6ab7d4;
}

input[type="tel"]{
  background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #6b696c;
  border-bottom:3px solid #6b696c;
  border-left:3px solid #6b696c;
	border-right:3px solid #6b696c;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 2px;
	color: #F6F6F6;
}
input[type="tel"]:hover{
  background:#bbbbc4;
}


input[type="text"]{
  background:#a7a7b0;
  width: 300px;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #6b696c;
  border-bottom:3px solid #6b696c;
  border-left:3px solid #6b696c;
	border-right:3px solid #6b696c;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 2px;
	color: #F6F6F6;
}
input[type="text"]:hover{
  background:#bbbbc4;
}


input[type="color"]{
  background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #6b696c;
  border-bottom:3px solid #6b696c;
  border-left:3px solid #6b696c;
	border-right:3px solid #6b696c;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 2px;
	color: #F6F6F6;
}
input[type="color"]:hover{
  background:#bbbbc4;
}

input[type="number"]{
  background:#a7a7b0;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #6b696c;
  border-bottom:3px solid #6b696c;
  border-left:3px solid #6b696c;
	border-right:3px solid #6b696c;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 2px;
	color: #F6F6F6;
}
input[type="number"]:hover{
  background:#bbbbc4;
}



.select-selected {
  background:#43a4c8;
	border-radius: 8px 8px 8px 8px;
	border-top:3px solid #3d6a7b;
  border-bottom:3px solid #3d6a7b;
  border-left:3px solid #3d6a7b;
	border-right:3px solid #3d6a7b;
	padding-left:6px;
	padding-right:6px;
	padding-top:2px;
  padding-bottom: 20px;
	color: #F6F6F6;
}

input[type="submit"]:hover{
  background:#6ab7d4;
}


input[type=number]{
    width: 60px;
} 


html {
  text-align: center;
  font-family: Ubuntu, "Trebuchet MS", "Times New Roman", serif;
}


a {
    color: #565456;
}
a:hover {
    color: #111;
}



#guiBlackDropdown{
  width:"auto";
  border:3px solid #5f7044;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #8abc3f;
  color: #ffffff;
  vertical-align: middle;
  height:35px;
}
#guiBlackDropdown:hover {
    background: #a1ca63!important;
}



#copyCode{
  width:"auto";
  border:3px solid #3d6a7b;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #43a4c8;
  color: #ffffff;
}
#copyCode:hover {
    background: #6ab7d4!important;
}


#finalCode{
  border:3px solid #6b696c;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #a7a7b0;
  color: #000000;
  width: 96.5%;
  margin: 0 auto;
  font-family: "Ubuntu Mono",monospace;
}
#finalCode:hover {
    background: #afafb7!important;
}


#resetInputs{
  width:"auto";
  border:3px solid #6b696c;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #a7a7b0;
  color: #ffffff;
}
#resetInputs:hover {
    background: #bbbbc4!important;
}



#downloadCode{
  width:"auto";
  border:3px solid #6b696c;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #a7a7b0;
  color: #ffffff;
}
#downloadCode:hover {
    background: #bbbbc4!important;
}



#how2use{
  max-width:68%;
  border-radius: 8px 8px 8px 8px;
	border-top:6px solid #5f7044;
  border-bottom:6px solid #5f7044;
  border-left:6px solid #5f7044;
	border-right:6px solid #5f7044;
  padding-left:0px;
	padding-right:0px;
	padding-top:0px;
  padding-bottom:0px;
}
}


#importCode{
  width:"auto";
  border:3px solid #3d6a7b;
  border-radius: 8px 8px 8px 8px;
  padding: 2px 6px 2px 6px;
  background-color: #43a4c8;
  color: #ffffff;
}
#importCode:hover {
    background: #6ab7d4!important;
}


#changeTheme:hover {
    background: #6ab7d4!important;
}


select{
    text-align-last:center;
}

u:hover {
  color: green;
}



header {
  position: fixed;
  background-color: #CC669C;
  width: 25%;
  border-radius: 8px;
  padding: 5px;
  font-family: Ubuntu, sans-serif;
  color: white;
}

header a {
  color: white;
  text-decoration: none;
}
header a:hover {
  color: #ccc;
  text-decoration: underline;
  text-decoration-color: #ccc;
}
              
            
!

JS

              
                // When the user scrolls the page, execute myFunction 
window.onscroll = function() {myFunction()};

function myFunction() {
  var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
  var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
  var scrolled = (winScroll / height) * 100;
  document.getElementById("myBar").style.width = scrolled + "%";
}



              
            
!
999px

Console