Giter VIP home page Giter VIP logo

fairybread's Introduction

Stagfoo 🦌

I like making mini programs πŸͺ΄ I aim to spread the Single-responsibility principle as much as possible in my work✨

πŸ’» when I'm not programming I make cute art and mini games πŸ‘Ύ

πŸ‘€ Want to contribute?

If you are interested in contributing to any of my projects, feel free to reach out to me through the GitHub repo.

Thank you for visiting my page!

πŸͺ¨ Completed

Here are some projects that I have either completed or put on hold:

πŸͺ΄ My "Libraries"

fairybread's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fairybread's Issues

NOTICE: Breaking Change in v2

I have added options to give fairybread more power in the future, this means the old syntax new Fairybread('global') should be replaced with new Fairybread({global: true})

Nesting

Allow nesting of rules

nav {
 background:red;
 li {
    background:black;
     a { color:green;}
    }
}

Add Typing

add typing to functions now its typescript based

Better Example Site

create a better example site for fairybread

  • focus on easy of use,
  • easy of understanding
  • no new syntax

Suggestion: sheet.render returns a promise

Fulfilling the promising after the style tag is inserted in the DOM would allow the client programmer to orchestrate the rendering process in their application so that no components show without style for a fraction of a second.

Create mini version

just this util

const styles = css`
   :host a {
        color: red
    }
  body { background:${green} }
`
<style id="fairybread_xjRSIWrtA3kBepAHLZsM">
    .fairybread_xjRSIWrtA3kBepAHLZsM a {
        color: red
    }
    body { background: green }
</style>

New Options for Tagged Template function

add option to allow tagged template function to return a style for react applications

Example

const sheet = new Fairybread({
 global: false,
 template: 'string'
})

Tagged Templates

take the plain text function from stagfoo/soshi and create a ceremony-less function

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.