2 ms·
I don't understand how this works. Say you want a div to be a specific width: 135px, how do you make it without writing any CSS? Or you want a specific shade o
by PunchTornado 8y ago
I don't understand how this works.
Say you want a div to be a specific width: 135px, how do you make it without writing any CSS? Or you want a specific shade of a colour? Or you want to style things that are not in your html (third party widgets).
- deltron3030 8y agoYou treat your stylesheet as your style guide, design system, or single source of truth. That's where you define your fonts, colors scales etc. So you actually don't have to think about specific widths while you're building, you reference a width that is already set up in your stylesheet! I find that it improves the design to dev workflow. You experiment with design in a design tool like Sketch, and then translate your final idea or rules into a stylesheet, which is the basis for your live prototyping in editor & browser (wrapping HTML elements and referencing styles in your stylesheet).
- wishinghand 8y agoYou can't. It's easier to see what classes are included here: http://nerdcave.com/tailwind-cheat-sheet http://nerdcave.com/tailwind-cheat-sheet but if you want something not provided explicitly by Tailwind, you have to write it yourself.