Skip to content
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

Will aleph support twin.macro in upcoming version? #60

Open
leopku opened this issue Dec 20, 2020 · 3 comments
Open

Will aleph support twin.macro in upcoming version? #60

leopku opened this issue Dec 20, 2020 · 3 comments
Labels
∆ feature New feature 🅝 npm package NPM package support

Comments

@leopku
Copy link

leopku commented Dec 20, 2020

I'm working with taildwind and twin.macro to build re-usable components easily.

Will aleph support twin.macro or something like emotion or styled-components etc to make component building easier in upcoming version?

Or there are better way to build re-usable components by tailwind and aleph?

@shadowtime2000
Copy link
Member

Kind of ties in with #42. I don't think there are any CSS-in-JS libraries which support Aleph or Deno, mainly because to become faster they have their own Babel plugin, but Aleph/Deno uses swc.

@ije
Copy link
Member

ije commented Dec 20, 2020

@leopku i want to support styled-component in the future, and next release will support inline-style out-of-the-box:

export default function App() {
  return (
    <>
      <h1>Hello World</h1>
      <style>{`
        h1 {
          color: #d63369;
        }
      `}</style>
    </>
  )
}

but it is hard to support babel-macro since we dont' use the babel transformer.

@leopku
Copy link
Author

leopku commented Dec 20, 2020

@shadowtime2000 @ije Thanks.

I had many components building and composing with class names from tailwindcss, for example:

const btnBase = css`$tw{inline-flex py-3 px-5 rounded-lg items-center focus:outline-none}`;
const btnPrimary = css`$tw{bg-indigo-500 text-white}`;

Maybe I should find another way to build reusable component using tailwindcss.

@shadowtime2000 shadowtime2000 added ∆ feature New feature 🅝 npm package NPM package support labels Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
∆ feature New feature 🅝 npm package NPM package support
Projects
None yet
Development

No branches or pull requests

3 participants