csstree (@csstree) profile picture

A tool set for working with with CSS including fast detailed parser, walker, generator and lexer based on knowledge of W3C specs and browser implementations

Joined September 2016
Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)Photo by csstree (@csstree)
📦 Package of the Day css-tree npmjs.com/package/css-tree CSSTree is a toolset for CSS; fast detailed parser, walker, generator and lexer (validation and matching) based on specs and browser implementations. #javascript #nodejs #npmPackageOfTheDay #100DaysOfCode
7
10
BTW, big up on @csstree – IMHO the most advanced Open Source CSS parser around. Learned a lot from it. You can drop me a message if you'd like to talk more about CSS – my DMs are open 😄
1
4
This is how CSS suggestions should work:
CSS Intellisense redefined – we're bringing context-aware suggestions for CSS to Visual Studio Code shortly, yielding an unparalleled developer experience. A sneak peak of complex grid syntax:
1
1
13
CSS syntax is hard and that’s why:
1/ Typing/validation/typeahead for CSS is much complicated that you might thought: - Dictionaries are incomplete, specs changing frequently, browsers support inconsistent + extensions and legacy - Some parts of CSS rules aren’t reflecting in syntax definitions, but in prose
1
6
csstree might be the only actual grammar implementation; I'm certainly not aware of any others! Implicit commas being complicated makes sense, given how annoying it is to write some grammars *without* the feature. ^_^
1
2
3
Good talk by @rdvornov how he wrote @csstree, CSS parser which 3 times faster than @PostCSS. slideshare.net/basisjs/css-p…
1
10
1
36
It’s so inspiring, just now @sitnikcode (author of @PostCSS, @Autoprefixer and many others) promoted @csstree on the @pitercss_conf stage 😍
4
14
📣 compat-tester 0.2.1 is out 📣 🔗 npmjs.com/package/compat-tes… compat-tester uses @MozDevNet new structured dataset about compatibility to diagnose a (local) website or files about potential compatibilities issues 🐣Alpha-stage and I'm new to Node/npm world so proceed w/ care🐣
1
8
1
14
I feel like Robin Hood, helped a couple of good projects better use @csstree. As a result, cleaner code, robust solutions and better performance. Here are the merged PRs 😎 github.com/peterbe/minimalcs… github.com/pocketjoso/pentho…
1
9
🔥 New CSSTree match tree (WIP) will be much useful! Syntax reference already used it for match trace 😍 Try it out: csstree.github.io/docs/synta…
1
2
Replying to @Jack_Franklin
We use stylelint, but github.com/csstree/csstree also looks interesting (with IDE plugins)
1
2
1.0.0-alpha23/24 – Changes in AST format for Rule & Atrule, minor bug fixes and improvements github.com/csstree/csstree/r… github.com/csstree/csstree/r…
2
1
Just tried github.com/csstree/stylelint… on a big project and it's fantastic. 👍 @rdvornov! (Another reason to consider plain CSS.)
1
5
8
Used css-tree by @rdvornov to generate flow typing for CSS properties: coming soon to github.com/prometheusresearc… more type safety to CSS-in-JS!
6
18