Skip to content

gf color extend more color. #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 63 additions & 39 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@ packages:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
url: "https://pub.dev"
source: hosted
version: "2.11.0"
version: "2.12.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
characters:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.4.0"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
url: "https://pub.dev"
source: hosted
version: "1.1.1"
version: "1.1.2"
collection:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.19.1"
cupertino_icons:
dependency: "direct main"
description:
Expand All @@ -53,10 +53,10 @@ packages:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
url: "https://pub.dev"
source: hosted
version: "1.3.1"
version: "1.3.2"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -87,46 +87,62 @@ packages:
relative: true
source: path
version: "4.0.0"
js:
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
url: "https://pub.dev"
source: hosted
version: "10.0.8"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
name: leak_tracker_flutter_testing
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
url: "https://pub.dev"
source: hosted
version: "0.6.7"
version: "3.0.9"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
matcher:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.17"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.16.0"
path:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.9.1"
path_drawing:
dependency: transitive
description:
Expand Down Expand Up @@ -163,55 +179,55 @@ packages:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
version: "0.0.0"
source_span:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.12.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.4"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.4.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.2.2"
test_api:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.7.4"
url_launcher:
dependency: "direct main"
description:
Expand Down Expand Up @@ -284,6 +300,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
url: "https://pub.dev"
source: hosted
version: "14.3.1"
xml:
dependency: transitive
description:
Expand All @@ -293,5 +317,5 @@ packages:
source: hosted
version: "5.3.1"
sdks:
dart: ">=3.0.0-0 <4.0.0"
flutter: ">=2.10.0"
dart: ">=3.7.0-0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
62 changes: 62 additions & 0 deletions lib/colors/gf_color.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,78 @@
import 'package:flutter/material.dart';

class GFColors {
// Basic Theme Colors
static const Color PRIMARY = Color(0xff3880FF);
static const Color SECONDARY = Color(0xffAA66CC);
static const Color SUCCESS = Color(0xff10DC60);
static const Color INFO = Color(0xff33B5E5);
static const Color WARNING = Color(0xffFFBB33);
static const Color DANGER = Color(0xffF04141);

// Light and Dark Variants
static const Color LIGHT = Color(0xffE0E0E0);
static const Color DARK = Color(0xff222428);
static const Color WHITE = Color(0xffffffff);
static const Color BLACK = Color(0xff000000);

// Utility & Brand Colors
static const Color FOCUS = Color(0xff434054);
static const Color ALT = Color(0xff794c8a);
static const Color DISABLED = Color(0xffBDBDBD);
static const Color BACKGROUND = Color(0xffF4F5F8);
static const Color TRANSPARENT = Colors.transparent;

// Extended Color Palette
static const Color NEUTRAL = Color(0xff9E9E9E);
static const Color MUTED = Color(0xff757575);
static const Color BRAND = Color(0xff6200EE); // GF branding support

// MaterialColor Swatches for ThemeData.primarySwatch
static const MaterialColor PRIMARY_SWATCH = MaterialColor(
0xff3880FF,
<int, Color>{
50: Color(0xffe3f2fd),
100: Color(0xffbbdefb),
200: Color(0xff90caf9),
300: Color(0xff64b5f6),
400: Color(0xff42a5f5),
500: Color(0xff2196f3),
600: Color(0xff1e88e5),
700: Color(0xff1976d2),
800: Color(0xff1565c0),
900: Color(0xff0d47a1),
},
);

static const MaterialColor SUCCESS_SWATCH = MaterialColor(
0xff10DC60,
<int, Color>{
50: Color(0xffe6f7f0),
100: Color(0xffc0edd9),
200: Color(0xff99e2c2),
300: Color(0xff73d7aa),
400: Color(0xff4ccf93),
500: Color(0xff26c47b),
600: Color(0xff20a369),
700: Color(0xff1a8257),
800: Color(0xff146145),
900: Color(0xff0e4033),
},
);

static const MaterialColor DANGER_SWATCH = MaterialColor(
0xffF04141,
<int, Color>{
50: Color(0xfffdeaea),
100: Color(0xfff8bdbd),
200: Color(0xfff28f8f),
300: Color(0xffec6161),
400: Color(0xffe73333),
500: Color(0xffe10505),
600: Color(0xffb90404),
700: Color(0xff910303),
800: Color(0xff690202),
900: Color(0xff410101),
},
);
}
25 changes: 25 additions & 0 deletions lib/colors/gf_element_color.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';

