A Utility-First CSS Framework for Rapid UI Development(tailwindcss.com)

almost 5 years ago from Dima Braven, founder at itmeo.com

  • Matt Fulton, almost 5 years ago

    I've no experience with functional CSS like this, but the dev in me loves how much easier/more legible this could make UI-testing. When testing small UI changes that follow state changes, it's seems like this could make test code much easier to read and maintain. For example:

    expect( !!element.className.match(/border-purple/) ).toEqual( true )

    is clearer and more maintainable when we change our shade of purple, than:

    expect( element.style.borderColor ).toEqual( rgba(43, 233, 123, 0.95) )
    0 points