nextcss

Postcss alternative.

Playground

Use

package main

import (
	"fmt"
	"github.com/yisar/cssnext/parser"
)

func main() {
	parser := parser.NewParser()

	s := []byte(".a{color:#fff;}")

	ast := parser.Parse(s)

	fmt.Printf("ast: %s\n", ast.ToPrettyJSON())
	
}

GitHub

View Github