All Projects β†’ ImedAdel β†’ Cattous

ImedAdel / Cattous

CSS in JSX for lazy developers, built using styled-components and styled-system

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cattous

Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (+584.21%)
Mutual labels:  styled-components, jsx, 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 (+13418.42%)
Mutual labels:  styled-components, css-in-js
Glamorous
DEPRECATED: πŸ’„ Maintainable CSS with React
Stars: ✭ 3,681 (+9586.84%)
Mutual labels:  styled-components, css-in-js
Design System Utils
πŸ‘©β€πŸŽ¨ Access your design tokens with ease
Stars: ✭ 465 (+1123.68%)
Mutual labels:  styled-components, css-in-js
Styled Components
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress πŸ’…
Stars: ✭ 35,473 (+93250%)
Mutual labels:  styled-components, css-in-js
Reactackle
Open-source components library built with React and Styled-Components.
Stars: ✭ 278 (+631.58%)
Mutual labels:  styled-components, css-in-js
Polished
A lightweight toolset for writing styles in JavaScript ✨
Stars: ✭ 7,074 (+18515.79%)
Mutual labels:  styled-components, css-in-js
zaftig
~2kB css in js: z`display flex` // .zjsdkk43-1
Stars: ✭ 15 (-60.53%)
Mutual labels:  jsx, css-in-js
React Redux Saga Boilerplate
Starter kit with react-router, react-helmet, redux, redux-saga and styled-components
Stars: ✭ 535 (+1307.89%)
Mutual labels:  styled-components, css-in-js
Glamorous Native
React Native component styling solvedπŸ’„
Stars: ✭ 566 (+1389.47%)
Mutual labels:  styled-components, css-in-js
Design System
Priceline.com Design System
Stars: ✭ 604 (+1489.47%)
Mutual labels:  styled-components, css-in-js
Styled Tools
Useful interpolated functions for CSS-in-JS
Stars: ✭ 761 (+1902.63%)
Mutual labels:  styled-components, css-in-js
currency-converter
πŸ’° Easily convert between 32 currencies
Stars: ✭ 16 (-57.89%)
Mutual labels:  styled-components, jsx
Css In Js Benchmarks
Stars: ✭ 360 (+847.37%)
Mutual labels:  styled-components, css-in-js
react-native-css-in-js-benchmarks
CSS in JS Benchmarks for React Native
Stars: ✭ 46 (+21.05%)
Mutual labels:  styled-components, css-in-js
Styled Breakpoints
Simple and powerful tool for creating breakpoints in styled components and emotion. πŸ’…
Stars: ✭ 428 (+1026.32%)
Mutual labels:  styled-components, css-in-js
styled-components-docs-zh
πŸ’… styled-components δΈ­ζ–‡ζ–‡ζ‘£ηΏ»θ―‘ πŸ‡ζŒη»­ζ–½ε·₯δΈ­
Stars: ✭ 160 (+321.05%)
Mutual labels:  styled-components, css-in-js
satchel
The little bag of CSS-in-JS superpowers
Stars: ✭ 14 (-63.16%)
Mutual labels:  styled-components, css-in-js
Language Babel
ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
Stars: ✭ 476 (+1152.63%)
Mutual labels:  styled-components, jsx
Styled Jsx
Full CSS support for JSX without compromises
Stars: ✭ 6,768 (+17710.53%)
Mutual labels:  jsx, css-in-js

Cattous Logo

Cattous 🐱

Easily define your design system and write your CSS using JSX.

Travis npm package Coveralls

How?

  1. Import ThemeProvider from styled-components.
  2. Import Div. (Optionally, you can also import Normalize, and NormalizeOpenType)
  3. Define your theme or import an existing one, like cattous-tachyons.

And πŸŽ‰!

import { ThemeProvider } from "styled-components"
import Div, { Normalize, NormalizeOpenType } from "cattous"
import cattousTachyons from "cattous-tachyons"

const Layout = () => (
  <ThemeProvider theme={cattousTachyons}>
    <Div>
      <Div fontSize={[0,1,2]} color="black" fontWeight="900" as="h1">Cattous.</Div>
      <Div hover="dim" fontSize="24px" as="p">A CSS in JSX library for lazy developers</Div>
    </Div>
  </ThemeProvider>
)

If you would like to add extra styles to Div, you can easily use styled-components for that. as is used to change the resulting HTML element.

const StyledDiv = styled(Div)`
  // insert your CSS here
`

Cattous also comes with Normalize, NormalizeOpenType (by Kenneth Ormandy), and Pesticide for debugging CSS (by Pesticide).

Why?

I recently became fond of styled-components and I couldn't go back to using a CSS file in my projects. However, and especially for small projects, styled-components slows me down because I have to declare a new variable for every HTML element that I want to style.

Rebass and styled-system offered what I wanted, but they were still missing a bunch of CSS properties.

Thus, I made Cattous 🐱 to help me get done with styling my side projects as fast as possible. It uses styled-system API and adds all missing CSS properties along with some styling (cattous-tachyons).

What's still missing?

The project is still under development, although it can be used without any problems.

I am still improving the source code, adding more options for theming, and importing known CSS libraries such as Tachyons (βœ”), Bootstrap, and TailwindCSS.

Questions? Suggestions?

You can find me on Twitter @Imed_Adel or on Linkedin.

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