Movatterモバイル変換


[0]ホーム

URL:


Community CentralCommunity Central
Don't have an account?
Register
Sign In
Skip to content
Community Central
41,387
pages
This page is best viewed on Fandom's desktop skin. (Click here to view this page in desktop mode)

Color can be added to your community in a variety of places. For example, you can use thetheme designer to customize your wiki's color palette. Or you can add more specific color via your community'stemplates andCSS.

Defining colors[]

Hexadecimal codes[]

Just about every color imaginable can be represented by a six-digithexadecimal code — a numerical representation of the amount of red, green, and blue present in that particular color.RGBA is another color model that is frequently used on the web. It includes not only the red, green, and blue but also the "alpha" or transparency channels. Therefore, hex and RGB/RGBA codes are more precise – though less user-friendly – thancolor names.

In the charts below are some hex codes for a few colors. If you want to use any of these, just add them where appropriate. For example, if you wish to make your button color white in thetheme designer, copy the hex code of that color (#FFFFFF). Then, add it to the input field on the customize tab.

Note: Hex codes are not case-sensitive, so #ffffff and #FFFFFF represent the same thing.

Color names[]

There are two main types of color names that are preferred, HTML and web colors.

HTML color names[]

For ease of use, some colors havecolor keywords — (case-insensitive) names, likered andYELLOW. The HTML 4.01 specification[1] defined sixteen "basic" color keywords:

NameHex code
cyan#00FFFF
navy#000080
black#000000
olive#808000
blue#0000FF
purple#800080
fuchsia#FF00FF
red#FF0000
NameHex code
green#008000
silver#C0C0C0
gray#808080
teal#008080
lime#00FF00
white#FFFFFF
maroon#800000
yellow#FFFF00

RGBA color names[]

Note: You may also findRGB codes that are the same as the RGBA codes but without the alpha channel. This makes them functionally equivalent to the HTML color codes listed above.

The color channels range in value from 0 to 255, while the alpha or transparency channel is always a value between 0 and 1, with 0 denoting full transparency and 1 denoting full opacity, or no transparency.

The first of the four numbers represents the red channel, the second represents the green channel, the third represents the blue channel, and the fourth, the alpha channel.

NameRGBA code
cyanrgba(0, 255, 255, 1)
navyrgba(0, 0, 128, 1)
blackrgba(0, 0, 0, 1)
olivergba(128, 128, 0, 1)
bluergba(0, 0, 255, 1)
purplergba(128, 0, 128, 1)
fuchsiargba(255, 0, 255, 1)
redrgba(255, 0, 0, 1)
NameRGBA code
greenrgba(0, 128, 0, 1)
silverrgba(192, 192, 192, 1)
grayrgba(128, 128, 128, 1)
tealrgba(0, 128, 128, 1)
limergba(0, 255, 0, 1)
whitergba(255, 255, 255, 1)
maroonrgba(128, 0, 0, 1)
yellowrgba(255, 255, 0, 1)

Web color names[]

If you've spent any time coding, though, you know there are other color names, likecornflowerblue andlinen. These extended color keywords areX11 color names, defined by web browsers.

The first version of the X Window system determined color keywords by X11 color names. Today, web colors, X11's descendant system, provides available colors.

A large, helpful list of usable color names and equivalent hex codes can be found onWikipedia.[2][3]

Fluorescent colors[]

Fluorescent orneon colors can appear to glow on your wiki's pages, depending on how you've set up your base colors in thetheme designer. The effect can be arresting and effective. So, play around with the following: But remember,a little neon goes a long way!

NameHex code
Rainshower#C9FFE5
Blizzard Blue#A3E3ED
Psychedelic Purple#FA00FF
Harlequin#3FFF00
Bubbles#E7FEFF
Razzle Dazzle Rose#FF33CC
Electric Purple#BF00FF
Hot Magenta#FF00CC
Neon Carrot#FFA343
Chartreuse Yellow#DFFF00
Shocking Pink#FC0FC0
NameHex code
Screamin' Green#66FF66
Purple Pizzazz#FE4EDA
Electric Violet#8B00FF
Sunglow#FFCC33
Electric Lime#CCFF00
Snowy Mint#D6FFDB
Flamingo Pink#FF66FF
Infra Red#FF496C
Laser Lemon#FFFF66
Phlox#DF00FF
Veronica#A020F0

Several online tools are available which can assist you in choosing the right color.

Color and accessibility[]

While being creative with color can greatly enhance the look of your wiki, it is important to remain mindful that not everyone perceives color in the same way. Keeping your wiki accessible to thecolorblind, seeing-impaired, or disabled is also important.

Sharp contrasts can also be considered "hard on the eyes" and should be avoided. Two helpful sites areContrast Checker andLink Contrast Checker.

Theming variables[]

In the FandomDesktop skin, users have access to variables representing theme colors.

Variable nameDescription
--theme-accent-colorAccent color taken from ThemeDesigner, presented as hex value
--theme-accent-color--hoverAccent color taken from ThemeDesigner, darkened or lightened by 20%, depending on theme, presented as hex value
--theme-accent-color--rgbAccent color taken from ThemeDesigner, presented as group of Red, Green, Blue values
--theme-accent-dynamic-color-1dynamic-1 color for accent. See Dynamic Colors section for more info.
--theme-accent-dynamic-color-1--rgbdynamic-1 color rgb components for accent. See Dynamic Colors section for more info.
--theme-accent-dynamic-color-2dynamic-2 color for accent. See Dynamic Colors section for more info.
--theme-accent-dynamic-color-2--rgbdynamic-2 color rgb components for accent. See Dynamic Colors section for more info.
--theme-accent-label-colorAccessible text color to use with --theme-accent-color background, presented as hex value
--theme-alert-colorAlert color (red-ish), adjusted for proper contrast comparing with page background, presented as hex value
--theme-alert-color--hoverAlert color (red-ish) adjusted for proper contrast comparing with page background, darkened or lightened by 20%, depending on theme, presented as hex value
--theme-alert-color--rgbAlert color (red-ish), adjusted for proper contrast comparing with page background, presented as group of Red, Green, Blue values
--theme-alert-labelAccessible text color to use with --theme-alert-color background, presented as hex value
--theme-body-background-colorBody background color taken from ThemeDesigner, presented as hex value
--theme-body-background-imageURL to background image, taken from ThemeDesigner, presented as string
--theme-body-dynamic-color-1dynamic-1 color for body background. See Dynamic Colors section for more info.
--theme-body-dynamic-color-1--rgbdynamic-1 color rgb components for body background. See Dynamic Colors section for more info.
--theme-body-dynamic-color-2dynamic-2 color for body background. See Dynamic Colors section for more info.
--theme-body-dynamic-color-2--rgbdynamic-2 color rgb components for body background. See Dynamic Colors section for more info.
--theme-body-text-colorAccessible text color to use with --body-background-color background, presented as hex value
--theme-body-text-color--hoverAccessible text color to use with --body-background-color background, darkened or lightened by 20%, depending on theme, presented as hex value
--theme-border-colorAccessible border color calculated based on --theme-page-background-color, presented as hex value
--theme-border-color--rgbAccessible border color calculated based on --theme-page-background-color, presented as group of Red, Green, Blue values
--theme-link-colorLink color taken from ThemeDesigner, presented as hex value
--theme-link-color--hoverLink color taken from ThemeDesigner, darkened or lightened by 20%, depending on theme, presented as hex value
--theme-link-color--rgbLink color taken from ThemeDesigner, presented as group of Red, Green, Blue values
--theme-link-dynamic-color-1dynamic-1 color for links. See Dynamic Colors section for more info.
--theme-link-dynamic-color-1--rgbdynamic-1 color rgb components for links. See Dynamic Colors section for more info.
--theme-link-dynamic-color-2dynamic-2 color for links. See Dynamic Colors section for more info.
--theme-link-dynamic-color-2--rgbdynamic-2 color rgb components for links. See Dynamic Colors section for more info.
--theme-link-label-colorAccessible text color to use with --theme-link-color background, presented as hex value
--theme-message-colorMessage color (blue-ish), adjusted for proper contrast comparing with page background, presented as hex value
--theme-message-labelAccessible text color to use with --theme-message-color background, presented as hex value
--theme-page-accent-mix-colorMix of a page background color and accent color in the 50-50 ratio
--theme-page-background-colorPage (article) background color taken from ThemeDesigner, presented as hex value
--theme-page-background-color--rgbPage (article) background color taken from ThemeDesigner, presented as group of Red, Green, Blue values
--theme-page-background-color--secondarySecondary color calculated based on --theme-page-background-color, slightly mixed with white or black color, depending on theme, presented as hex value
--theme-page-dynamic-color-1dynamic-1 color for page (article) background. See Dynamic Colors section for more info.
--theme-page-dynamic-color-1--rgbdynamic-1 color rgb components for page (article) background. See Dynamic Colors section for more info.
--theme-page-dynamic-color-2dynamic-2 color for page (article) background. See Dynamic Colors section for more info.
--theme-page-dynamic-color-2--rgbdynamic-2 color rgb components for page (article) background. See Dynamic Colors section for more info.
--theme-page-text-colorText color for a page. Alias for --theme-page-dynamic-color-2.
--theme-page-text-color--hoverHover state of a page text color
--theme-page-text-color--rgbRGB components of page text color
--theme-page-text-mix-colorMix of a page background color and page dynamic-2 color in the 50-50 ratio
--theme-sticky-nav-background-colorSticky nav background color. This color can be set inside the Theme Designer.
--theme-sticky-nav-dynamic-color-1dynamic-1 color for sticky nav background. See Dynamic Colors section for more info.
--theme-sticky-nav-dynamic-color-1--rgbdynamic-1 color rgb components for sticky nav background. See Dynamic Colors section for more info.
--theme-sticky-nav-dynamic-color-2dynamic-2 color for sticky nav background. See Dynamic Colors section for more info.
--theme-sticky-nav-dynamic-color-2--rgbdynamic-2 color rgb components for sticky nav background. See Dynamic Colors section for more info.
--theme-sticky-nav-text-colorText color for sticky nav. Alias for --theme-sticky-nav-dynamic-color-1
--theme-sticky-nav-text-color--hoverHover state of a sticky nav text color
--theme-success-colorSuccess color (green-ish), adjusted for proper contrast comparing with page background, presented as hex value
--theme-success-color--rgbSuccess color (green-ish), adjusted for proper contrast comparing with page background, presented as group of Red, Green, Blue values
--theme-success-labelAccessible text color to use with --theme-success-color background, presented as hex value
--theme-warning-colorWarning color (yellow-ish), adjusted for proper contrast comparing with page background, presented as hex value
--theme-warning-labelAccessible text color to use with --theme-warning-color background, presented as hex value

Dynamic Colors[]

Dynamic colors are established on the basis of their background. They are calculated to reach the best contrast ratio possible.

  • dynamic-color-1 is fandom-black (#0E191A) for light backgrounds and white (#FFFFFF) for dark backgrounds.
  • dynamic-color-2 is dark grey (#3A3A3A) for light backgrounds and light grey (#E6E6E6) for dark backgrounds.

Variable aliases[]

Variable nameAlias for
--theme-accent-label-color--theme-accent-dynamic-color-1
--theme-body-text-color--theme-body-dynamic-color-1
--theme-link-label-color--theme-link-dynamic-color-1
--theme-page-text-color--theme-page-dynamic-color-2
--theme-sticky-nav-text-color--theme-sticky-nav-dynamic-color-1

References[]

See also[]

Further help and feedback[]

Community content is available underCC-BY-SA unless otherwise noted.

[8]ページ先頭

©2009-2025 Movatter.jp