Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

It would be nice to create CSS ASTs in unist. Is there any project like this? Something like hast but for CSS instead HTML. Or something like css-tree but for unified ecosystem. What do you think about it?

Thank you.

You must be logged in to vote

You can also see some past discussion and implementation here: unifiedjs/ideas#3

Replies: 1 comment · 2 replies

Comment options

Could be simple, like esast over estree: https://github.com/syntax-tree/esast. css-tree already uses types, so it would mainly be about position field (and maybe JSON compatibility?).

That being said, a “standard” without things using it isn’t very useful. Potentially even bad. So there’d need to be an ecosystem too.

You must be logged in to vote
2 replies
@justbyitself
Comment options

I'm agree.

The best of unified is its ecosystem. If CSSTree would use unist, I'm sure a nice ecosystem around would grow around soon. For example, It would be nice something like hastscript but for build CSS trees. And many little plugins could transform that trees in many ways.

Thank you for your answer.

@ChristianMurphy
Comment options

You can also see some past discussion and implementation here: unifiedjs/ideas#3

Answer selected by justbyitself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.