All Projects β†’ typestyle β†’ Typestyle

typestyle / Typestyle

Licence: mit
Making CSS Typesafe 🌹

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Typestyle

csx
Utility functions for TypeStyle
Stars: ✭ 92 (-96.87%)
Mutual labels:  css-in-js, typestyle
csstips
CSS Tips to help beginners using CSS in TS / JS
Stars: ✭ 50 (-98.3%)
Mutual labels:  css-in-js, typestyle
adonis
Adonis ❀️ Aphrodite
Stars: ✭ 44 (-98.51%)
Mutual labels:  css-in-js
cease
Simple, isolated CSS-in-JS for React components
Stars: ✭ 21 (-99.29%)
Mutual labels:  css-in-js
styled-jsx-plugin-sass
Plugin to add Sass support to styled-jsx.
Stars: ✭ 20 (-99.32%)
Mutual labels:  css-in-js
styled-components-docs-zh
πŸ’… styled-components δΈ­ζ–‡ζ–‡ζ‘£ηΏ»θ―‘ πŸ‡ζŒη»­ζ–½ε·₯δΈ­
Stars: ✭ 160 (-94.57%)
Mutual labels:  css-in-js
stylelint-processor-glamorous
πŸ’„ Lint glamorous and related css-in-js with stylelint
Stars: ✭ 18 (-99.39%)
Mutual labels:  css-in-js
bredon
A modern CSS value compiler in JavaScript
Stars: ✭ 39 (-98.68%)
Mutual labels:  css-in-js
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (-91.17%)
Mutual labels:  css-in-js
jolvera.dev
Personal blog built with Next.js & Rebass
Stars: ✭ 36 (-98.78%)
Mutual labels:  css-in-js
glory
The world fastest framework agonistic CSS-in-JS library. Available in any frontend framework you use, like React, Vue and Svelte.
Stars: ✭ 20 (-99.32%)
Mutual labels:  css-in-js
veel
Base react styling components using fela with a design system
Stars: ✭ 26 (-99.12%)
Mutual labels:  css-in-js
styletron-connect
A high-level interface to styletron, similar to react-redux's connect
Stars: ✭ 17 (-99.42%)
Mutual labels:  css-in-js
zaftig
~2kB css in js: z`display flex` // .zjsdkk43-1
Stars: ✭ 15 (-99.49%)
Mutual labels:  css-in-js
stitchwind
A bridge between Tailwind and Stitches
Stars: ✭ 33 (-98.88%)
Mutual labels:  css-in-js
isotope
UI library that aims to bring simplicity and intuitiveness back to Web Development. πŸš€
Stars: ✭ 52 (-98.23%)
Mutual labels:  css-in-js
smoothie
A deliciously scalable and adaptable stylesheet methodology 🍹
Stars: ✭ 27 (-99.08%)
Mutual labels:  css-in-js
satchel
The little bag of CSS-in-JS superpowers
Stars: ✭ 14 (-99.52%)
Mutual labels:  css-in-js
React Magic
A collection of magic animations for react components.
Stars: ✭ 264 (-91.03%)
Mutual labels:  css-in-js
material-ui-theme-editor
Theme editor for material UI
Stars: ✭ 92 (-96.87%)
Mutual labels:  css-in-js

TypeStyle

Join the chat at  gitter

Making CSS type safe.

Build Status NPM version Downloads

Writing CSS with TypeStyle will be just as fluent as writing JavaScript with TypeScript.

There are quite a few css in js frameworks out there. This one is different:

  • Provides great TypeScript developer experience.
  • No custom AST transform or module loader support needed.
  • Works with any framework (react, angular2, cyclejs, whatever, doesn't matter).
  • Zero config. Just use.
  • super small (~6k gz)

This project is powered by github 🌟s ^ go ahead and star it please.

Checkout the awesome list of reviews 🌹.

Overview

Quickstart

Use it like you would use CSS modules or CSS in general with webpack etc, but this time you get to use TypeScript / JavaScript!

Install npm install typestyle --save

Use

/** Import */
import {style} from "typestyle";

/** convert a style object to a CSS class name */
const className = style({color: 'red'});

/** Use the class name in a framework of choice */
//  e.g. React
const MyButton =
  ({onClick,children})
    => <button className={className} onClick={onClick}>
        {children}
      </button>
// or Angular2
@Component({
  selector: 'my-component',
  template: `<div class="${className}">Tada</div>`
})
export class MyComponent {}

Guide

We really really want to make CSS maintainable and simple. So we even wrote a free and open source book, covering the super simple core API, a handful of utility styles in csx and tons of other goodness 🌹. Jump to the guide

Video Course

The guide contains everything you need to know. But if you prefer to watch video we have a free course up on egghead.

Why

You are probably here cause you are unhappy with your current workflow. So why not just jump to the guide and give it a go. If you still need reasons we have quite a few.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].