How to do CSS in elm?

There are three major performance optimizations I want to do for elm-css:

  1. Move the compatibility checks to a phantom type, so they no longer have runtime overhead.
  2. Hash things more efficiently. Plenty of room for improvement there.
  3. Use insertRule. This is on Evan’s radar, and he’s talked through some API ideas with me. style-elements would benefit from insertRule too.

In the vein of Make it Work, Make it Right, Make it Fast, the current elm-css API has gotten positive responses on its working and working right, so it makes sense to start shifting focus to performance!

6 Likes