class GFElementColors {
/// 🌊 Water Element: Soothing, intuitive, emotional
static const Color WATER_BLUE = Color(0xFF0288D1); // Ocean Blue
static const Color WATER_TURQUOISE = Color(0xFF00BCD4); // Turquoise
static const Color WATER_NAVY = Color(0xFF01579B); // Deep Sea
static const Color WATER_WHITE = Color(0xFFE1F5FE); // Sea Foam
static const Color WATER_TEAL = Color(0xFF00695C); // Teal Depth

/// 🔥 Fire Element: Passionate, dynamic, energizing
static const Color FIRE_RED = Color(0xFFD32F2F); // Blaze Red
static const Color FIRE_ORANGE = Color(0xFFFF5722); // Ember Orange
static const Color FIRE_YELLOW = Color(0xFFFFC107); // Spark Yellow
static const Color FIRE_MAGENTA = Color(0xFFD81B60); // Intense Magenta
static const Color FIRE_BLACK = Color(0xFF3E2723); // Charcoal Ash

/// 💨 Air Element: Free-flowing, intellectual, creative
static const Color AIR_SKY = Color(0xFF81D4FA); // Sky Blue
static const Color AIR_GREY = Color(0xFFCFD8DC); // Cloud Grey
static const Color AIR_WHITE = Color(0xFFFFFFFF); // Breeze White
static const Color AIR_MINT = Color(0xFFB2EBF2); // Fresh Mint
static const Color AIR_BEIGE = Color(0xFFFFF8E1); // Light Air

}
25 changes: 25 additions & 0 deletions lib/colors/gf_emotion_color.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';

class GFEmotionColors {
// Calm palette: Use for tranquil and soft interfaces (e.g., meditation, wellness apps)
static const Color CALM_BLUE = Color(0xFFB3E5FC); // Soft Blue
static const Color CALM_GREEN = Color(0xFFC8E6C9); // Pale Mint
static const Color CALM_PURPLE = Color(0xFFE1BEE7); // Light Lavender
static const Color CALM_GREY = Color(0xFFF5F5F5); // Mist Grey
static const Color CALM_WHITE = Color(0xFFFFFFFF); // Pure White

// Energetic palette: Use for action-oriented or youth-centric designs (e.g., fitness, games)
static const Color ENERGETIC_RED = Color(0xFFFF5252); // Bright Red
static const Color ENERGETIC_ORANGE = Color(0xFFFFA726); // Bold Orange
static const Color ENERGETIC_YELLOW = Color(0xFFFFEB3B); // Vivid Yellow
static const Color ENERGETIC_LIME = Color(0xFFCDDC39); // Lime
static const Color ENERGETIC_PINK = Color(0xFFF06292); // Punch Pink

// Serious palette: Use for professional, legal, medical, or banking interfaces
static const Color SERIOUS_NAVY = Color(0xFF283593); // Deep Navy
static const Color SERIOUS_BLACK = Color(0xFF212121); // Almost Black
static const Color SERIOUS_GREY = Color(0xFF757575); // Medium Grey
static const Color SERIOUS_TEAL = Color(0xFF00796B); // Conservative Teal
static const Color SERIOUS_MAROON = Color(0xFF6A1B9A); // Royal Maroon

}
26 changes: 26 additions & 0 deletions lib/colors/gf_food_color.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import 'package:flutter/material.dart';

class GFFoodColors {
/// ☕ Coffee Theme: Warm, earthy, comforting
static const Color COFFEE_BROWN = Color(0xFF4E342E); // Espresso
static const Color COFFEE_BEIGE = Color(0xFFD7CCC8); // Cappuccino Cream
static const Color COFFEE_CARAMEL = Color(0xFFBCAAA4); // Caramel
static const Color COFFEE_MOCHA = Color(0xFF6D4C41); // Mocha
static const Color COFFEE_DARK = Color(0xFF3E2723); // Dark Roast

/// 🍓 Berry Theme: Vibrant, fresh, fruity
static const Color BERRY_RED = Color(0xFFC2185B); // Raspberry
static const Color BERRY_PURPLE = Color(0xFF7B1FA2); // Blackberry
static const Color BERRY_PINK = Color(0xFFF06292); // Strawberry
static const Color BERRY_BLUE = Color(0xFF3949AB); // Blueberry
static const Color BERRY_LIGHT = Color(0xFFF8BBD0); // Yogurt Pink

/// 🍋 Citrus Theme: Zesty, bright, energetic
static const Color CITRUS_ORANGE = Color(0xFFFF9800); // Orange
static const Color CITRUS_YELLOW = Color(0xFFFFEB3B); // Lemon
static const Color CITRUS_LIME = Color(0xFFCDDC39); // Lime
static const Color CITRUS_GREEN = Color(0xFF8BC34A); // Citrus Leaf
static const Color CITRUS_PEACH = Color(0xFFFFCC80); // Peach

}

Loading