TypeScrpit port of the awesome library made by Lea Verou
You can find the original project here
Reason to do it is to learn more about CSS and its grammar but also to provide typings to another project I'm woring on and add some tweaks and fixes.
The idea is to remain consistent with the current API which you can read in the official website.
- Fix tokenization of pseudo-elements with arugments. See original issue 48
- Fix types for universal selector token.
- Improved token types and export them.
- Fix bad reference to TypeScript definition files.
- Fix for attribute values trimmed if ending with i/s (case sensitive flags). See this issue
- Fix for backslashes. See this issue
- 1st version with parse, tokenize, specificity, specificityToNumber and walk APIs