Giter VIP home page Giter VIP logo

css-in-js-scratchpad's Introduction

css-in-js-scratchpad

CLI scripts for inspecting the output from popular CSS-in-JS libs. Supported so far:

(To properly support linaria, and to support astroturf, may require using webpack JS API).

Instructions

  1. Each source file must (A) import React, as well as whatever CSS-in-JS library functions they are using, and (B) export a React component called Test, as a named export (not default).
  2. These source files must be placed in their CSS-in-JS library-respective subfolder under src.

Open a terminal and run the appropriate script for your source file:

# for files under src/emotion/
yarn emotion source-filename.jsx

# for files under src/styled-components/
yarn styled-components source-filename.jsx

# for files under src/linaria/
yarn linaria source-filename.jsx

Check the existing source files for examples 😉.

Reference Links

Emotion 11 (next) https://deploy-preview-1600--emotion.netlify.app/ emotion-js/emotion#1600

Styled Components https://styled-components.com/docs/advanced#server-side-rendering

Linaria https://github.com/callstack/linaria https://linaria.now.sh/

Astroturf https://github.com/4Catalyzer/astroturf

css-in-js-scratchpad's People

Contributors

dependabot[bot] avatar lunelson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.