Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/uzmoi/asarina

Zero-runtime CSS in JS library.
https://github.com/uzmoi/asarina

css css-in-js linaria typescript

Last synced: 27 days ago
JSON representation

Zero-runtime CSS in JS library.

Awesome Lists containing this project

README

        

# Asarina

[![NPM Version][npm-badge]](https://www.npmjs.com/package/asarina)
[![GitHub License][license-badge]](https://opensource.org/license/MIT)

[npm-badge]: https://img.shields.io/npm/v/asarina?style=flat-square
[license-badge]: https://img.shields.io/github/license/uzmoi/asarina?style=flat-square

## Features

- Zero-runtime, as styles are extracted at build time.
- Co-locate styles with components.
- UI framework agnostic.
- Typed by [csstype](https://github.com/frenic/csstype).
- Supports nesting selectors and at-rules.
- Supports `@keyframes`.

## Install

```
npm install asarina
```

## Setup

Asarina is built on [wyw-in-js](https://wyw-in-js.dev).
Check out the following guides:

- [Webpack](https://wyw-in-js.dev/bundlers/webpack)
- [Rollup](https://wyw-in-js.dev/bundlers/rollup)
- [Vite](https://wyw-in-js.dev/bundlers/vite)
- [esbuild](https://wyw-in-js.dev/bundlers/esbuild)