All Projects β†’ madeleineostoja β†’ satchel

madeleineostoja / satchel

Licence: MIT License
The little bag of CSS-in-JS superpowers

Programming Languages

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

Projects that are alternatives of or similar to satchel

Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: ✭ 236 (+1585.71%)
Mutual labels:  styled-components, emotion, css-in-js
Xstyled
A utility-first CSS-in-JS framework built for React. πŸ’…πŸ‘©β€πŸŽ€βš‘οΈ
Stars: ✭ 1,835 (+13007.14%)
Mutual labels:  styled-components, emotion, css-in-js
Onno
Responsive style props for building themed design systems
Stars: ✭ 95 (+578.57%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Tools
Useful interpolated functions for CSS-in-JS
Stars: ✭ 761 (+5335.71%)
Mutual labels:  styled-components, emotion, css-in-js
Filbert Js
A lightweight(~1kb) css-in-js framework
Stars: ✭ 167 (+1092.86%)
Mutual labels:  styled-components, emotion, css-in-js
Styled System
β¬’ Style props for rapid UI development
Stars: ✭ 7,126 (+50800%)
Mutual labels:  styled-components, emotion, css-in-js
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: ✭ 52 (+271.43%)
Mutual labels:  styled-components, emotion, css-in-js
Css In React
🍭 CSS in React - Learn the best CSS in JS frameworks by example
Stars: ✭ 101 (+621.43%)
Mutual labels:  styled-components, emotion, css-in-js
Goober
πŸ₯œ goober, a less than 1KB πŸŽ‰ css-in-js alternative with a familiar API
Stars: ✭ 2,317 (+16450%)
Mutual labels:  styled-components, emotion, css-in-js
Next Dark Mode
πŸŒ‘ Enable dark mode for Next.js apps
Stars: ✭ 133 (+850%)
Mutual labels:  styled-components, emotion, css-in-js
Design System Utils
πŸ‘©β€πŸŽ¨ Access your design tokens with ease
Stars: ✭ 465 (+3221.43%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Components Vs Emotion
a short doc comparing the popular CSS-in-JS libraries styled-components and emotion
Stars: ✭ 204 (+1357.14%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Breakpoints
Simple and powerful tool for creating breakpoints in styled components and emotion. πŸ’…
Stars: ✭ 428 (+2957.14%)
Mutual labels:  styled-components, emotion, css-in-js
Horror
😱 React HTML elements with CSS-in-JS
Stars: ✭ 78 (+457.14%)
Mutual labels:  styled-components, emotion, css-in-js
Twin.macro
πŸ¦Ήβ€β™‚οΈ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, stitches and goober) at build time.
Stars: ✭ 5,137 (+36592.86%)
Mutual labels:  styled-components, emotion, css-in-js
React Next Boilerplate
πŸš€ A basis for reducing the configuration of your projects with nextJS, best development practices and popular libraries in the developer community.
Stars: ✭ 129 (+821.43%)
Mutual labels:  styled-components, emotion, css-in-js
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+14750%)
Mutual labels:  styled-components, emotion, css-in-js
Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components β€” Standard size from Chrome DevTools.
Stars: ✭ 33 (+135.71%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Props
Simple lib that allows you to set styled props in your styled-components without stress.
Stars: ✭ 247 (+1664.29%)
Mutual labels:  styled-components, css-in-js
Awesome Styled Components
A curated list of awesome styled-components resources πŸ’…
Stars: ✭ 2,869 (+20392.86%)
Mutual labels:  styled-components, css-in-js

Satchel

NPM Jest Codecov License

Satchel is a tiny collection of CSS-in-JS utilities that automates common patterns, saves time, encourages consistency, and makes developers' lives easier.

Features

All of Satchel’s utilities return plain strings, so they work almost everywhere. The only prerequisite is that your environment supports nested CSS selectors. Popular CSS-in frameworks like styled-components, Emotion, Linaria, and any other tool built on top of the Stylis preprocessor work out of the box.

Installation & Usage

Install Satchel from NPM

npm i satchel-css

Import Satchel’s utilities and embed them in CSS template strings by wrapping them in ${ } braces.

While Satchel’s utilities will work in plain strings, to support nested selectors out of the box you’ll probably want to use them alongside a CSS-in-JS library like Emotion or styled-components.

import { css } from '@emotion/core';
import { reset, fluid } from 'satchel-css';

const buttonStyles = css`
  ${reset('button')}
  background: blue;
  color: white;
`;

const headingStyles = css`
  ${fluid('font-size', '2rem', '3.5rem')};
`;

API

Read the full documentation at satchel.style

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].