Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Example request: Linaria #1619

Closed
knpwrs opened this issue Jan 23, 2022 · 1 comment
Closed

[Feature]: Example request: Linaria #1619

knpwrs opened this issue Jan 23, 2022 · 1 comment
Labels

Comments

@knpwrs
Copy link

knpwrs commented Jan 23, 2022

What is the new or updated feature that you are suggesting?

An example of using Linaria would be excellent. I saw @ionut-botizan mention Linaria here: #717 (comment)

Linaria can be integrated with ESBuild as documented here: https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#esbuild

Why should this feature be included?

I think @ionut-botizan's write-up does Linaria justice:

Linaria is a zero-runtime CSS-in-JS library that compiles your styles into static CSS files at build time, offering a great mix of DX and runtime performance.

Some of its (cherry-picked) benefits are:

  • Scoped selectors
  • Automatic unused styles removal
  • Automatic vendor prefixing
  • Static CSS (doh) that can be loaded in parallel to JS
  • Works without JavaScript
  • Full power of CSS / No new syntax to learn (you just write CSS in a tagged template literal) with JS variables/expressions interpolation.

My own two cents: I think that Linaria being zero-runtime makes it an excellent fit for Remix.

@aiji42
Copy link
Contributor

aiji42 commented Apr 4, 2022

I have created a sample on how to use linaria in remix. It is safe to wait for the official announcement, but in the meantime I hope this will be helpful.
https://github.com/aiji42/remix-esbuild-override/tree/main/examples/linaria

@remix-run remix-run locked and limited conversation to collaborators Apr 19, 2022
@chaance chaance converted this issue into discussion #2883 Apr 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants