jh3y / driveway

pure CSS masonry layouts
https://jh3y.github.io/driveway
Other
633 stars 85 forks source link

Published to npm? #11

Closed pke closed 7 years ago

pke commented 7 years ago

Seems like this package has not been published in npm yet?

alexcastillo commented 7 years ago

+1

jh3y commented 7 years ago

True! Happy to publish if that's useful for people.

I'm also going to add an optional JavaScript helper for chronological ordering in a revised version soon hopefully.

I've implemented it already here

@jh3y

jh3y commented 7 years ago

Current state of master@v1.0.0 published on npm here :smile:

I'm fully expecting a new issue now to add npm badge and installation to the README :joy:

Spotted a few things I'd like to change so expect some new versions on the way! 🚀

@jh3y

alexcastillo commented 7 years ago

@jh3y Thank you so much for your contributions and getting this done so quickly!

pke commented 7 years ago

Its very useful already, @jh3y thanks a lot! I have created a bunch of reactjs components using ur CSS. Looks really smooth. Maybe it would make sense to convert it to styled-components but I am not sure.

jh3y commented 7 years ago

Thanks for the kind words @alexcastillo 😄

And the same to you @pke 😄

Sounds good. I do like styled-components. That could be a great fit if using within react. I think there are potentially some packages out there that you could use with webpack in order to get access to a stylesheet file as an Object exposing the styles/rules etc.

This could enable potentially something like;

import { dw-cluster } from 'driveway.css'
import styled from 'styled-components'

const Cluster = styled.div`
  ${dw-cluster}
`

@jh3y