commerce
twin.macro
Our great sponsors
commerce | twin.macro | |
---|---|---|
47 | 57 | |
10,209 | 7,802 | |
2.7% | - | |
7.7 | 6.1 | |
3 days ago | 21 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
commerce
-
Ask HN: Modern self-hosted e-commerce solutions?
There are several open source solutions if you're interested... you can do a headless frontend with Vercel Commerce (Next.js) and use any of the supported e-commerce backends to manage catalog/cart/orders/etc: https://github.com/vercel/commerce
- Are there any best practices Next projects out there?
-
[Hiring] NextJS Developer
You need to use Medusa or Saleor as the backend (they are open source headless ecommerce backends). There already exists an amazing boilerplate and fully functional app for both of these: https://github.com/vercel/commerce
-
The Need for Speed: Does Store Performance Make or Break Success? Analyzing the Impact of Speed on Shopify Sites
Hey everyone, I stumbled upon an intriguing website recently, built using Shopify, the platform notorious for its sluggish performance. However, to my surprise, this particular site managed to achieve a perfect 100 score thanks to NextJs. I know this community is well-versed in website performance, so I thought I'd share it with you all. To be honest, I've been pondering the significance of speed when it comes to the success of online stores. Can a few milliseconds really make or break a business? We often hear the phrase "Milliseconds Make Millions," and I wonder if it holds true in reality. What are your thoughts on this? In today's digital landscape, it seems like everyone is using Shopify, making it the go-to platform for setting up an online store. But is being the fastest fish in the pond the key to outperforming the competition? Does speed truly matter when it comes to customer experience and ultimately achieving financial success? I'm genuinely curious to hear your insights and experiences regarding the impact of website speed on online businesses. Do you believe that optimizing every millisecond can lead to substantial gains, or is it more of a minor factor in the grand scheme of things? Let's have an open discussion about the role of speed in the success of Shopify sites and how it aligns with our experiences and beliefs. I invite you to share your thoughts and contribute to this conversation. No sales pitches or hidden agendas, just an honest exploration of the topic. Looking forward to hearing your perspectives! Best regards, CuriousRedditor
- The app router is not production-ready yet
-
Advice needed: Nextjs e-commerce learning
Next.js has an official e-commerce template here: https://github.com/vercel/commerce
-
svelte-commerce: Open Source fronted for any e-commerce. Works with Shopify, MedusaJS, Litekart, BigCommerce.
This is great, especially as Next.js commerce has decided to go shopify only - https://github.com/vercel/commerce/pull/966 - making a full open-source solution impossible.
-
What headless CMS would you choose for NextJS e-commerce project?
Vercel also have an example for it. https://github.com/vercel/commerce/tree/main/packages/swell
- Real-world react app with great architecture in 2023
-
Has anyone created a Shopify app with Next-Auth?
Vercel Commerce
twin.macro
-
Tailwindcss in Styled-Components
Twin Macro Github Repo. This is a great resource to help you pick up Twin’s syntax, learn more about the package, and keep up to date with the latest releases.
-
CSS Style Guide for Web Dev?
Personally I like twin.macro the most. It’s similar to the above but based on Tailwind.
-
Cool Tailwindcss Tools For Everyone
twin.macro is a library that allows you to use these styles in your JavaScript code. This library works exactly like styled-components.
- How do you css?
-
Fixing Class Composition in Tailwind CSS
One of the more promising alternatives is twin.macro - a Babel macro that processes Tailwind classes to generate JS objects understandable by various CSS-in-JS libraries. The developer experience (DX) of using it is amazing as you not only get all of Tailwind’s features without much change to your code, but you also get much more flexibility - all that on top of the traditional benefits of CSS-in-JS. Here’s an example code:
-
Setup Nextjs Tailwind CSS Styled Components with TypeScript
twin.macro
-
What unpopular webdev opinions do you have?
If you use Tailwind with React a lot, and are wanting support for Styled Components, give Twin Macro a look. They're close to finishing support for TW v3 in their Releases section :)
- Are utility classes horrible design or am I dumb?
- What's the proper way to write Tailwind with React?
-
Stailwc: an swc plugin for transpiling tailwind directives at compile time
The blocker for us using it is our use of an excellent library called twin.macro which is built against babel's transpilation APIs to parse tailwindcss directives at compile time so that they may be used with css-in-js libraries. This efficiently bundles your css so that you only ship the precise css you use. The problem is, it's all quite slow.
What are some alternatives?
next-auth - Authentication for the Web.
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
next-auth-sanity - NextAuth Adapter and Provider for Sanity
Tailwind CSS - A utility-first CSS framework for rapid UI development.
headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code
tailwindcss-classnames - Functional typed classnames for TailwindCSS
vendure - A headless GraphQL commerce platform for the modern web
jest-styled-components - 🔧 💅 Jest utilities for Styled Components
substrate - Substrate: The platform for blockchain innovators
vue-emotion - Seamlessly use emotion (CSS-in-JS) with Vue.js
Next.js - The React Framework
tailwind-safelist-generator - Tailwind plugin to generate purge-safe.txt files