teknql / shadow-cljs-tailwind-jit

Shadow build hooks for enabling JIT compilation of Tailwind CSS
95 stars 10 forks source link

Some questions about :tailwind/config #2

Closed kakinouchi closed 3 years ago

kakinouchi commented 3 years ago

I'm sorry if I'm wrong to ask questions here.

I have two questions about setting :tailwind/config

  1. Like https://tailwindcss.com/docs/theme#referencing-other-values, how can we write referencing other values in Clojure?
  2. How can we write require notation? (e.g. to set plugins: [require('@tailwindcss/ui')]

Thank you.

rschmukler commented 3 years ago

I think the best way to do this will be to support using a tailwind.config.js for more advanced setups. Ultimately it may be worth adding support for custom syntax, but I think we're better off keeping it simple in the :tailwind/config and then leaving advanced usage to a true tailwind.config.js as suggested in #3

kakinouchi commented 3 years ago

That's true, I agree with you. You can close this(#2) issue, thank you.