{
 "kind": "tool",
 "slug": "stylexjs-stylex",
 "path": "tools/stylexjs-stylex/",
 "name": "StyleX",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Styling and CSS",
   "tools/styling/"
  ]
 ],
 "lead": "Meta's CSS-in-JS library for defining optimized component styles at scale.",
 "chips": [
  {
   "label": "Styling and CSS",
   "path": "tools/styling/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @stylexjs/stylex"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/facebook/stylex"
  },
  {
   "label": "Website",
   "href": "https://github.com/facebook/stylex#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/facebook/stylex"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 12, 2026. ",
   "src": "https://github.com/facebook/stylex"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#48 of 53 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What StyleX does",
   "parts": [
    {
     "t": "prose",
     "text": "Meta's CSS-in-JS library for defining optimized component styles at scale."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "StyleX popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "50",
       "of": "/ 100",
       "l": "Gid Score, #2013 overall"
      },
      {
       "n": "2.6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "10.5K",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How StyleX is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "StyleX joined the catalog on its public numbers (2,647,603 downloads a week on npm and 10,525 GitHub stars), not on our project count: it is a dependency in 6 public GitHub projects of our scan, 1 of them set up for AI coding agents.",
      "The most used alternative in our scan is Tailwind CSS (2,040 projects).",
      "Projects that use it most often also use React (100.0%), XY Flow (66.7%), Vite (66.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "XY Flow",
       "path": "tools/xyflow/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Emotion",
       "path": "tools/emotion/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "React Three Fiber",
       "path": "tools/react-three/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about StyleX",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Styling and CSS",
       "path": "tools/styling/",
       "items": [
        {
         "text": "Tailwind Merge",
         "path": "tools/tailwind-merge/"
        },
        {
         "text": "Sass",
         "path": "tools/sass/"
        },
        {
         "text": "tailwind-variants",
         "path": "tools/tailwind-variants/"
        },
        {
         "text": "Fontsource Inter",
         "path": "tools/fontsource-variable-inter/"
        },
        {
         "text": "NativeWind",
         "path": "tools/nativewind/"
        },
        {
         "text": "postcss-import",
         "path": "tools/postcss-import/"
        },
        {
         "text": "Lightning CSS",
         "path": "tools/lightningcss/"
        },
        {
         "text": "mode-watcher",
         "path": "tools/mode-watcher/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "StyleX",
       "me": true,
       "facts": [
        "MIT",
        "Gid 50",
        "2.6M/wk"
       ]
      },
      {
       "name": "Tailwind CSS",
       "why": "Utility-first CSS framework for building custom user interfaces rapidly.",
       "path": "tools/tailwindcss/",
       "facts": [
        "MIT",
        "Gid 92",
        "19M/wk"
       ]
      },
      {
       "name": "Emotion",
       "why": "CSS-in-JS library for styling React components with scoped styles and theming.",
       "path": "tools/emotion/",
       "facts": [
        "MIT",
        "Gid 77",
        "29.3M/wk"
       ]
      },
      {
       "name": "styled-components",
       "why": "CSS-in-JS library for styling React components with dynamic scoped styles.",
       "path": "tools/styled-components/",
       "facts": [
        "MIT",
        "Gid 75",
        "15.1M/wk"
       ]
      }
     ],
     "more": "Compare StyleX with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @stylexjs/stylex"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for StyleX yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @stylexjs/stylex"
  ],
  [
   "Category",
   "Styling and CSS"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "49.8"
  ],
  [
   "Rank in category",
   "#48 of 53"
  ],
  [
   "GitHub",
   "facebook/stylex"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/facebook.png"
}