4

I would like to make a small CSS modification in Sanity Studio V3.

The old method to import CSS no longer works.

How can I do it?

1 Answer 1

7

It is very simple but it's not in the doc.

Create your css file.

In the file sanity.config.ts, import your file as follows :

import "./custom.css";

And test whether it works with a simple CSS statement :

* {
  color: red !important;
}

If all the text is red, it means that your import works

1
  • 1
    I was trying to setup Tailwind with Sanity Studio V3 and was wondering how to import CSS files. Thanks for the answer! Feb 17 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.