GithubHelp home page GithubHelp logo

wintercounter / ccss Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 7.0 2.49 MB

๐Ÿ”ก๐Ÿ”๐ŸŽจ CrypticCSS - A companion on the journey to your next CSS-in-JS and/or design system solution.

Home Page: https://ccss.dev

TypeScript 79.58% JavaScript 18.67% CSS 1.75%
ccss css styled-components styled-system emotion minfy mangle design-system react

ccss's Introduction

ย 
๐Ÿ”ก๐Ÿ”๐ŸŽจ

CrypticCSS - A companion on the journey to your next CSS-in-JS and/or design system solution.

Documentation

ccss's People

Contributors

andormade avatar bafxyz avatar nmarton92 avatar pablohpsilva avatar wintercounter 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

Watchers

 avatar  avatar  avatar  avatar

ccss's Issues

Support styled-components `keyframes`

Right now the CCSS lib doesn't support the usage of styled-components/keyframes when setting an animation. It would be nice to have a way to use it since we have ccssd available for us.

Failed tries examples

const pulsing = keyframes`...`
const Pulse = ccssd({
 animation: `${pulsing} 1.5s linear infinite`,
 opacity: 0,
 zIndex: -1,
 borderStyle: 'solid'
})

// Output:
Uncaught Error: It seems you are interpolating a keyframe declaration (fEDYHN) into an untagged string. 
This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now 
injected on-demand. Please wrap your string in the css\`\` helper which ensures the styles are injected correctly.

Piggybacking the error on the example above, we have the second failed try:

const pulsing = keyframes`...`
const Pulse = ccssd({
 animation: css`${pulsing} 1.5s linear infinite`,
 opacity: 0,
 zIndex: -1,
 borderStyle: 'solid'
})

// Output:
styled-components.browser.esm.js:154 Uncaught Error: It seems you are interpolating a keyframe
declaration (fEDYHN) into an untagged string. This was supported in styled-components v3, but is
not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in
the css\`\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css

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.