jmcgaha / craft-boilerplate

Starter project for Craft CMS & Tailwind CSS Sites
BSD Zero Clause License
25 stars 6 forks source link

Custom css #1

Closed niels-vormenvorm closed 3 years ago

niels-vormenvorm commented 3 years ago

Hi,

Thank you for the great boilerplate, it really helps me to start practicing with Tailwind + craft CMS. i can't seem to create a custom css. I've added a custom css but my custom css (.btn) doesn't get added to the used css. I've created this build script, but also that didn't work: "build": "tailwind build src/custom.css -o public/lib/css/custom.css"

Thank you for the help.

niels-vormenvorm commented 3 years ago

Found it..

cmartinespinosa commented 2 years ago

@niels-vormenvorm I have the same proble...how did you solve it?. Thxs

niels-vormenvorm commented 2 years ago

@cmartinespinosa You can put an import in 'assets' -> 'sass' -> 'app.scss'

@import 'main';

And then add a main.scss in the same folder