List of colors for Role

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Ted
Reply | Threaded
Open this post in threaded view
|

List of colors for Role

Ted
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
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

mojavelinux
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?

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/List-of-colors-for-Role-tp4139.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

mojavelinux
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:
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?

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/List-of-colors-for-Role-tp4139.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

abelsromero
In reply to this post by Ted
mojavelinux wrote
> 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.
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.
Ted
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

Ted
In reply to this post by mojavelinux
mojavelinux wrote
Ted,

You can add other colors using docinfo. (
http://asciidoctor.org/docs/user-manual/#docinfo-file).

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
--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
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
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

mojavelinux
Administrator
Nice work Ted!

-Dan

On Thu, Jan 7, 2016 at 4:57 PM, Ted [via Asciidoctor :: Discussion] <[hidden email]> wrote:
mojavelinux wrote
Ted,

You can add other colors using docinfo. (
http://asciidoctor.org/docs/user-manual/#docinfo-file).

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
--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
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



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/List-of-colors-for-Role-tp4139p4163.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

mojavelinux
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).

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: List of colors for Role

mojavelinux
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:

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).

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen