Git Product home page Git Product logo

cssstats's Introduction

Potentially interesting stats on stylesheets.

Installation

git clone https://github.com/cssstats/cssstats
cd cssstats
yarn

Usage

yarn start
open http://localhost:8000

License

MIT


Built by mrmrs, jxnblk, and johno

cssstats's People

Contributors

aputinski avatar bartveneman avatar brntbeer avatar clemmakesapps avatar dependabot[bot] avatar dpogni avatar eli-oat avatar epalmans avatar hoffi avatar johman10 avatar johno avatar jonrohan avatar jxnblk avatar kevinwuhoo avatar lachlanjc avatar lowmess avatar mcsheffrey avatar mrmrs avatar outsideris avatar personjerry avatar radnor avatar sanderteirlynck avatar scott113341 avatar shawnbot avatar sjparkinson avatar wjx0820 avatar zehfernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cssstats's Issues

Add warning message if rules are above ie limit

CSSLINT gives a nice warning about Internet Explorers limit on rules. We should conditionally show something about that.

If css files are dynamically concatenated from a source url - we would need to keep track of rules per file.

Record size of each css file scraped

We should store the file size of each css file we scrape from a user inputted url.
Should note if each file is
a) minified
b) gzipped

We should calculate the minified and gzipped file sizes and display them in comparison to the actual values.

Need to add Ruby plus Sass

┌───=[ mike :: emma -( 0 )-[ ~/code/rprtr ]
└──(grunt build:debug
Running "clean:build" (clean) task
Cleaning "public"...OK

Running "lock" task

Running "concurrent:debug" (concurrent) task
    Warning: Running "sass:debug" (sass) task
    Warning: You need to have Ruby and Sass installed and in your PATH for
    this task to work. More info:
    https://github.com/gruntjs/grunt-contrib-sass Use --force to continue.

    Aborted due to warnings. Use --force to continue.

        Aborted due to warnings.

About Page

Since it's more than just @jxnblk and myself - we should make a rad about page that's easy to add to so that we can give proper shout outs to any contributors.

Use overview as contextual navigation

It's weird that the XX Selectors heading links off the site. I think the expected behavior would be a detail view of selectors.

What about doing contextual navigation for each section in the overview, then linking to further reading materials in footnotes or smaller text?

MOAR DATA

It would be cool to get a whole lot of websites that you could preview.

A quick wishlist

ESPN
Facebook
Disney
BBC
New York Times
Nike
Salesforce
Trulia
Kahn Academy
Code Academy
craigslist

Roll our own csslint and display it in a view

I love the premise of csslint but I think we can make the messaging a bit more useful and display it in a more digestable manner with a web view.

A first pass at things to check for

  • Adjoining classes
  • Ids in selectors
  • Too many !importants
  • More than 16 floats
  • More than x font sizes
  • Elements in selectors
  • If there are more than 4095 selectors in a stylesheet
  • If import is used

CSS Stat any site

I think you should have a big, massive url input box to allow people to enter a URL. I would love to be able to easily view all my CSS stats for my site!

It would be especially useful since I'm optimising a couple of sites at the moment!

Hover states

Link hover states are horrible. Fix them. Design them.

Dynamically generate json file from url

Ideally a user could input a url, the source could be scraped for paths to css files - those css files could be concatenated into one file - then translated into an AST to parse.

Better background images

We should break background images up into gradients and images. Gradients should be included with background colors on the colors page - images should be shown by themselves.

Generate css for abstraction examples

Generate sample abstraction code for things like grid systems, font-sizes, skins, and spacing scales. Could then dump the code out into a text area to be copied.

Add D3.js

Want to add d3.js and start to output some stats as graphs and pie charts.

Better grouping of information

Things seem haphazardly placed across the overview.

Devise a system of organizing principles that can be used across the app.

Things to consider grouping by:

  • High-level stats vs. properties
  • Structural properties vs. skin
  • Unique vs. total
  • Actionable vs. not

Highest specificity score on overview page + tips

Show how many classes you would need on something to override your highest specificity score. This should be helpful in illustrating relationship between filesize and maintainability problems that pop up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.