Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update todomvc stylesheets #20

Open
asayers opened this issue Mar 12, 2015 · 4 comments
Open

Update todomvc stylesheets #20

asayers opened this issue Mar 12, 2015 · 4 comments

Comments

@asayers
Copy link
Collaborator

asayers commented Mar 12, 2015

todomvc now has a couple of npm packages for the css and assets. See here.

@asayers
Copy link
Collaborator Author

asayers commented Mar 12, 2015

Ideally we'd convert the CSS to Clay or something though. External stylesheets don't compose well.

@meiersi
Copy link
Owner

meiersi commented Mar 12, 2015

Or use inline styles ;)
Am 12.03.2015 17:46 schrieb "Alex Sayers" [email protected]:

Ideally we'd convert the CSS to Clay or something though. External
stylesheets don't compose well.


Reply to this email directly or view it on GitHub
#20 (comment).

@asayers
Copy link
Collaborator Author

asayers commented Mar 17, 2015

In fact, I wonder if it would be a good idea to write a quasi-quoter which takes CSS and produces HashMaps:

style :: HMS.HashMap T.Text T.Text
style = [css|
    height: 20px;
    color: #ff0000;
|]

Then it would be simple to copy over the styling from projects such as TodoMVC.

@meiersi
Copy link
Owner

meiersi commented Mar 18, 2015

That's one option. The other is to just offer a tool 'css-to-haskell' that
does the translation for you. It has the advantage that you can work
without an additional language with weaker abstraction capabilities.

2015-03-17 23:43 GMT+01:00 Alex Sayers [email protected]:

In fact, I wonder if it would be a good idea to write a quasi-quoter which
takes CSS and produces HashMaps:

style :: HMS.HashMap T.Text T.Text
style = [css|
height: 20px;
color: #ff0000;|]

Then it would be simple to copy over the styling from projects such as
TodoMVC.


Reply to this email directly or view it on GitHub
#20 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants