Resolving UI issues in Sanity Studio by adjusting global.css
Yes! Sanity is built specifically for this - it's a headless CMS, meaning the backend (content management) and frontend (design/templates) are completely separate by design.
Here's how this separation works:
The Architecture
Sanity stores all your content in the Content Lake (the backend), which you access through APIs. Your frontend can be built with any framework (Next.js, React, Vue, Svelte, etc.) and lives in a completely separate codebase if you want. The two communicate only through Sanity's APIs - there's no tight coupling.
Deploying Studio Separately
Sanity Studio (the content editing interface) can be deployed completely separately from your frontend:
- Separate repositories: Keep your Studio in one repo and your frontend in another
- Different hosting: Deploy Studio to one host (Vercel, Netlify, etc.) and your frontend to another
- Self-hosting: Run
sanity buildto generate static files for your Studio, then host them anywhere
To build Studio for deployment, you simply run:
sanity buildThis creates a dist directory with static files you can deploy to any hosting service. Your Studio might live at studio.yoursite.com while your frontend is at yoursite.com.
Monorepo vs Separate Repos
You have two main approaches:
- Separate repos: Completely independent projects. Studio in one repo, frontend in another. Maximum separation.
- Monorepo: Both in one repository but still separate applications with their own build processes and deployment targets.
The Frontend Connection
Your frontend connects to Sanity's Content Lake using client libraries like next-sanity (for Next.js) or the vanilla @sanity/client. You query content using GROQ or GraphQL, and Sanity just returns data - it has zero opinions about your design or templates.
This is the core benefit of Sanity being a composable content platform - you can swap out your entire frontend without touching your content infrastructure, or vice versa.
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.