Color Palette
A guided overview of Neural-Sketch’s default and customizable color scheme
Introduction
A cohesive color scheme plays a pivotal role in producing publication-ready diagrams. Neural-Sketch offers a carefully curated palette crafted to ensure clarity, high contrast, and visual harmony across diverse shapes, containers, and annotated elements. By default, the package provides a handpicked array of tints—ranging from tranquil blues and oranges to subdued grays with soft pastel accent colors.
In typical usage, you can apply these colors easily by referencing their names—such as nskBlue
or nskGray
—in your shape or container definitions. Additionally, you can override or extend the palette to align with institutional or personal style guidelines.
Default Color Names
Neural-Sketch ships with a variety of built-in colors, each stored under a descriptive name—e.g., nskBlue
or nskDarkGray
. Internally, these macros point to carefully blended RGB or HTML hex values that have been selected to stand out elegantly in conference proceedings or journal publications. The typical naming structure resembles:
- Primary Accents:
nskMainAccent
,nskSecondaryAccent
. - Basic Tones:
nskBlue
,nskOrange
,nskRed
,nskGreen
, etc. - Gray Tones:
nskDarkGray
,nskLightGray
,nskLightestGray
, among others. - Supplementary Accents:
nskCyan
,nskLime
,nskMagenta
, etc. - Strong Hues:
nskStrongBlue
,nskStrongRed
.
The naming convention is self-explanatory and helps you recognize each color’s intensity and purpose. For example, nskDarkGray
is a dark shade ideal for borders or containers, whereas nskLightestGray
is best used for subtle backgrounds.
Applying Colors
Employ colors simply by assigning them to style keys or to the fill=
or text=
properties when defining shapes or containers. For instance:
Neural-Sketch automatically takes care of any required transformations or style expansions, ensuring that the blocks (and text anchors) display the correct color.
Naming Conventions
neural-sketch
employs a clear, standardized naming convention for all provided colors:
- Prefix: All colors are prefixed with nsk, denoting their origin from the Neural-Sketch palette.
- PascalCase: Following the prefix, the color name uses PascalCase, clearly denoting its identity and purpose, such as
nskBlue
,nskDarkGray
, ornskMainAccent
.
Example: To apply a red
in a diagram, you would use:
Color Mixing and Blending
Color definitions fully support TikZ's built-in color mixing syntax via the !
operator, enabling you to quickly create customized shades of any predefined color.
Basic Usage
To create a custom tint, simply append !<percentage>
to any neural-sketch
color:
This syntax smoothly generates lighter shades, ideal for creating subtle highlights or nuanced diagram styling.
How the ! Operator Works
The general syntax is:
where,
<base-color>
: Any predefined Neural-Sketch color (e.g.,nskRed
,nskLightGray
).<percentage>
: An integer (0–100) indicating the proportion of the<base-color>
in the mix.<other-color>
(optional): The secondary color mixed with the base. If omitted, white is implicitly used.
Examples
Mixing with White (Default)
Mixing with Another Color
You can mix two distinct colors directly:
Tips
- Subtle Highlights: Use
nsk<color>!50
to gently highlight backgrounds. - Visual Hierarchy: Clearly distinguish related diagram elements using incremental percentages (e.g.,
nskGreen!30
,nskGreen!60
,nskGreen!90
).
Advanced Example (Shades)
Here’s how a visually cohesive yet distinct diagram can be created using incremental shades:
This produces a smooth gradient sequence from very a light nskMainAccent!20
to full intensity nskMainAccent!100
, ideal for illustrating progression, intensity, or hierarchy clearly and attractively.
Color Reference
Below are listed the currently provided colors
Name | Alias | Invertable | Variant | hex code |
---|---|---|---|---|
c__nsk_main_accent_clr | nskMainAccent | true | normal | #e8d4ff |
c__nsk_main_accent_inv_clr | - | true | inverse | #e8d4ff |
c__nsk_secondary_accent_clr | nskSecondaryAccent | true | normal | #d6ebff |
c__nsk_secondary_accent_inv_clr | - | true | inverse | #2e3e4d |
c__nsk_dark_gray_clr | nskDarkGray | true | normal | #666666 |
c__nsk_dark_gray_inv_clr | - | true | inverse | #9d937b |
c__nsk_mid_gray_clr | nskMidGray | true | normal | #6e695a |
c__nsk_mid_gray_inv_clr | - | true | inverse | #a3a3a3 |
c__nsk_light_gray_clr | nskLightGray | true | normal | #f0f0f5 |
c__nsk_light_gray_inv_clr | - | true | inverse | #33332d |
c__nsk_lighter_gray_clr | nskLighterGray | true | normal | #bcbcbf |
c__nsk_lighter_gray_inv_clr | - | true | inverse | #5b574b |
c__nsk_lightest_gray_clr | nskLightestGray | true | normal | #f8f8f9 |
c__nsk_lightest_gray_inv_clr | - | true | inverse | #2d2d2b |
c__nsk_shadow_clr | nskShadow | true | normal | #d2d2d2 |
c__nsk_shadow_inv_clr | - | true | inverse | #4a4840 |
c__nsk_red_clr | nskRed | true | normal | #ff99a1 |
c__nsk_red_inv_clr | - | true | inverse | #4d2e30 |
c__nsk_pink_clr | nskPink | true | normal | #ffccee |
c__nsk_pink_inv_clr | - | true | inverse | #663d58 |
c__nsk_blue_clr | nskBlue | true | normal | #a0d0d0 |
c__nsk_blue_inv_clr | - | true | inverse | #264040 |
c__nsk_green_clr | nskGreen | true | normal | #9bff99 |
c__nsk_green_inv_clr | - | true | inverse | #74285f |
c__nsk_yellow_clr | nskYellow | true | normal | #ffff99 |
c__nsk_yellow_inv_clr | - | true | inverse | #28285f |
c__nsk_orange_clr | nskOrange | true | normal | #ffcf99 |
c__nsk_orange_inv_clr | - | true | inverse | #284a5f |
c__nsk_lime_clr | nskLime | true | normal | #bdff99 |
c__nsk_lime_inv_clr | - | true | inverse | #5a285f |
c__nsk_cyan_clr | nskCyan | true | normal | #99fffc |
c__nsk_cyan_inv_clr | - | true | inverse | #76282a |
c__nsk_magenta_clr | nskMagenta | true | normal | #ff4db8 |
c__nsk_magenta_inv_clr | - | true | inverse | #28a54e |
c__nsk_brown_clr | nskBrown | true | normal | #664729 |
c__nsk_brown_inv_clr | - | true | inverse | #332414 |
c__nsk_strong_blue_clr | nskStrongBlue | true | normal | #005afd |
c__nsk_strong_blue_inv_clr | - | true | inverse | #eb9c29 |
c__nsk_strong_red_clr | nskStrongRed | true | normal | #d91900 |
c__nsk_strong_red_inv_clr | - | true | inverse | #45c9b2 |
c__nsk_strong_purple_clr | nskStrongPurple | true | normal | #6545d5 |
c__nsk_strong_purple_inv_clr | - | false | normal | #6545d5 |
c__nsk_medium_white_clr | nskMediumWhite | false | normal | #b0b2c1 |
c__nsk_dark_bg_clr | nskDarkBg | false | normal | #1d2021 |
c__nsk_cream_white_clr | nskCreamWhite | false | normal | #ebdbb2 |