All Projects โ†’ hauptrolle โ†’ stitches-utils

hauptrolle / stitches-utils

Licence: other
Helpful stitches shorthand utilities combined in one package

Programming Languages

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

Projects that are alternatives of or similar to stitches-utils

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 (+14577.14%)
Mutual labels:  css-in-js, stitches
stitchwind
A bridge between Tailwind and Stitches
Stars: โœญ 33 (-5.71%)
Mutual labels:  css-in-js, stitches
stitches-reset
The famous Eric Meyer's Reset CSS for stitches
Stars: โœญ 35 (+0%)
Mutual labels:  css-in-js, stitches
Stitches
CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
Stars: โœญ 4,402 (+12477.14%)
Mutual labels:  css-in-js, stitches
Oceanwind
Compiles tailwind shorthand into css at runtime
Stars: โœญ 248 (+608.57%)
Mutual labels:  css-in-js
Style Sheet
โšก๏ธ๐Ÿ’จ Fast styles in JavaScript with support for static CSS extraction.
Stars: โœญ 229 (+554.29%)
Mutual labels:  css-in-js
Styled Components Vs Emotion
a short doc comparing the popular CSS-in-JS libraries styled-components and emotion
Stars: โœญ 204 (+482.86%)
Mutual labels:  css-in-js
Css In Js
Autocomplete React Native / JS Styles and converting plain CSS to JS styles
Stars: โœญ 192 (+448.57%)
Mutual labels:  css-in-js
postcss-jsx
PostCSS syntax for parsing CSS in JS literals
Stars: โœญ 73 (+108.57%)
Mutual labels:  css-in-js
Cssobj
Runtime CSS manager, Turn CSS into dynamic JS module, Stylesheet CRUD (Create, Read, Update, Delete) in CSSOM, name space (local) class names
Stars: โœญ 253 (+622.86%)
Mutual labels:  css-in-js
Styled Props
Simple lib that allows you to set styled props in your styled-components without stress.
Stars: โœญ 247 (+605.71%)
Mutual labels:  css-in-js
Freestyler
5th generation CSS-in-JS library
Stars: โœญ 230 (+557.14%)
Mutual labels:  css-in-js
Xwind
Tailwind CSS as a templating language in JS and CSS-in-JS
Stars: โœญ 249 (+611.43%)
Mutual labels:  css-in-js
Axs
Stupid simple style components for React
Stars: โœญ 214 (+511.43%)
Mutual labels:  css-in-js
winampify
โšก A Spotify web client with an OS-looking interface and a reimplementation of the classic audio player Winamp.
Stars: โœญ 180 (+414.29%)
Mutual labels:  css-in-js
Nano Component
Fast & simple React component styles in under 1kb
Stars: โœญ 202 (+477.14%)
Mutual labels:  css-in-js
A Journey Toward Better Style
A Journey toward better style
Stars: โœญ 245 (+600%)
Mutual labels:  css-in-js
Further
๐Ÿฆ„๐ŸŒˆ๐Ÿ„ algebraic style composition for functional UIs
Stars: โœญ 254 (+625.71%)
Mutual labels:  css-in-js
Awesome Styled Components
A curated list of awesome styled-components resources ๐Ÿ’…
Stars: โœญ 2,869 (+8097.14%)
Mutual labels:  css-in-js
Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: โœญ 236 (+574.29%)
Mutual labels:  css-in-js

stitches-utils

All Contributors

Helpful stitches utilities like marginY, marginX etc. combined in one package

GitHub release issues


Installation:

yarn add stitches-utils

or

nom install stitches-utils

Usage:

Import all utils

import { createStyled } from "@stitches/react";
import * as utils from "stitches-utils";

export const { styled, css } = createStyled({
  utils,
});

Import specific utils

import { createStyled } from "@stitches/react";
import { mx, my } from "stitches-utils";

export const { styled, css } = createStyled({
  utils: {
    mx,
    my,
  },
});

Utils overview:

Utility Properties
m marginTop, marginRight, marginBottom, marginLeft
mt marginTop
mr marginRight
mb marginBottom
ml marginLeft
mx, marginX marginLeft, marginRight
my, marginY marginTop, marginBottom
p paddingTop, paddingRight, paddingBottom, paddingLeft
pt paddingTop
pr paddingRight
pb paddingBottom
pl paddingLeft
px, paddingX paddingLeft, paddingRight
py, paddingY paddingTop, paddingBottom
br borderRadius
btlr borderTopLeftRadius
btrr borderTopRightRadius
bblr borderBottomLeftRadius
bbrr borderBottomRightRadius
w width
minW minWidht
maxW maxWidth
h height
minH minHeight
maxH maxHeight
boxSize width, height

Custom utils:

It's also possible to build custom utils by using the composeUtil function.

import { createStyled } from "@stitches/react";
import { composeUtil } from "stitches-utils";

const size = composeUtil("width", "height");

export const { styled, css } = createStyled({
  utils: {
    size,
  },
});

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Achim Rolle

๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ก ๐Ÿ‘€

Bernardo Raposo

๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ก โš ๏ธ ๐Ÿค”

This project follows the all-contributors specification. Contributions of any kind welcome!

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