Ju99ernaut / grapesjs-tailwind

Tailwind integration for grapesjs
MIT License
122 stars 64 forks source link

Question: Usage of DaisyUI #5

Open Mashiane opened 2 years ago

Mashiane commented 2 years ago

Hi there

Thanks for this amazing project. I have just started using TailwinddCSS and learning it and are using DaisyUI components, which are awesome.

I'd like to intergrate them into grapeGS or perhaps is it something you are already planning.

Thank you so much.

j2l commented 2 years ago

Same question, I also use DaisyUI and think it would benefit from GrapesJS

Ju99ernaut commented 2 years ago

Hi guys, just had a look at DaisyUI, pretty awesome project, would be interested in working on an integration, also happy to assist if you've already taken the initiative.

Mashiane commented 2 years ago

Wow... thanks for reverting back. I've never used grapeJS before and will have to learn how to use it first with anything and then apply what I learned. @Ju99ernaut, you seem to have a well organized machine here and experience. Awesome.

j2l commented 2 years ago

Basically we want daisyUI in the canvas. In index.html

grapesjs.init({
          canvas: {
            styles: [
              'https://cdn.jsdelivr.net/npm/daisyui@2.38.1/dist/full.css',
              'https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css'
            ],
          },
          height: '100%',

works for me. I started from scratch, just to learn how to do, so I can't PR.