All Projects → ahmadawais → Styled-Responsive-Media-Queries

ahmadawais / Styled-Responsive-Media-Queries

Licence: other
Responsive Media Queries for Emotion styled or styled-components — Standard size from Chrome DevTools.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Styled-Responsive-Media-Queries

Goober
🥜 goober, a less than 1KB 🎉 css-in-js alternative with a familiar API
Stars: ✭ 2,317 (+6921.21%)
Mutual labels:  styled-components, emotion, css-in-js, styled
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+21493.94%)
Mutual labels:  styled-components, responsive, emotion, css-in-js
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+6200%)
Mutual labels:  styled-components, responsive, emotion, css-in-js
Styled Tools
Useful interpolated functions for CSS-in-JS
Stars: ✭ 761 (+2206.06%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: ✭ 236 (+615.15%)
Mutual labels:  styled-components, emotion, css-in-js
Design System Utils
👩‍🎨 Access your design tokens with ease
Stars: ✭ 465 (+1309.09%)
Mutual labels:  styled-components, emotion, css-in-js
Onno
Responsive style props for building themed design systems
Stars: ✭ 95 (+187.88%)
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 (+206.06%)
Mutual labels:  styled-components, emotion, css-in-js
Horror
😱 React HTML elements with CSS-in-JS
Stars: ✭ 78 (+136.36%)
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 (+518.18%)
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 (+290.91%)
Mutual labels:  styled-components, emotion, css-in-js
Next Dark Mode
🌑 Enable dark mode for Next.js apps
Stars: ✭ 133 (+303.03%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Breakpoints
Simple and powerful tool for creating breakpoints in styled components and emotion. 💅
Stars: ✭ 428 (+1196.97%)
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 (+15466.67%)
Mutual labels:  styled-components, emotion, css-in-js
satchel
The little bag of CSS-in-JS superpowers
Stars: ✭ 14 (-57.58%)
Mutual labels:  styled-components, emotion, css-in-js
Xstyled
A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
Stars: ✭ 1,835 (+5460.61%)
Mutual labels:  styled-components, emotion, css-in-js
Filbert Js
A lightweight(~1kb) css-in-js framework
Stars: ✭ 167 (+406.06%)
Mutual labels:  styled-components, emotion, css-in-js
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: ✭ 52 (+57.58%)
Mutual labels:  styled-components, emotion, css-in-js
Awesome Styled Components
A curated list of awesome styled-components resources 💅
Stars: ✭ 2,869 (+8593.94%)
Mutual labels:  styled-components, css-in-js
foliage
🍃 Style your components with performance
Stars: ✭ 29 (-12.12%)
Mutual labels:  styled-components, styled

Styled-Responsive-Media-Queries styled-rmq

Styled Components Responsive Media Queries — Standard sizes from Chrome DevTools.

DOWNLOADS Node.js CLI Learn VSCode Sponsor Follow @MrAhmadAwais on Twitter


📟

Install

npm install --save @emotion/core @emotion/styled styled-rmq

# OR
npm install --save styled-components styled-rmq

⚙️

Usage

import styled from '@emotion/styled'; // OR import styled from 'styled-components';
import rmq from 'styled-rmq';

const YourComponent = styled.div`
    background: tomato;

    ${rmq('xl')} { background: tomato; }  /* xl: 2560px : 4K */
    ${rmq('ll')} { background: hotpink; } /* ll: 1440px : Laptop Large */
    ${rmq('ls')} { background: orange; }  /* ls: 1024px : Laptop */
    ${rmq('t')}  { background: skyblue; } /* t:  768px  : Tablet */
    ${rmq('ml')} { background: purple; }  /* ml: 425px  : Mobile Large */
    ${rmq('mm')} { background: silver; }  /* mm: 375px  : Mobile Medium */
    ${rmq('ms')} { background: green; }   /* ms: 320px  : Mobile Small */
    /**
     *  Custom Media Queries
     * — Think of elements instead of size
     * — Make them look good on all sizes.
     *
     * E.g. Small tablet size 585px.
    */
    ${rmq('585')} { background: hotpink; } /* custom: 585px */
`;

export const Component = (
  <YourComponent>Being Used Here!</YourComponent>
);

Some Context + Examples

All of the sizes used in the responsive media queries in styled-rmq come directly from the Chrome Dev Tools. I prefer px and don't use em for media queries. I'll collect a list of sites using this package below.

RMQ


📝

Changelog

❯ Read the changelog here →


KEY: 📦 NEW, 👌 IMPROVE, 🐛 FIX, 📖 DOC, 🚀 RELEASE, and 🤖 TEST

I use Emoji-log, you should try it and simplify your git commits.


📃

License & Conduct

Sponsor

Me (Ahmad Awais) and my incredible wife (Maedah Batool) are two engineers who fell in love with open source and then with each other. You can read more about me here. If you or your company use any of my projects or like what I’m doing then consider backing me. I'm in this for the long run. An open-source developer advocate.

Ahmad on Twitter

NodeCLI.com — Learn to build Node.js CLI Automation

This repository is part of the NodeCLI.com course.

After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community. → I'm sharing it all in this online video course. Node CLI Automation without wasting a 1,000 hours

Node CLI Course

Node CLI

Awais on Twitter

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