For this styleguide we use <a href="http://prismjs.com/" target="_blank">prism.js</a> as a syntax highlighter and it's already included in the Volta package along with our theme.

However, here's a reference table in case you need to use a different plug-in and style your own theme.

<h2>Light theme</h2>

<section class="element element--codesnippets">
    <div class="Vlt-table Vlt-table--data Vlt-table--tall">
        <table>
            <thead>
                <tr>
                    <th>Element</th>
                    <th>Style</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Font</td>
                    <td><b>monospace 15px</b></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Buttons (e.g. copy) </td>
                    <td><b>Small tertiary buttons</b></td>
                    <td><a href="/storybook/?path=/story/components-buttons--hierarchy">See component</a></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Background</td>
                    <td><b>@grey-lighter</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #f3f3f5; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#f3f3f5</td>
                </tr>
                <tr>
                    <td>Tags</td>
                    <td><b>@grey-darker</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #616266; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#616266</td>
                </tr>
                <tr>
                    <td>Line numbers</td>
                    <td><b>@grey</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #c2c4cc; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#c2c4cc</td>
                </tr>
                <tr>
                    <td>Selected text</td>
                    <td><b>@blue at 50% alpha</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: rgba(102, 159, 196, 0.5); border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>rgba(102, 159, 196, 0.5)</td>
                </tr>
                <tr>
                    <td>Attr-name</td>
                    <td><b>@blue</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #669fc4; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#669fc4</td>
                </tr>
                <tr>  
                    <td>Attr-value</td>
                    <td><b>@orange</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #fa7454; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#fa7454</td>
                </tr>
                <tr>  
                    <td>Function</td>
                    <td><b>@blue-dark</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #4d7793; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#4d7793</td>
                </tr>
                <tr>  
                    <td>String</td>
                    <td><b>@green-dark</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #2d966f; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#2d966f</td>
                </tr>
                <tr>  
                    <td>Keyword</td>
                    <td><b>@indigo-dark</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #ab197d; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#ab197d</td>
                </tr>
                <tr>  
                    <td>Variable</td>
                    <td><b>@orange</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #fa7454; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#fa7454</td>
                </tr>
                <tr>  
                    <td>Operator</td>
                    <td><b>@indigo-dark</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #ab197d; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#ab197d</td>
                </tr>
                <tr>  
                    <td>Constant</td>
                    <td><b>@blue</b></td>
                    <td style="text-align: center; background: #f3f3f5"><div style="background: #669fc4; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#669fc4</td>
                </tr>
            </tbody>
        </table>
    </div>
</section>

<h2>Dark theme</h2>

<section class="element element--codesnippets">
    <div class="Vlt-table Vlt-table--data Vlt-table--tall">
        <table>
            <thead>
                <tr>
                    <th>Element</th>
                    <th>Style</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Font</td>
                    <td><b>monospace 15px</b></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Buttons (e.g. copy) </td>
                    <td><b>Small tertiary buttons</b></td>
                    <td><a href="/storybook/?path=/story/components-buttons--hierarchy">See component</a></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Background</td>
                    <td><b>@black</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #131415; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#131415</td>
                </tr>
                <tr>
                    <td>Tags</td>
                    <td><b>@blue-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #80c7f5; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#80c7f5</td>
                </tr>
                <tr>
                    <td>Line numbers</td>
                    <td><b>@grey-dark</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #9b9da3; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#9b9da3</td>
                </tr>
                <tr>
                    <td>Selected text</td>
                    <td><b>@blue at 50% alpha</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: rgba(102, 159, 196, 0.5); border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>rgba(102, 159, 196, 0.5)</td>
                </tr>
                <tr>
                    <td>Attr-name</td>
                    <td><b>@green-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #86d8b9; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#86d8b9</td>
                </tr>
                <tr>  
                    <td>Attr-value</td>
                    <td><b>@yellow-lighter</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #fff8c0; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#fff8c0</td>
                </tr>
                <tr>  
                    <td>Function</td>
                    <td><b>@orange-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #fcac98; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#fcac98</td>
                </tr>
                <tr>  
                    <td>String</td>
                    <td><b>@green-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #86d8b9; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#86d8b9</td>
                </tr>
                <tr>  
                    <td>Keyword</td>
                    <td><b>@blue-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #80c7f5; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#80c7f5</td>
                </tr>
                <tr>  
                    <td>Variable</td>
                    <td><b>@indigo-light</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #eb90ce; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#eb90ce</td>
                </tr>
                <tr>  
                    <td>Operator</td>
                    <td><b>@grey</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #c2c4cc; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#c2c4cc</td>
                </tr>
                <tr>  
                    <td>Constant</td>
                    <td><b>@green</b></td>
                    <td style="text-align: center; background: #131415"><div style="background: #06ba77; border-radius: 4px; display: inline-block; height: 45px; margin-right: 10px; vertical-align: middle; width: 45px;"></div></td>
                    <td>\#06ba77</td>
                </tr>
            </tbody>
        </table>
    </div>
</section>

<div class="Vlt-callout Vlt-callout--tip">
  <i></i>
  <div class="Vlt-callout__content">
    <strong>For a more indepth guide, please visit the <a href="http://prismjs.com/">Prism.js website</a>.</strong>
  </div>
</div>
