Coder Social home page Coder Social logo

stackswithans / stylin.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from git-marcopitra/stylin.js

1.0 0.0 0.0 3.11 MB

Stylin.js is a Javascript library to provide "all" css attributes builtin under component/element.

Home Page: https://git-marcopitra.github.io/stylin.js

License: MIT License

JavaScript 1.24% TypeScript 92.58% CSS 1.00% HTML 1.20% MDX 3.97%

stylin.js's Introduction

Stylin.js

Stylin Logo

Stylin.js is an style ecosystem to provide the most easy and productive way to style your elements and components in the most of frontend technologies, providing a full "no-tab-change" styling experience.

Introduction

Stylina

Installing: @stylin.js/stylina

You just need to add the cdn (https://unpkg.com/@stylin.js/stylina@<version>) to your script tag with type="module"

Usage: @stylin.js/stylina

<!DOCTYPE html>
<html lang="en">
  ...
  <body in-margin="0" in-padding="0" in-overflow-x="hidden">
    <h1 in-color="blue" in-background-color="red">
      hello <strong in-color="green">world</strong>
    </h1>
  </body>
  <script
    type="module"
    src="https://unpkg.com/@stylin.js/stylina@<version>"
  ></script>
</html>

See more here

STYLIN.JS for React

Installing: @stylin.js/react

To install the package you must have installed node and npm/yarn

# npm
npm install @stylin.js/react

# yarn
yarn add @stylin.js/react

Usage: @stylin.js/react

It's too simple to use React StylinComponents, see what I mean:

import stylin from '@stylin.js/react';
import React from 'react';

const StylinDiv = stylin('div')();

const Home = () => (
  <StylinDiv
    // all your JSX Styles here
    padding="2rem"
    background="#f55"
    borderRadius="1rem"
    on-hover={{
      textAlign: 'right',
    }}
  >
    Hello World
  </StylinDiv>
);

See more here

Contributing

To contribute check the CONTRIBUTING.md.

stylin.js's People

Contributors

git-marcopitra avatar okusindja avatar

Stargazers

 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.