Create a response with a CSS file response. It receives a string with the CSS content and set the Content-Type header to text/css; charset=utf-8 always.
text/css; charset=utf-8
This is useful to dynamically create a CSS file from a Resource Route.
export async function loader({ request }: LoaderFunctionArgs) { return css("body { color: red; }");} Copy
export async function loader({ request }: LoaderFunctionArgs) { return css("body { color: red; }");}
Create a response with a CSS file response. It receives a string with the CSS content and set the Content-Type header to
text/css; charset=utf-8
always.This is useful to dynamically create a CSS file from a Resource Route.