Skip to content

CLI tool to quickly generate CSS structure for HTML components.

License

Notifications You must be signed in to change notification settings

huynhminhson/cssgenerator

Repository files navigation

cssgenerator

CLI tool to quickly generate CSS structure for HTML components.

Status

Travis CI

Getting Started

Prerequisites

  • JRE 8
  • Maven

Installing

  • Clone this repository and find in the target folder a compiled jar file.

Running the tests

mvn test 

Usage

$ java -jar target/cssgenerator-1.0-SNAPSHOT-jar-with-dependencies.jar sample.html

Examples

sample.html

<div class="c-card">
  <div class="header">
    <div class="title"></div>
  </div>
  <div class="body">
    <div class="img"><img src="" alt=""></div>
    <div class="content"></div>
  </div>
  <div class="footer">
    <div class="text"></div>
    <div class="button"></div>
  </div>
</div>

Generated CSS

.c-card {}
.c-card > .header {}
.c-card > .header > .title {}
.c-card > .body {}
.c-card > .body > .img {}
.c-card > .body > .img > img {}
.c-card > .body > .content {}
.c-card > .footer {}
.c-card > .footer > .text {}
.c-card > .footer > .button {}

Screenshots

cssgenerator

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

CLI tool to quickly generate CSS structure for HTML components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published