Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/typestyle/csstips

CSS Tips to help beginners using CSS in TS / JS
https://github.com/typestyle/csstips

css css-in-js typescript typestyle

Last synced: 2 days ago
JSON representation

CSS Tips to help beginners using CSS in TS / JS

Awesome Lists containing this project

README

        

# What's here

A bunch of csstips that you can use with TypeStyle. What is a csstip?

- A function that returns a mixin (e.g. `padding`)
- A mixin (e.g. flexbox stuff).
- Functions to make page setup easier (`setupPage`) and CSS designs consistent (`normalize`).

# Quick exploration

Just use TypeScript autocomplete e.g

```ts
import * as csstips from "csstips"
import {style} from "typestyle"


.....Insert a big block of dom here....

```

It essentially makes it easier for:
- Beginners to explore CSS.
- Experts to review CSS / intent.
- Provides examples for how to create mixins / mixin creating functions for TypeStyle.

# Docs

[https://typestyle.github.io](https://typestyle.github.io)