linaria
linaria copied to clipboard
Zero-runtime CSS in JS library
## Describe the feature ```jsx const classes = csss({ root: ` font-size: 14px; color: black; &:hover .{child} { color: red } `, child: ` padding: 10px; `, }); ``` ##...
## Environment - Linaria version: - "@linaria/core": "^3.0.0-beta.4" - "@linaria/react": "^3.0.0-beta.7, - "@linaria/babel-preset": "^3.0.0-beta.4" - "@linaria/shaker": "^3.0.0-beta.7" - "@linaria/webpack-loader": "^3.0.0-beta.7" - Bundler (+ version): - Next.js 10.0/Webpack 4 - "next-linaria":...
## Describe the feature CSS in JS libraries are maintaining two seperate APIs, namely styled and css. There are good reasons for both, but in react projects, it is an...
Currently CSS can be used externally using the classname attribute. Is there any way to design css prop in the same way as styled component asda ## Motivation Sometimes we...
## Environment - Linaria version: 3.0.0-beta.13 - Bundler (+ version): Webpack 5.51.2 - Node.js version: 16.8.0 - OS: macOS Big Sur 11.6 ``` // project root .babel.config.js /build/webpack.config.js ``` ```...
How to use with NextJS + typescript?
Sorry to open multiple issues so quickly. I guess I'm just using this in an unconventional way. https://codesandbox.io/s/great-flower-zbv05?file=/src/textVariants.tsx This is another strange example. A couple of notes: - notice the...
https://codesandbox.io/s/blissful-pine-j7z3m?file=/pages/index.tsx This is a strange bug. I've created a codesandbox (link is above) that demonstrates it well: There you can see the different variants and see which combinations work and...
## Describe the enhancement The [Benefits](https://github.com/callstack/linaria/blob/master/docs/BENEFITS.md) doc is very helpful. It'd be nice to also have a section that explores the advantages of linaria over CSS Modules.
Linaria 3.0 introduces a dozen packages under the `@linaria` scope instead of the one `linaria` package. The problem here is that each package should have at least a short readme-file...