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

https://github.com/bmarkov/cute-css

Visual primitives for components. Use the best bits of ES6 and CSS to style your apps very quickly
https://github.com/bmarkov/cute-css

css css-in-js css3 css3-in-js es6 styled-components web-components

Last synced: about 1 year ago
JSON representation

Visual primitives for components. Use the best bits of ES6 and CSS to style your apps very quickly

Awesome Lists containing this project

README

          

# Cute CSS in JS

 
[![Price](https://img.shields.io/badge/price-FREE-0098f7.svg)](https://github.com/bmarkov/cute-css/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/v/cute-css.svg?style=flat)](https://www.npmjs.com/package/cute-css)
[![License: APACHE](https://img.shields.io/badge/license-APACHE-blue.svg)](https://github.com/bmarkov/cute-css/blob/master/LICENSE)

# <Cute>

## Installation

```js
npm i cute-css
```

[Live Demo ↗](https://bmarkov.github.io/cute-css/)

```
cute`
font-size: 1.5em;
text-align: center;
color: palevioletred;
`
.querySelector('.wrapper');

cute`
padding: 4em;
background: papayawhip;
`
.querySelector('.title');
```

```


Hello!!! I am Cute


```

The above code's result is:

[Screenshot of Cute CSS](https://bmarkov.github.io/cute-css/)

```
cute`
display: inline-block;
border-radius: 3px;
padding: 0.5rem 0;
text-decoration: none;
text-align: center;
font-size: 18px;
line-height: 1.6;
margin: 0.5rem 1rem;
width: 11rem;
cursor: pointer;
background: #3F51B5;
color: #fff;
border: 2px solid #3F51B5;
transition: all 0.2s;

${properties => properties.secondary ? cute.css`
background: white;
color: #3F51B5;
` : ''}

${onhover => cute.css`
background: #444;
color: #fff;
border-color: #444;
`}

${onactive => cute.css`
background: #007ACC;
color: #fff;
border-color: #007ACC;
`}
`
.okButton()
.cancelButton({secondary: true})
```

```
OK
CANCEL
```

[Screenshot of Cute CSS](https://bmarkov.github.io/cute-css/)