Giter Club home page Giter Club logo

fela-workshop's Introduction

Fela Workshop

Build Status

This repository is a collection of typical Fela examples. It uses some helper utilities from Cloudflare's cf-ui library but it's still plain Fela. To make the setup painless we maintain fine-tuned pre-configured set of Fela plugins, enhancers, breakpoints and colors. Everytime we start a new project, we just need to wrap its root with <StyleProvider> component and that's it! You probably want to fork it once you start building your own project.

We also use our own flavor of createComponent that automatically whitelists PropTypes in case we are styling an existing React component.

Note: This repository does not support server-side rendering but it is easy to set it up!

First ten examples cover all CSS syntax and its rewrite into CSS in JS. We will be adding more topics over time.

Content

  1. Basic Syntax
  2. Dynamic Styles
  3. Media Queries
  4. Fonts
  5. Selectors
  6. Prefixes
  7. Fallbacks
  8. Polished
  9. Gotchas
  10. Keyframes (w/o solution, it is a homework)
  11. Testing
  12. Integration
  13. Advanced
  14. Themes
  15. Composition

Prerequisites

Download and install node.js version 6+. I recommend to use Node Version Manager.

Download

git clone https://github.com/tajo/fela-workshop.git
cd fela-workshop
npm install

Development interactive mode

npm start
open http://localhost:8000

Production mode build with server

npm run build
npm run server
open http://localhost:8000

fela-workshop's People

Contributors

tajo avatar

Stargazers

 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

Forkers

deefourple

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.