-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: green, light green, and teal color palettes and swatches
- Loading branch information
Showing
27 changed files
with
736 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import 'package:eo_color/palettes.dart'; | ||
|
||
/// Material Design green. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - ultraLight() ≡ 50 | ||
/// - veryLight() ≡ 100 | ||
/// - light() ≡ 200 | ||
/// - lighter() ≡ 300 | ||
/// - bitLighter() ≡ 400 | ||
/// - **() ≡ 500 primary** | ||
/// - bitDarker() ≡ 600 | ||
/// - darker() ≡ 700 | ||
/// - dark() ≡ 800 | ||
/// - veryDark() ≡ 900 | ||
/// | ||
/// See also | ||
/// - [green](https://api.flutter.dev/flutter/material/Colors/green-constant.html) | ||
class Green extends PaletteRGB { | ||
/// Primary shade #4CAF50 ≡ [500]. | ||
const Green() : super.opaque(0x4CAF50); | ||
|
||
/// Ultra light #E8F5E9 ≡ [50]. | ||
const Green.ultraLight() : super.opaque(0xE8F5E9); | ||
|
||
/// Very light shade #C8E6C9 ≡ [100]. | ||
const Green.veryLight() : super.opaque(0xC8E6C9); | ||
|
||
/// Light shade #A5D6A7 ≡ [200]. | ||
const Green.light() : super.opaque(0xA5D6A7); | ||
|
||
/// Lighter shade #81C784 ≡ [300]. | ||
const Green.lighter() : super.opaque(0x81C784); | ||
|
||
/// Bit lighter shade #66BB6A ≡ [400]. | ||
const Green.bitLighter() : super.opaque(0x66BB6A); | ||
|
||
/// Bit darker shade #43A047 ≡ [600]. | ||
const Green.bitDarker() : super.opaque(0x43A047); | ||
|
||
/// Darker shade #388E3C ≡ [700]. | ||
const Green.darker() : super.opaque(0x388E3C); | ||
|
||
/// Dark shade #2E7D32 ≡ [800]. | ||
const Green.dark() : super.opaque(0x2E7D32); | ||
|
||
/// Very dark shade #1B5E20 ≡ [900]. | ||
const Green.veryDark() : super.opaque(0x1B5E20); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:eo_color/palettes.dart'; | ||
|
||
/// Material Design green accent. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - light() ≡ 100 | ||
/// - **() ≡ 200 primary** | ||
/// - darker() ≡ 400 | ||
/// - dark() ≡ 700 | ||
/// | ||
/// See also | ||
/// - [green accent](https://api.flutter.dev/flutter/material/Colors/greenAccent-constant.html) | ||
class GreenAccent extends PaletteRGB { | ||
/// Primary shade #69F0AE ≡ [200]. | ||
const GreenAccent() : super.opaque(0x69F0AE); | ||
|
||
/// Light shade #B9F6CA ≡ [100]. | ||
const GreenAccent.light() : super.opaque(0xB9F6CA); | ||
|
||
/// Darker shade #00E676 ≡ [400]. | ||
const GreenAccent.darker() : super.opaque(0x00E676); | ||
|
||
/// Dark shade #00C853 ≡ [700]. | ||
const GreenAccent.dark() : super.opaque(0x00C853); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:eo_color/swatches.dart'; | ||
|
||
import 'green_accent.dart'; | ||
|
||
/// Material Design shades of green accent. | ||
/// | ||
/// See also | ||
/// - [green accent](https://api.flutter.dev/flutter/material/Colors/greenAccent-constant.html) | ||
class GreenAccents extends SwatchBase { | ||
/// Four shades of green accent; the greater the index, the darker the color. | ||
/// | ||
/// There are 4 valid indexes | ||
/// - 0, light ≡ 100 | ||
/// - **1, primary ≡ 200** | ||
/// - 2, darker ≡ 400 | ||
/// - 3, dark ≡ 700 | ||
const GreenAccents() | ||
// coverage:ignore-start | ||
: super( | ||
const [ | ||
GreenAccent.light(), | ||
GreenAccent(), | ||
GreenAccent.darker(), | ||
GreenAccent.dark(), | ||
], | ||
); | ||
// coverage:ignore-end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:eo_color/swatches.dart'; | ||
|
||
import 'green.dart'; | ||
|
||
/// Material Design shades of green. | ||
/// | ||
/// See also | ||
/// - [green](https://api.flutter.dev/flutter/material/Colors/green-constant.html) | ||
class Greens extends SwatchBase { | ||
/// Ten shades of green; the greater the index, the darker the color. | ||
/// | ||
/// There are 10 valid indexes | ||
/// - 0, ultra light ≡ 50 | ||
/// - 1, very light ≡ 100 | ||
/// - 2, light ≡ 200 | ||
/// - 3, lighter ≡ 300 | ||
/// - 4, bit lighter ≡ 400 | ||
/// - **5, primary ≡ 500** | ||
/// - 6, bit darker ≡ 600 | ||
/// - 7, darker ≡ 700 | ||
/// - 8, dark ≡ 800 | ||
/// - 9, very dark ≡ 900 | ||
const Greens() | ||
// coverage:ignore-start | ||
: super( | ||
const [ | ||
Green.ultraLight(), | ||
Green.veryLight(), | ||
Green.light(), | ||
Green.lighter(), | ||
Green.bitLighter(), | ||
Green(), | ||
Green.bitDarker(), | ||
Green.darker(), | ||
Green.dark(), | ||
Green.veryDark(), | ||
], | ||
); | ||
// coverage:ignore-end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import 'package:eo_color/palettes.dart'; | ||
|
||
/// Material Design light green. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - ultraLight() ≡ 50 | ||
/// - veryLight() ≡ 100 | ||
/// - light() ≡ 200 | ||
/// - lighter() ≡ 300 | ||
/// - bitLighter() ≡ 400 | ||
/// - **() ≡ 500 primary** | ||
/// - bitDarker() ≡ 600 | ||
/// - darker() ≡ 700 | ||
/// - dark() ≡ 800 | ||
/// - veryDark() ≡ 900 | ||
/// | ||
/// See also | ||
/// - [light green](https://api.flutter.dev/flutter/material/Colors/lightGreen-constant.html) | ||
class LightGreen extends PaletteRGB { | ||
/// Primary shade #8BC34A ≡ [500]. | ||
const LightGreen() : super.opaque(0x8BC34A); | ||
|
||
/// Ultra light shade #F1F8E9 ≡ [50]. | ||
const LightGreen.ultraLight() : super.opaque(0xF1F8E9); | ||
|
||
/// Very light shade #DCEDC8 ≡ [100]. | ||
const LightGreen.veryLight() : super.opaque(0xDCEDC8); | ||
|
||
/// Light shade #C5E1A5 ≡ [200]. | ||
const LightGreen.light() : super.opaque(0xC5E1A5); | ||
|
||
/// Lighter shade #AED581 ≡ [300]. | ||
const LightGreen.lighter() : super.opaque(0xAED581); | ||
|
||
/// Bit lighter shade #9CCC65 ≡ [400]. | ||
const LightGreen.bitLighter() : super.opaque(0x9CCC65); | ||
|
||
/// Bit darker shade #7CB342 ≡ [600]. | ||
const LightGreen.bitDarker() : super.opaque(0x7CB342); | ||
|
||
/// Darker shade #689F38 ≡ [700]. | ||
const LightGreen.darker() : super.opaque(0x689F38); | ||
|
||
/// Dark shade #558B2F ≡ [800]. | ||
const LightGreen.dark() : super.opaque(0x558B2F); | ||
|
||
/// Very dark shade #33691E ≡ [900]. | ||
const LightGreen.veryDark() : super.opaque(0x33691E); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:eo_color/palettes.dart'; | ||
|
||
/// Material Design green accent. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - light() ≡ 100 | ||
/// - **() ≡ 200 primary** | ||
/// - darker() ≡ 400 | ||
/// - dark() ≡ 700 | ||
/// | ||
/// See also | ||
/// - [light green accent](https://api.flutter.dev/flutter/material/Colors/lightGreenAccent-constant.html) | ||
class LightGreenAccent extends PaletteRGB { | ||
/// Primary shade #B2FF59 ≡ [200]. | ||
const LightGreenAccent() : super.opaque(0xB2FF59); | ||
|
||
/// Light shade #CCFF90 ≡ [100]. | ||
const LightGreenAccent.light() : super.opaque(0xCCFF90); | ||
|
||
/// Darker shade #76FF03 ≡ [400]. | ||
const LightGreenAccent.darker() : super.opaque(0x76FF03); | ||
|
||
/// Dark shade #64DD17 ≡ [700]. | ||
const LightGreenAccent.dark() : super.opaque(0x64DD17); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:eo_color/swatches.dart'; | ||
|
||
import 'light_green_accent.dart'; | ||
|
||
/// Material Design shades of light green accent. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - light() ≡ 100 | ||
/// - **() ≡ 200 primary** | ||
/// - darker() ≡ 400 | ||
/// - dark() ≡ 700 | ||
/// | ||
/// See also | ||
/// - [light green accent](https://api.flutter.dev/flutter/material/Colors/lightGreenAccent-constant.html) | ||
class LightGreenAccents extends SwatchBase { | ||
/// Four shades of light green accent; the greater the index, the darker the color. | ||
/// | ||
/// There are 4 valid indexes | ||
/// - 0, light ≡ 100 | ||
/// - **1, primary** | ||
/// - 2, darker ≡ 400 | ||
/// - 3, dark ≡ 700 | ||
const LightGreenAccents() | ||
// coverage:ignore-start | ||
: super( | ||
const [ | ||
LightGreenAccent.light(), | ||
LightGreenAccent(), | ||
LightGreenAccent.darker(), | ||
LightGreenAccent.dark(), | ||
], | ||
); | ||
// coverage:ignore-end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:eo_color/swatches.dart'; | ||
|
||
import 'light_green.dart'; | ||
|
||
/// Material Design shades of light green. | ||
/// | ||
/// See also | ||
/// - [lightGreen](https://api.flutter.dev/flutter/material/Colors/lightGreen-constant.html) | ||
class LightGreens extends SwatchBase { | ||
/// Ten shades of light green; the greater the index, the darker the color. | ||
/// | ||
/// There are 10 valid indexes | ||
/// - 0, ultra light ≡ 50 | ||
/// - 1, very light ≡ 100 | ||
/// - 2, light ≡ 200 | ||
/// - 3, lighter ≡ 300 | ||
/// - 4, bit lighter ≡ 400 | ||
/// - **5, primary ≡ 500** | ||
/// - 6, bit darker ≡ 600 | ||
/// - 7, darker ≡ 700 | ||
/// - 8, dark ≡ 800 | ||
/// - 9, very dark ≡ 900 | ||
const LightGreens() | ||
// coverage:ignore-start | ||
: super( | ||
const [ | ||
LightGreen.ultraLight(), | ||
LightGreen.veryLight(), | ||
LightGreen.light(), | ||
LightGreen.lighter(), | ||
LightGreen.bitLighter(), | ||
LightGreen(), | ||
LightGreen.bitDarker(), | ||
LightGreen.darker(), | ||
LightGreen.dark(), | ||
LightGreen.veryDark(), | ||
], | ||
); | ||
// coverage:ignore-end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import 'package:eo_color/palettes.dart'; | ||
|
||
/// Material Design teal. | ||
/// | ||
/// Equivalence between constructor and shade index | ||
/// - ultraLight() ≡ 50 | ||
/// - veryLight() ≡ 100 | ||
/// - light() ≡ 200 | ||
/// - lighter() ≡ 300 | ||
/// - bitLighter() ≡ 400 | ||
/// - **() ≡ 500 primary** | ||
/// - bitDarker() ≡ 600 | ||
/// - darker() ≡ 700 | ||
/// - dark() ≡ 800 | ||
/// - veryDark() ≡ 900 | ||
/// | ||
/// See also | ||
/// - [teal](https://api.flutter.dev/flutter/material/Colors/teal-constant.html) | ||
class Teal extends PaletteRGB { | ||
/// Primary shade #009688 ≡ [500]. | ||
const Teal() : super.opaque(0x009688); | ||
|
||
/// Ultra light #E0F2F1 ≡ [50]. | ||
const Teal.ultraLight() : super.opaque(0xE0F2F1); | ||
|
||
/// Very light shade #B2DFDB ≡ [100]. | ||
const Teal.veryLight() : super.opaque(0xB2DFDB); | ||
|
||
/// Light shade #80CBC4 ≡ [200]. | ||
const Teal.light() : super.opaque(0x80CBC4); | ||
|
||
/// Lighter shade #4DB6AC ≡ [300]. | ||
const Teal.lighter() : super.opaque(0x4DB6AC); | ||
|
||
/// Bit lighter shade #26A69A ≡ [400]. | ||
const Teal.bitLighter() : super.opaque(0x26A69A); | ||
|
||
/// Bit darker shade #00897B ≡ [600]. | ||
const Teal.bitDarker() : super.opaque(0x00897B); | ||
|
||
/// Darker shade #00796B ≡ [700]. | ||
const Teal.darker() : super.opaque(0x00796B); | ||
|
||
/// Dark shade #00695C ≡ [800]. | ||
const Teal.dark() : super.opaque(0x00695C); | ||
|
||
/// Very dark shade #004D40 ≡ [900]. | ||
const Teal.veryDark() : super.opaque(0x004D40); | ||
} |
Oops, something went wrong.