Generates icons for files based on their file type.
Colours files based on their use. Archives are grey, Images are mustard, etc.
Include fileicon.css in your web project with
<link rel="stylesheet" href="/fileicon/fileicon.css">
Follow the examples below to create some icons.
<div class="file-icon file-icon-xl" data-type="jpg"></div>
<div class="file-icon file-icon-lg" data-type="mp3"></div>
<div class="file-icon" data-type="json"></div>
<div class="file-icon file-icon-sm" data-type="webm"></div>
Text is not rendered in XS mode.
<div class="file-icon file-icon-xs" data-type="docx"></div>
If your website doesn't have a white background, you'll want to change the corner colour using a simple CSS rule for your website;
.file-icon::before{
border-color: #color #color rgba(255,255,255,.35) rgba(255,255,255,.35);
}