Git Product home page Git Product logo

freestyler's Introduction

Consider using nano-css instead. It is smaller, tested and actively maintained.

libreact logo

freestyler

5th generation React styling library — it is lightning fast, lean, and with gazillion features.

        Yeah, straight from the top of my dome
            As I rock, rock, rock, rock, rock the microphone
                Yeah, straight from the top of my dome
                    As I rock, rock, rock, rock, rock the microphone...

feat.

Typing and autocompletion

CSS Templates

Reference

Installation

npm i freestyler --save

Usage

import {
    css,
    styled,
    rule,
    StyleSheet,
    Component,
    hoc,
    jsxstyle
} from 'freestyler';

import hyperstyle from 'freestyler/lib/react/hyperstyle';
import {styleit, Styleit} from 'freestyler/lib/react/styleit';

Decorate stateful components.

@css({
    border: '1px solid tomato',
})
class App extends Component {
    render () {
        return <div>Hello world!</div>;
    }
}

Or, create "styled" stateless components.

const Bordered = styled.div({
    border: '1px solid tomato',
});
const App = () =>
    <Bordered>Hello world!</Bordered>;

License

Unlicense — public domain.


Are you a freestyler?

freestyler's People

Contributors

renovate-bot avatar renovate[bot] avatar streamich avatar tombyrer 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  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  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  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

freestyler's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

!important

Add env var for adding !import to all rules just like aphrodite.

Ship TypeScript type declarations

Since the project itself is written in TypeScript it should be as simple as setting ”declaration”: true in the tsconfig.json file.

Theming

Maybe add built-in theming support where CSS template receives a theme prop as well, after all CSS templates are for theming.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • fast-af ^0.3.0
  • tslib ^1.9.0
  • @types/react 18.2.75
  • @types/enzyme 3.10.18
  • @types/enzyme-to-json 1.5.7
  • @types/jest 29.5.12
  • @types/node 20.12.5
  • @types/prop-types 15.7.12
  • enzyme 3.11.0
  • enzyme-to-json 3.6.2
  • enzyme-adapter-react-16 1.15.8
  • gulp 5.0.0
  • gulp-typescript 5.0.1
  • husky 9.0.11
  • jest 29.7.0
  • jest-tap-reporter 1.9.0
  • lerna 8.1.2
  • lint-staged 15.2.2
  • prettier 3.2.5
  • prop-types 15.8.1
  • react 18.2.0
  • react-dom 18.2.0
  • react-test-renderer 18.2.0
  • rimraf 5.0.5
  • source-map-support 0.5.21
  • ts-jest 29.1.2
  • ts-node 10.9.2
  • typescript 5.4.4
  • tslib 1.14.1
  • ts-loader 9.5.1
  • webpack-dev-server 5.0.4
  • webpack 5.91.0
  • yarn 1.22.22
  • chai 5.1.0
  • @storybook/react 8.0.6
  • @storybook/addon-actions 8.0.6
  • @storybook/addon-links 8.0.6
  • mol-conventional-changelog 1.4.3
  • semantic-release 23.0.7
  • gitbook-cli 2.3.2
  • libreact 2.13.3
  • mocha 10.4.0
  • react *
  • react-dom *
travis
.travis.yml
  • node 8

  • Check this box to trigger a request for Renovate to run again on this repository

DOM props

Remove React props (non-DOM attributes) from DOM elements.

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.