Very simple package that defines named colors for HTML

more info see: here

Getting started

just add named_html_color to your pubspec.yaml

dependencies:
  named_html_color: any

Usage

import 'package:named_html_color/html_color.dart';

void function() {
    Color yourColor = HTMLColor.pink;
    // ...
}

API

Red

color name api
indianRed HTMLColor.indianRed
lightCoral HTMLColor.lightCoral
salmon HTMLColor.salmon
darkSalmon HTMLColor.darkSalmon
lightSalmon HTMLColor.lightSalmon
crimson HTMLColor.crimson
red HTMLColor.red
fireBrick HTMLColor.fireBrick
darkRed HTMLColor.darkRed

Pink

color name api
pink HTMLColor.pink
lightPink HTMLColor.lightPink
hotPink HTMLColor.hotPink
deepPink HTMLColor.deepPink
mediumVioletRed HTMLColor.mediumVioletRed
paleVioletRed HTMLColor.paleVioletRed

Orange

color name api
coral HTMLColor.coral
tomato HTMLColor.tomato
orangeRed HTMLColor.orangeRed
darkOrange HTMLColor.darkOrange
orange HTMLColor.orange

Yellow

color name api
gold HTMLColor.gold
yellow HTMLColor.yellow
lightYellow HTMLColor.lightYellow
lemonChiffon HTMLColor.lemonChiffon
lightGoldenrodYellow HTMLColor.lightGoldenrodYellow
papayaWhip HTMLColor.papayaWhip
moccasin HTMLColor.moccasin
peachPuff HTMLColor.peachPuff
paleGoldenrod HTMLColor.paleGoldenrod
khaki HTMLColor.khaki
darkKhaki HTMLColor.darkKhaki

Purple

color name api
lavender HTMLColor.lavender
thistle HTMLColor.thistle
plum HTMLColor.plum
violet HTMLColor.violet
orchid HTMLColor.orchid
fuchsia HTMLColor.fuchsia
magenta HTMLColor.magenta
mediumOrchid HTMLColor.mediumOrchid
mediumPurple HTMLColor.mediumPurple
rebeccaPurple HTMLColor.rebeccaPurple
blueViolet HTMLColor.blueViolet
darkViolet HTMLColor.darkViolet
darkOrchid HTMLColor.darkOrchid
darkMagenta HTMLColor.darkMagenta
purple HTMLColor.purple
indigo HTMLColor.indigo
slateBlue HTMLColor.slateBlue
darkSlateBlue HTMLColor.darkSlateBlue
mediumSlateBlue HTMLColor.mediumSlateBlue

Green

color name api
greenYellow HTMLColor.greenYellow
chartreuse HTMLColor.chartreuse
lawnGreen HTMLColor.lawnGreen
lime HTMLColor.lime
limeGreen HTMLColor.limeGreen
paleGreen HTMLColor.paleGreen
lightGreen HTMLColor.lightGreen
mediumSpringGreen HTMLColor.mediumSpringGreen
springGreen HTMLColor.springGreen
mediumSeaGreen HTMLColor.mediumSeaGreen
seaGreen HTMLColor.seaGreen
forestGreen HTMLColor.forestGreen
green HTMLColor.green
darkGreen HTMLColor.darkGreen
yellowGreen HTMLColor.yellowGreen
oliveDrab HTMLColor.oliveDrab
olive HTMLColor.olive
darkOliveGreen HTMLColor.darkOliveGreen
mediumAquamarine HTMLColor.mediumAquamarine
darkSeaGreen HTMLColor.darkSeaGreen
lightSeaGreen HTMLColor.lightSeaGreen
darkCyan HTMLColor.darkCyan
teal HTMLColor.teal

Blue

color name api
aqua HTMLColor.aqua
cyan HTMLColor.cyan
lightCyan HTMLColor.lightCyan
paleTurquoise HTMLColor.paleTurquoise
aquamarine HTMLColor.aquamarine
turquoise HTMLColor.turquoise
mediumTurquoise HTMLColor.mediumTurquoise
darkTurquoise HTMLColor.darkTurquoise
cadetBlue HTMLColor.cadetBlue
steelBlue HTMLColor.steelBlue
lightSteelBlue HTMLColor.lightSteelBlue
powderBlue HTMLColor.powderBlue
lightBlue HTMLColor.lightBlue
skyBlue HTMLColor.skyBlue
lightSkyBlue HTMLColor.lightSkyBlue
deepSkyBlue HTMLColor.deepSkyBlue
dodgerBlue HTMLColor.dodgerBlue
cornflowerBlue HTMLColor.cornflowerBlue
royalBlue HTMLColor.royalBlue
blue HTMLColor.blue
mediumBlue HTMLColor.mediumBlue
darkBlue HTMLColor.darkBlue
navy HTMLColor.navy
midnightBlue HTMLColor.midnightBlue

Brown

color name API
cornsilk HTMLColor.cornsilk
blanchedAlmond HTMLColor.blanchedAlmond
bisque HTMLColor.bisque
navajoWhite HTMLColor.navajoWhite
wheat HTMLColor.wheat
burlyWood HTMLColor.burlyWood
tanColor HTMLColor.tanColor
rosyBrown HTMLColor.rosyBrown
sandyBrown HTMLColor.sandyBrown
goldenrod HTMLColor.goldenrod
darkGoldenrod HTMLColor.darkGoldenrod
peru HTMLColor.peru
chocolate HTMLColor.chocolate
saddleBrown HTMLColor.saddleBrown
sienna HTMLColor.sienna
brown HTMLColor.brown
maroon HTMLColor.maroon

White

color name api
white HTMLColor.white
snow HTMLColor.snow
honeyDew HTMLColor.honeyDew
mintCream HTMLColor.mintCream
azure HTMLColor.azure
aliceBlue HTMLColor.aliceBlue
ghostWhite HTMLColor.ghostWhite
whiteSmoke HTMLColor.whiteSmoke
seaShell HTMLColor.seaShell
beige HTMLColor.beige
oldLace HTMLColor.oldLace
floralWhite HTMLColor.floralWhite
ivory HTMLColor.ivory
antiqueWhite HTMLColor.antiqueWhite
linen HTMLColor.linen
lavenderBlush HTMLColor.lavenderBlush
mistyRose HTMLColor.mistyRose

Grey

color name api
gainsboro HTMLColor.gainsboro
lightGray HTMLColor.lightGray
silver HTMLColor.silver
darkGray HTMLColor.darkGray
gray HTMLColor.gray
dimGray HTMLColor.dimGray
lightSlateGray HTMLColor.lightSlateGray
slateGray HTMLColor.slateGray
darkSlateGray HTMLColor.darkSlateGray
black HTMLColor.black

License

MIT License

Copyright (c) 2023 Fries_I23

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Libraries

_colors
html_color