[Remix] Admin UI not loading styles

Open
#812 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start with the reported Remix Admin UI behavior and the provided root.tsx layout, then reproduce it by hard-refreshing the page as shown in the recording. Trace how styles are loaded for the Admin UI and compare that with the root.tsx Links setup. Done means the Admin UI styles load reliably after refresh without requiring project-specific CSS changes.

Written by the indexing model from the issue text.

Description

Hi. First of all, thanks for this fantastic tool!

I am using it on a new Remix project. But, even though I make sure that my root.tsx layout is not loading any CSS, sometimes the styles do not load when accessing the Admin UI. I am trying to figure out what could be the problem and, most importantly, how to solve it.

My root.tsx file:

import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'

export default function Root() {
  return (
    <html lang="pt" dir="ltr">
      <head>
        <Meta />
        <Links />
      </head>
      <body>
        <Outlet />
        <ScrollRestoration />
        <Scripts />
        <LiveReload />
      </body>
    </html>
  )
}

I recorded my screen showing the issue when I hit cmd + R to refresh the page:

https://github.com/Thinkmill/keystatic/assets/19230/0c9e2b6a-ac4f-476e-bb32-2bbc29246975

Can someone help me fix it?
I would appreciate any help.
Thanks!

Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

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.

More from Thinkmill/keystatic

All issues in Thinkmill/keystatic

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.