ben-rogerson / twin.macro

🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.92k stars 183 forks source link

Add usable types for twin config #766

Closed ben-rogerson closed 1 year ago

ben-rogerson commented 1 year ago

This PR adds config types for us to use within babel-plugin-macros.config.js:

// babel-plugin-macros.config.js
module.exports = {
  /** @type {import('twin.macro').Config} */
  twin: {
    preset: "styled-components",
  },
}

image

image