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

Color properties #6

Open
adamkhan opened this issue Aug 2, 2021 · 9 comments
Open

Color properties #6

adamkhan opened this issue Aug 2, 2021 · 9 comments

Comments

@adamkhan
Copy link

adamkhan commented Aug 2, 2021

A feed could have its preferred color properties to help display it. My suggestion for their naming (prefixed by "c" for color):

  • c-background
  • c-text
  • c-link
  • c-hover
  • c-active
@dshanske
Copy link
Member

Since the feed is HTML, this would be a matter of reading the CSS for the feed. I don't think properties are required here.

@adamkhan
Copy link
Author

@dshanske, one would need an entire browser to parse the CSS and derive from it these various color values.

@gRegorLove
Copy link
Member

You would need to use one of the microformats2 prefixes (p-, u-, dt-, e-) for parsers to work with those properties, and/or a vendor extension.

Are there examples of feed readers that customize colors via some other properties (e.g. RSS or Atom properties)? Documenting the real world use-cases and existing formats is an important part of advancing new microformats2 properties.

@dshanske
Copy link
Member

@adamkhan Have you seen this proposal? https://indieweb.org/whostyle

@dshanske
Copy link
Member

I'm not against the idea per se, just not sure about it being a property.

@adamkhan
Copy link
Author

@gRegorLove, thanks for responding. I'm new to microformats2 and didn't know there were set prefixes — which in itself is pretty cool, that the prefixes are also a standard. It seems these color ones would fit best under the existing "h-".

And you got it, I am indeed building a feed reader that customizes colors per feed!

@dshanske Thanks for the heads-up re whostyle — I'm looking into it.

@gRegorLove
Copy link
Member

h- is for a root microformat, like h-entry for articles and notes, h-feed for a stream of posts, etc. (see list of vocabularies). What you're describing here is sort of an attribute of a feed, so it wouldn't be a separate h- microformat.

Even then, it's more of a styling attribute that's represented in a separate CSS file, not (typically) in the HTML itself. I mentioned existing formats like RSS or ATOM to see how they might already handle this type of styling, which could help guide if/how to best represent this as a microformat property.

Welcome to microformats! If you haven't yet, check out the microformats process. We're also on IRC if you have any questions about publishing or consuming microformats.

@adamkhan
Copy link
Author

Also, I've just seen Apple's JSON format for Apple News — it's worth observing what they are doing, seems to me. See https://developer.apple.com/documentation/apple_news/apple_news_format.

@adamkhan
Copy link
Author

You would need to use one of the microformats2 prefixes (p-, u-, dt-, e-) for parsers to work with those properties, and/or a vendor extension.

Are there examples of feed readers that customize colors via some other properties (e.g. RSS or Atom properties)? Documenting the real world use-cases and existing formats is an important part of advancing new microformats2 properties.

Probably the biggest real-world use-case would be Apple News. They have their own proprietary format — perhaps it's worth worth emulating those fields that AAPL decided they need in order to present feeds well.

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

3 participants