I am using Tachyons CSS for my web app and I need to add a width css property of width 45% for medium screen. I did npm install tachyons-custom and I don't know what to do next. I couldn't find any tutorial online about adding a new tachyons property.
Can anyone give me a little guide? Thank you.
You'll first need to clone the actual
tachyons-cssrepo and get set up for local dev.Once you have the source files locally, you can add
.w-45 { width: 45%; }(I presume) in the "tachyons-custom/src/_widths.css" file.Don't forget to add the
.w-45-nsand the rest if you want these, too.Once you've done this, run
npm build.Now,
tachyons-custom/css/tachyons.csswill contain the new classes!