mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 110 forks source link

Rename Border.width to Border.thickness #298

Closed dullbananas closed 2 years ago

dullbananas commented 3 years ago

Element.Border.width and Element.width are easy to mix up

Yagger commented 3 years ago

Use absolute names, it makes your code more readable and is good practice in general, and eliminates any naming conflicts.

import Element as E import Element.Border as Br import Element.Background as Bg import Element.Font as Font

E.width Br.width Br.color Bg.color Font.color

Naming consistency across modules is convenient.