npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

postcss-easywyg-describe

v1.0.2

Published

Parse special Easywyg comments placed in CSS file and generate JSON output

Downloads

9

Readme

postcss-easywyg-describe

A plugin for PostCSS.

Parse special Easywyg comments placed in CSS file and generate JSON output. Using this JSON Easywyg will generate dropdown style menu for you.

Install

npm install postcss-easywyg-describe

Usage

postcss([
  easywygDescribe(json => {
    console.log(json);
  })
]).process(css)

How Easywyg comments looks like?

See https://github.com/easywyg/content-styles for details.

/*! Name: Paragraph
 * Group: Paragraphs
 */
p { color: inherit; }

/*! Name: Centered Paragraph
 * Group: Paragraphs
 */
p.center { text-align: center; }

/*! Name: Bigger Paragraph
 * Group: Paragraphs
 */
p.bigger { font-size: 120%; }

/*! Name: Right Aligned Paragraph
 * Group: Paragraphs
 */
p.right  { text-align: right; }

/*! Name: Heading H1
 * Group: Paragraphs
 */
h1 { color: inherit }

/*! Name: Heading H2
 * Group: Paragraphs
 */
h2 { color: inherit; }

/*! Name: Heading H3
 * Group: Paragraphs
 */
h3 { color: inherit; }

/*! Name: Heading H4
 * Group: Paragraphs
 */
h4 { color: inherit; }

/*! Name: Heading H5
 * Group: Paragraphs
 */
h5 { color: inherit; }

/*! Name: Heading H6
 * Group: Paragraphs
 */
h6 { color: inherit; }

/*! Name: Headline
 * Group: Paragraphs
 */
h3.headline {
  text-align: center;
  margin: 2em 0;
  color: #4b96e1;
  font-weight: normal;
}

/*! Name: Blockquote
 * Group: Paragraphs
 */
blockquote { color: inherit; }

/*! Name: Annotation
 * Group: Paragraphs
 */
blockquote.annotation {
  margin: 2em 5em;
  font-style: italic;
  padding: 0;
  padding: 15px;
  border-radius: 4px;
}

/*! Name: Preformatted Text
 * Group: Paragraphs
 */
pre { color: inherit; }

/*! Name: Bold
 * Group: Formatting
 */
strong { color: inherit; }

/*! Name: Italic
 * Group: Formatting
 */
em { color: inherit; }

/*! Name: Strike
 * Group: Formatting
 */
s { color: inherit; }

/*! Name: Underline
 * Group: Formatting
 */
u { color: inherit; }

/*! Name: Quote
 * Group: Formatting
 */
q { color: inherit; }

/*! Name: Code
 * Group: Formatting
 */
code { color: inherit; }

/*! Name: Address
 * Group: Formatting
 */
address { color: inherit; }

/*! Name: Subscript
 * Group: Formatting
 */
sub { color: inherit; }

/*! Name: Superscript
 * Group: Formatting
 */
sup { color: inherit; }

/*! Name: Smaller Text
 * Group: Formatting
 */
small { color: inherit; }

/*! Name: Variable or Formula
 * Group: Formatting
 */
var { color: inherit; }

/*! Name: Sample Text
 * Group: Formatting
 */
samp { color: inherit; }