GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - spitlo/revercss: Declaration-first paradigm for lean and consistent CSS.

BranchesTags
Open more actions menu

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.revcss
example.revcss
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

Revercss

Declaration-first paradigm for lean, consistent CSS and increased project maintainibility.

Installation

npm install -g spitlo/revercss

Syntax

In Revercss, style declarations are first-class citizens. Selectors belong to one or many declarations:

color: red {
  a, h1
}

color: rgba(100, 0, 0, .5) {
  #logo,
  ul.menu>li a
}

border: 2px solid {
  button,
  #logo,
  ul.menu>li a
}

text-decoration: none {
  ul.menu>li a
}

min-width: 200px {
  button,
  input[type="text"]
}

padding: 8px {
  button,
  input,
  ul.menu>li a
}

box-sizing: border-box {
  html
}

box-sizing: inherit {
  *, *:before, *:after
}

Usage

Console output:

$ revercss example.revcss

File output

$ revercss example.revcss -o parsed.css

From stdin

$ cat example.revcss | revercss

Options

    -c, --compact        	Output compact CSS
    -m, --minified       	Output minified CSS
    -t, --tabs           	Use tabs instead of spaces in output
    -s, --spaces         	Number of spaces/tabs to indent (default: 2)
    -o, --outfile <file> 	Write to FILE rather than the console
    -h, --help           	Display help and usage details

About

Declaration-first paradigm for lean and consistent CSS.

Topics

cssdevtoolsparadigm-shift

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.