All Projects โ†’ nuxt-community โ†’ Emotion Module

nuxt-community / Emotion Module

Licence: mit
๐Ÿ’– Emotion module for Nuxt.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Emotion Module

Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components โ€” Standard size from Chrome DevTools.
Stars: โœญ 33 (-29.79%)
Mutual labels:  emotion, css-in-js
satchel
The little bag of CSS-in-JS superpowers
Stars: โœญ 14 (-70.21%)
Mutual labels:  emotion, css-in-js
visage
Visage design system
Stars: โœญ 12 (-74.47%)
Mutual labels:  emotion, css-in-js
spring-keyframes
โœŒ๏ธ1.4kb library to generate css keyframes in css-in-js based on a spring algorithm, with emotion
Stars: โœญ 65 (+38.3%)
Mutual labels:  emotion, css-in-js
Design System Utils
๐Ÿ‘ฉโ€๐ŸŽจ Access your design tokens with ease
Stars: โœญ 465 (+889.36%)
Mutual labels:  css-in-js, emotion
monad-ui
Utility First CSS-in-JS
Stars: โœญ 33 (-29.79%)
Mutual labels:  emotion, css-in-js
react-awesome-reveal
React components to add reveal animations using the Intersection Observer API and CSS Animations.
Stars: โœญ 564 (+1100%)
Mutual labels:  emotion, css-in-js
Emotion
๐Ÿ‘ฉโ€๐ŸŽค CSS-in-JS library designed for high performance style composition
Stars: โœญ 14,177 (+30063.83%)
Mutual labels:  css-in-js, emotion
Styled Breakpoints
Simple and powerful tool for creating breakpoints in styled components and emotion. ๐Ÿ’…
Stars: โœญ 428 (+810.64%)
Mutual labels:  css-in-js, emotion
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 (+10829.79%)
Mutual labels:  css-in-js, emotion
Xwind
Tailwind CSS as a templating language in JS and CSS-in-JS
Stars: โœญ 249 (+429.79%)
Mutual labels:  css-in-js, emotion
Styled Tools
Useful interpolated functions for CSS-in-JS
Stars: โœญ 761 (+1519.15%)
Mutual labels:  css-in-js, emotion
Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: โœญ 236 (+402.13%)
Mutual labels:  css-in-js, emotion
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: โœญ 52 (+10.64%)
Mutual labels:  emotion, css-in-js
Styled Components Vs Emotion
a short doc comparing the popular CSS-in-JS libraries styled-components and emotion
Stars: โœญ 204 (+334.04%)
Mutual labels:  css-in-js, emotion
benefit
โœจ Utility CSS-in-JS library that provides a set of low-level, configurable, ready-to-use styles
Stars: โœญ 51 (+8.51%)
Mutual labels:  emotion, css-in-js
Vue Emotion
Seamlessly use emotion (CSS-in-JS) with Vue.js
Stars: โœญ 173 (+268.09%)
Mutual labels:  css-in-js, emotion
Grid
This package has moved and renamed
Stars: โœญ 2,079 (+4323.4%)
Mutual labels:  css-in-js, emotion
React Awesome Reveal
React components to add reveal animations using the Intersection Observer API and CSS Animations.
Stars: โœญ 346 (+636.17%)
Mutual labels:  css-in-js, emotion
Facepaint
Responsive style values for css-in-js.
Stars: โœญ 523 (+1012.77%)
Mutual labels:  css-in-js, emotion

emotion

@nuxtjs/emotion

npm version npm downloads circle ci coverage License

Emotion module for Nuxt.js

Features

  • Server Side Rendering (SSR)
  • Critical Path CSS with Hydration
  • Hot Reloads (HMR)
  • Style inlining
  • Minification
  • Dead Code Elimination
  • Source Maps
  • Contextual Class Names

๐Ÿ“– Release Notes

Setup

IMPORTANT NOTE: This module requires new hooks that works with nuxt 2.5.0 or nuxt-edge only.

  1. Add @nuxtjs/emotion dependency to your project
yarn add @nuxtjs/emotion # or npm install @nuxtjs/emotion
  1. Add @nuxtjs/emotion to the modules section of nuxt.config.js
export default {
  modules: [
    // Simple usage
    '@nuxtjs/emotion',

    // With options
    ['@nuxtjs/emotion', { /* module options */ }]
  ]
}

Using top level options

export default {
  modules: [
    '@nuxtjs/emotion'
  ],
  emotion: {
    /* module options */
  }
}

Options

ssr

  • Default: 'critical'

Can be 'critical' or 'render' or false.

In the critical mode, module automatically injects window.$emotionSSRIds for hydration.

babel

  • Default: { inline: true }

Options for babel-plugin-emotion integration.

Can be disabled by setting to false.

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Nuxt Community

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