A set of tools for Css Battle, directly in the battle interface.
Features :
- Minify your code
- Prettify your code (with prettier)
- Display a grid on your code output
- Display the target on your code output
- Display your html tags outline/background on your code output
- A tool to find shorter css unit (integration of https://u9kels.csb.app/)
- A tool to find shorter css color in hexa (integration of https://48dvyq.csb.app/)
- A tool to increase/decrease numbers in editor with keyboard shortcut, even with a multi-selection
- A tool to see DOM node just inside your code output
- Print, on the fly, the number of characters your code should be once minified
- Replace default skeleton by a shorter and more helpfull one.
- You can hide any almost any part of the interface, including tools bring with this extension.
- You can invert color of the difference tool
- You can configure your default code template for new battle and daily target
Minification and prettification work well with code style like :
<!-- Some html -->
<style>
// Some css
<style>PR are well come ;).
- Install dependancies with
npm install - Run
npm run dev - Open your browser and navigate to chrome://extensions/
- Toggle development mode if needed
- Load unpacked extension as describe here: https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked
- Choose
distdirectory as the extension - Modify the code and it should be reload automatically
Stay short and easy to understand. Use gitmoji to prefix your commit message with an emoji.
To contribute, submit a PR and I will review it as soon as possible.
Please do NOT take PR comment review personnaly, it just a way to keep code clean and maintenable.
Try to keep comment short and easy to understand. Try to follow the conventional comments.