An easy way to test your CSS.
npm install --save-dev cssguard
cd into-my-project
mkdir test && cd $_ && touch test.html
- Install with npm commands
- Load the csstest.css file into your html.
@import '../node_modules/cssguard/cssguard.css';
or
<link rel="stylesheet" href="../node_modules/cssguard/dist/cssguard.min.css">
- Create your test suite
<main class="test-suite">
<h1 class="test-suite-title">Project name</h1>
<section>
<h1 class="test-module">Test section</h1>
<h3 class="test-it">The test <code>.example-code</code></h3>
<div class="test-run">
<p>Some test here</p>
</div>
</section>
</main>
- Test your component :D
.test-suite
.test-suite-title
.test-module
.test-it
.test-run
MIT © Filipe Linhares