Fork me on GitHub
#untangled
<
2017-03-22
>
danielstockton11:03:45

How does the untangled support-viewer know what the state has been updated?

tony.kay14:03:42

not sure what you're asking. The todo mvc app has a functioning example

danielstockton13:03:26

I was looking for a hook that I can use to know whenever the state updates. Imagine an implicit trailing read to every transact. I couldn't work out how the :current-position read was always current.

stephen15:03:43

@baptiste-from-paris The css in untangled-ui was originally based on an internal set of elements designed for our employer, and then later adapted partially to conform to Google’s material design where it made sense. Some of it conforms to their spec, but other parts are just well designed in it’s own way. Under the hood it’s written with only spec compliant CSS compiled using PostCSS.

baptiste-from-paris15:03:21

thx @stephenway that’s what exactly what I needed to know

baptiste-from-paris15:03:36

anyway, it’s beautiful 🙂

stephen15:03:38

Thank you, it’s been a joy working on it

baptiste-from-paris15:03:54

I have to say that I struggle a lot when I have to produce CSS. Can you share any tools or workflow you are using ?

stephen15:03:43

Sure! Mostly your best tools will be npm packages for postcss and gulp https://github.com/untangled-web/untangled-ui/blob/develop/package.json

stephen15:03:54

There are many options out there, but this seems to work well for us

stephen15:03:28

depending on what your style is, you can craft your own preprocessor that lets you write css the way you want to

stephen15:03:04

I’m generally against using syntax sugar or logic in my stylesheets so I stick to just future spec plugins that let me write future code

baptiste-from-paris15:03:09

Thanks for sharing !

stephen15:03:16

sure, hope it helps