GithubHelp home page GithubHelp logo

tom2strobl / smooth-shadow Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 1.83 MB

Generate smooth, consistent and always-sexy box-shadows, no matter the size, ideal for design token generation.

Home Page: https://tom2strobl.github.io/smooth-shadow/

License: MIT License

JavaScript 53.65% HTML 19.75% TypeScript 26.60%
box-shadow css shadow

smooth-shadow's People

Contributors

tom2strobl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

smooth-shadow's Issues

Reverse engineer shadows

First of all, thanks for this very helpful plugin! I created a Webflow plugin called Better Shadows using it.

That said, one thing that I'd love to see is a reverse function of getSmoothShadow() (maybe called getSmoothShadowProps()?, where the input is a css shadow declaration, and the output is a list of properties values for distance, intensity, etc. For shadows that were not generated by the package, maybe just throw and error. Do you think that would be possible?

CSS Houdini Implementation

An interesting idea came up today to leverage CSS Houdini to enable a native CSS API like this:

div {
  box-shadow: paint(smooth, 100, 0.5, 0.5);
}

I welcome anyone that is interested to take a stab at this.

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.