0.3.13 • Published 3 years ago

@figouzes/falcon-css v0.3.13

Weekly downloads
33
License
MIT
Repository
github
Last release
3 years ago

What is FalconCSS ?

When contributing to the Figouzes project, I wanted to introduce a type-safe way to write CSS. I got used to a wonderful library called elm-css, which is, in my opinion, a really optimal way of composing CSS (I could never thank RTFeldman enough for his work on elm-css).

It's a collection of types and framework-agnostic functions used to compose CSS. It currently is in very, very early stage and requires some heavy work. It also uses csstype to be as consistent as possible with CSS evolutions.

Examples

With server-side CSS building :

import {
  backgroundColor,
  cssProperties,
  display
} from '@figouzes/falcon-css'

const generateCSS = cssProperties([
  display('inline-block'),
  backgroundColor([200, 255, 150])
])

With styled-components

import {
  backgroundColor,
  cssProperties,
  display
} from '@figouzes/falcon-css'

import { styled } from 'your-styled-components-framework'

const myComponent = styled`
  ${display('inline-block')}
  ${backgroundColor([200, 255, 150])}
`

With a JSS-style framework

import { rgba } from '@figouzes/falcon-css'

import { jss } from 'your-jss-like-framework'

const myElement = jss({
  display: 'inline-block',
  backgroundColor: rgba([200, 250, 150])
})
0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago