Red
Blue
and
Green
colors. From these colors, other colors are derived.
The local color library
does not distinguish between any of these color through their color categories or classifications. Rather, colors are measured with either
the shade of white (-l, -ll) or darkness (-d, -dd). Some colors which are naturally dark, for example green,
use the shade of white (i.e -l or -ll) to become brighter while others which are bright use -d
or
-dd
to specify the darkness. However, brown is the only color which has been defined to have both a lighter and a darker
utility class selector. The following colors are available for use:
black
white
off-white
blue
red
yellow
green
orange
purple
bronze
silver
gold
brown
indigo
pink
aqua
grey
slate-grey
ivory
lime
magenta
maroon
red-orange
sea-green
sea-blue
sky-blue
dry-blue
steel-blue
dodger-blue
deep-blue
deeper-blue
blue-violet
tan
teal
.
Colors are either classified as dark colors or bright colors based
on the aforementioned colors. The dark colors uses the light -l
and lighter -ll
""
directives to get brighter, while bright colors use the dark -d
or darker -dd
directive to get darker.
black
green
and brown
colors. Hence, the following are acceptable black
black-l
black-ll
green
green-l
green-ll
brown
brown-l
brown-ll
white
white-d
white-dd
off-white
off-white-d
off-white-dd
red
red-d
red-dd
blue
blue-d
blue-dd
dodger-blue
dodger-blue-d
dodger-blue-dd
dry-blue
dry-blue-d
dry-blue-dd
deep-blue
deep-blue-d
deep-blue-dd
deeper-blue
deeper-blue-d
deeper-blue-dd
steel-blue
steel-blue-d
steel-blue-dd
blue-violet
blue-violet-d
blue-violet-dd
yellow
yellow-d
yellow-dd
orange
orange-d
orange-dd
pink
pink-d
pink-dd
purple
purple-d
purple-dd
rebecca-purple
rebecca-purple-d
rebecca-purple-dd
bronze
bronze-d
bronze-dd
silver
silver-d
silver-dd
gold
gold-d
gold-dd
indigo
indigo-d
indigo-dd
aqua
aqua-d
aqua-dd
grey
grey-d
grey-dd
slate-grey
slate-grey-d
slate-grey-dd
ivory
ivory-d
ivory-dd
olive
olive-d
olive-dd
lime
lime-d
lime-dd
magenta
magenta-d
magenta-dd
maroon
maroon-d
maroon-dd
crimson
crimson-d
crimson-dd
tan
tan-d
tan-dd
teal
teal-d
teal-dd
sea-blue
sea-blue-d
sea-blue-dd
sea-green
sea-green-d
sea-green-dd
red-orange
red-orange-d
red-orange-dd
brown
brown-d
brown-dd
c
, backgrounds color bc
bh
, borders bd
and outlines oc
oh
oo
. The following
syntaxes defines the purpose of a color: c-
- text color
co-
- text color opacity
ch-
- text hover color
cho-
- text color hover opacity
bc-
- background color
bco-
- background color opacity level
bh-
- background hover color
bho-
- background hover opacity level
bd-
- border (color, thickness)
bdo-
- border opacity (color)
bdh-
- border hover (color)
bdho-
- border hover opacity (color)
och-
- outline color (color, thickness)
oco-
- outline color opacity
och-
- outline hover color
oho-
- outline hover opacity (color)
oo-
- outline offset
ooh-
- outline offset hover
c-
will be merged with the green color green
to give c-green
.
This method can also be applied for color shades. For examle a light green will used c-green-l
and a lighter green will
use c-green-ll
. In this way, it becomes easier to identify colors.
grey
can be applied a font color of c-grey
and hover color ch-grey
.
For example when we hover on "This is a text" in the figure below, the color becomes darker:
bc
class.
This slows down the animation speed, making it smoother just as show below:
-1
-2
-3
-4
-5
-6
-7
-8
and
-9
. The -1
reflects the lowest level of transparency at
0.9
while -9
relfects the highest highest of transparency at
0.1
. The code below is an example of background opacity set for an element. The transition effect is applied
though the bc
class while a background hover color opacity of 3 (ie bho-3
).
box-shadow
css property. The code structure
is show below: <button class="in-flex-btn rad-r bc bc-purple bh-purple-dd oc-purple oc-1 oh-4 oo-5 ooh-7 c-white pxv-10 mxv-20" style="box-shadow: 0 0 0 10px rgb(var(--silver-d)), 0 0 0 14px purple;"> Click me </button>
in-flex-btn
is a flex display type used for buttons.
rad-r
sets an element's border to round shape
c-white
sets text color to whitebc
sets a slower transition effectbc-purple
sets an elements background color to purplebc-purple-dd
sets an elements background color to darker purple when hovered uponoc-purple
sets outline color to purpleoc-1
sets outline thickness to 1oh-4
sets outline thickness to 4 when hovered uponoo-5
sets outline offset to 5ooh-7
sets outline offset to 7 when hovered uponpxv-10
sets padding to 10 pixelmxv-20
sets a margin of 20 pixels all around the horizontal (x-axis) and vertical (y-axis) x-attr
template directive for recurring attributes.
box-shadow
css property. The code structure
is show below: <div class="bc-silver relative c-white"> <div class="flex midv pxs-20 relative" style="height:50px"> <div class="pxv-10 box-full bc-black bco-7" style="width:120px"></div> <div class="bc-red bco-7 c-white pxv-10 absolute" style="top:-20px; width: 80px; height: 60px"> </div> <div class="bc-red bco-7 c-white pxv-10 absolute grid-center" style="left:40px; bottom:-8px; width:80px; height: 100px"> HI </div> </div> </div>