Skip to content

c-rick/next-twin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

next-twin

make next12 use tailwind + styled-component

why

similar issue

next12 use swc complier and not support twin.macro, and can't use tailwind in styled-conpoment

how to use

decorate your next.config.js

  const withTwin = require('./next-twin.js')
  module.exports = withTwin({
    experimental: {
      // Enables the styled-components SWC transform
      styledComponents: true,
    }
  })

About

make next12 use tailwind + styled-component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published