whatisgithub

What is glamorous?

paypal/glamorous — explained in plain English

Analysis updated 2026-05-18

3,622JavaScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

A deprecated CSS-in-JS library for styling React components with JavaScript, originally from PayPal, users are pointed to Emotion instead.

Mindmap

mindmap
  root((glamorous))
    What it does
      CSS-in-JS for React
      Deprecated, migrate to Emotion
    Tech stack
      JavaScript
      React
      glamor
    Use cases
      Historical reference only
      Migrating legacy code to Emotion
    Audience
      Developers maintaining old code

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Understand how an older CSS-in-JS library styled React components

USE CASE 2

Follow the linked migration guide to move a legacy glamorous codebase to Emotion

USE CASE 3

Reference the project's history when evaluating styled-components vs Emotion

USE CASE 4

Study glamorous's API only to maintain existing legacy code, not for new projects

What is it built with?

JavaScriptReact

How does it compare?

paypal/glamorouskeepfool/vue-tutorialsmicromodal/micromodal
Stars3,6223,6223,621
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasyeasyeasy
Complexity2/51/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Deprecated and unmaintained, do not use for new projects, see the Emotion migration guide.

So what is it?

Glamorous is a JavaScript library, originally created at PayPal, that lets developers write CSS styles directly inside their React component code rather than in separate stylesheet files. The idea is to keep styles close to the components they belong to, making it easier to track down where a visual change needs to happen. It was part of a category called CSS-in-JS, which became popular in the React community around 2017 and 2018. Important note: this project is officially deprecated and no longer maintained. The README prominently states that it has been abandoned, and the maintainers have pointed users toward a migration path to a different library called Emotion. Anyone discovering this project today should not build new things on top of it. The issue tracker has a dedicated thread explaining the situation and offering automated migration tooling. When it was active, glamorous worked by letting you create styled React components with plain JavaScript objects describing the visual properties. You could apply colors, spacing, fonts, and other CSS rules without writing a separate .css file. The library built on top of an earlier package called glamor, which handled the actual CSS injection into the browser. Glamorous added a React-friendly API on top of that foundation. The project attracted a community of related tools, including testing utilities, a React Native version, a VS Code extension, and an integration with Stylus for developers who preferred that syntax. There was also a companion website at glamorous.rocks that hosted tutorials, examples, and API documentation, though that documentation may no longer be maintained. With over 3,600 stars on GitHub and 67 contributors listed, glamorous had meaningful adoption during its active years. Its closest conceptual sibling was styled-components, which the README lists as direct inspiration. For anyone maintaining older code that uses glamorous, the migration guide linked in issue 419 is the recommended starting point.

Copy-paste prompts

Prompt 1
I have an old React project using glamorous, help me migrate its styles to Emotion
Prompt 2
Explain how glamorous let you write CSS-in-JS styles for React components
Prompt 3
What is the recommended migration path away from glamorous according to its README?
Prompt 4
Compare glamorous's approach to CSS-in-JS with styled-components

Frequently asked questions

What is glamorous?

A deprecated CSS-in-JS library for styling React components with JavaScript, originally from PayPal, users are pointed to Emotion instead.

What language is glamorous written in?

Mainly JavaScript. The stack also includes JavaScript, React.

How hard is glamorous to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is glamorous for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.