You may be interested in looking at Auto Layout for Mac and iOS apps.
https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/index.html

It uses a system of linear equations to solve the defined layout
constraints.

On Sep 25, 2016 4:47 PM, "Duane Johnson" <duane.john...@gmail.com> wrote:

> Cascading Style Sheets are a way of selecting elements of a document and
> describing their properties.
>
> At a high level, as a designer (be gentle as I pretend to be a designer),
> I want to precisely articulate certain requirements of the properties of a
> website, while playing with (i.e. allowing variability) in another set of
> properties.
>
> For instance, it may be important to require that the contrast ratio
> between adjacent colors is high--whether for minimal legibility or for
> older eyes. Perhaps what the actual colors are will matter less, but it's
> also possible that the colors should adhere to various rules of Color
> Theory--triadic schemes, compound schemes, or analogous schemes for
> instance.
>
> As another example, I may want to require that a certain amount of space
> exists between columns, or between major components such as a navbar and
> main block. The style of the elements doesn't matter as much as the
> relationship between or among elements.
>
> Many times, when I'm developing a website, the concept of a CSS "class
> name" isn't really useful until development nears the end. The reason for
> this is that the structure of pages and knowledge about what styles are
> repeated and conserved among elements is being developed *simultaneously*.
>
> I think if we were to extend the Elm-esque way of incremental and
> rewarding development into the world of CSS, we would need to take a step
> back from what CSS models and ask what we should be modeling.
>
> Right now, I'm thinking that in an ideal world, I would be able to specify
> the important requirements of a website's styles, and then allow it to
> automatically generate the rest. As I go, I'd like to tweak the
> requirements and play with the autogenerated values until I arrive at a
> desirable structure and visually appealing website.
>
> As I develop the HTML side of the website, I'd like Elm to automatically
> "constrain" the new HTML's styles to those of the existing requirements.
>
> It sounds like what I want is a constraint solver.
>
> Has there been any research into this area in other languages?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to