Skip to main content

emotion/monorepo

Target package(s):

Maintainers:

Transforms

11.0.0

info

Source | Report an issue

Usage $ hypermod --packages @emotion__monorepo@11.0.0 path/to/source

A codemod which facilitates the migration of the @emotion/monorepo package to version 11.0.0.

Presets

styled-to-emotion-10

info

Source | Report an issue

Usage $ hypermod --packages @emotion__monorepo#styled-to-emotion-10 path/to/source

Automatically migrates from styled-components to emotion v10

/* INPUT */
import styled, { css, ThemeProvider, withTheme } from 'styled-components';

/* OUTPUT */
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import { ThemeProvider, withTheme } from 'emotion-theming';