mui / mui/material-ui

Serving CSS styles externally using @material-ui/styles in SSR applications

Open
#28,217 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: styles support: question
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

I use @material-ui/styles in a SSR project and the problem is each page CSS styles are added internally.

Are there any ways that CSS styles be used externally (i.e. in separate CSS files)?

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how @material-ui/styles injects CSS during server-side rendering and whether the repository documents an external stylesheet path. The issue names no files, tests, or entry points, so the desired output and acceptance criteria need to be clarified before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.