Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Can you add other colors without altering the Asciidoctor stylesheet?
I'd like to make an icon Orange colored. Could you assign a color to a roll with HTML hex or rgb, like this? icon:folder[role=#FFA500] Orange I think this is the list of current colors. Have I missed any? icon:folder[role=Aqua] Aqua icon:folder[role=Black] Black icon:folder[role=Blue] Blue icon:folder[role=Fuchsia] Fuchsia icon:folder[role=Gray] Gray icon:folder[role=Green] Green icon:folder[role=Lime] Lime icon:folder[role=Maroon] Maroon icon:folder[role=Navy] Navy icon:folder[role=Olive] Olive icon:folder[role=Purple] Purple icon:folder[role=Red] Red icon:folder[role=Silver] Silver icon:folder[role=Teal] Teal icon:folder[role=White] White icon:folder[role=Yellow] Yellow
- Ted
@TedAtCIS
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Ted, You can add other colors using docinfo. (http://asciidoctor.org/docs/user-manual/#docinfo-file). > Could you assign a color to a roll with HTML hex or rgb? This is not supported, but for good reason. I think it breaks an important abstraction that roles provide. > I think this is the list of current colors. I'm seriously considering (and have been for some time) removing the built-in colors from the default stylesheet. They aren't very semantic and they don't really blend well with the theme. But fear not, I'm not talking about eliminating colors in general. We'd just switch to meaningful names, like bootstrap does: * primary * secondary † * success * info * warning * danger (or maybe important) * caution † * highlight † * alert † † not in bootstrap (and the bg equivalents). Of course, you can add your own roles via docinfo, so you aren't limited to these. These are just conveniences. Cheers, -Dan On Thu, Dec 31, 2015 at 11:05 PM, Ted [via Asciidoctor :: Discussion] <[hidden email]> wrote: Can you add other colors without altering the Asciidoctor stylesheet? ... [show rest of quote] Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by Ted
Btw, I recommend moving forward with your own semantic roles that map to this list to future-proof your AsciiDoc :) -Dan On Wed, Jan 6, 2016 at 7:45 PM, Dan Allen <[hidden email]> wrote:
... [show rest of quote] Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by Ted
... [show rest of quote]
This approach makes sense to me too, but would it be possible to add some default "schemas"? I'm thinking for instance adding additional color combinations for color-blind people.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by mojavelinux
... [show rest of quote]
Dan, using the docinfo file solves my problem. I now have orange! Thank you.
I created a demo on GitHub so others could figure out how the docinfo file is included. I also threw together a color scheme based on the heading color in the asciidoctor.css. Colorful Demo: http://tedbergeron.github.io/AsciidoctorSemanticColors/ Here is the code used in rendering the demo page: https://raw.githubusercontent.com/tedbergeron/AsciidoctorSemanticColors/gh-pages/index.adoc https://github.com/tedbergeron/AsciidoctorSemanticColors/blob/gh-pages/docinfo.html
- Ted
@TedAtCIS
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Nice work Ted! -Dan On Thu, Jan 7, 2016 at 4:57 PM, Ted [via Asciidoctor :: Discussion] <[hidden email]> wrote:
... [show rest of quote] Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by abelsromero
On Thu, Jan 7, 2016 at 3:35 AM, abelsromero [via Asciidoctor :: Discussion] <[hidden email]> wrote: This approach makes sense to me too, but would it be possible to add some default "schemas"? I'm thinking for instance adding additional color combinations for color-brind people. To me, that is just a different theme. If we agree on semantic color names, we open up the door for that to happen, esp for color-blind people since the roles are about the function and not the actual appearance. So this is even more of a reason to have semantic color names and not actual color names. Color is not universal (blue to one person is gold to another). |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by abelsromero
Here's a reference to the semantic colors discussion in the issue tracker: -Dan On Thu, Jan 7, 2016 at 5:24 PM, Dan Allen <[hidden email]> wrote:
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Free forum by Nabble | Edit this page |