Stoop

GitHub
/Migration

Migration from Stitches

#

Migrate your Stitches codebase to Stoop

Key Differences

#

Stoop is similar to Stitches but with some key differences:

Migration Steps

#
  1. Install Stoop
npm install stoop
  1. Update Imports
// Before (Stitches)
import { styled, css } from "@stitches/react";

// After (Stoop)
import { styled, css } from "./theme";
  1. Update Theme Configuration
// Before (Stitches)
const { styled, css } = createStitches({
  theme: { ... },
});

// After (Stoop)
const { styled, css } = createStoop({
  theme: { ... },
  themes: {
    light: lightTheme,
    dark: darkTheme,
  },
});
  1. Update Component Usage

Component API is mostly the same:

// Works the same in both
const Button = styled("button", {
  padding: "$medium",
  variants: {
    size: {
      small: { padding: "$small" },
    },
  },
});

Breaking Changes

#
#