attach hono-css's global scope from hono/css with global
#1926
Closed
Description
What is the feature you are proposing?
I think it would be useful to have an API to inject directly from #hono/css to the root scope of #hono-css.
like this:
import { css, global } from 'hono/css'
const hogeCss = css`
color: red;
`
global`
body {
background-color: red;
}
@media (min-width: 768px) {
${hogeCss} {
color: blue;
}
}
`
Although it may be difficult from a security perspective, this would allow for more expressive CSS design.