From f0c09fd41ee69483a8b2c0f1799c712286eb6ff0 Mon Sep 17 00:00:00 2001 From: zeta-tokens-bot Date: Wed, 31 Jul 2024 13:36:05 +0000 Subject: [PATCH] ci(automated commit): Update tokens $(date +%Y-%m-%d) --- lib/src/generated/dart/primitives.g.dart | 644 +++++++++++++++++++ lib/src/generated/dart/semantics.g.dart | 758 +++++++++++++++++++++++ 2 files changed, 1402 insertions(+) create mode 100644 lib/src/generated/dart/primitives.g.dart create mode 100644 lib/src/generated/dart/semantics.g.dart diff --git a/lib/src/generated/dart/primitives.g.dart b/lib/src/generated/dart/primitives.g.dart new file mode 100644 index 00000000..97c477a1 --- /dev/null +++ b/lib/src/generated/dart/primitives.g.dart @@ -0,0 +1,644 @@ +import 'package:flutter/material.dart'; +import 'package:zeta_flutter/zeta_flutter.dart'; + +// This file is automatically generated by the zeta repository +// DO NOT MODIFY + +// const zetaTokensVersion = 'TODO:' + +/// Interface used for zeta color primitives +abstract interface class ZetaPrimitives { + /// Pure +/// +/// {@macro zeta-colors-swatch} +ZetaPureColorSwatch get pure; +/// Cool +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get cool; +/// Warm +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get warm; +/// Blue +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get blue; +/// Green +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get green; +/// Red +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get red; +/// Orange +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get orange; +/// Purple +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get purple; +/// Yellow +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get yellow; +/// Teal +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get teal; +/// Pink +/// +/// {@macro zeta-colors-swatch} +ZetaColorSwatch get pink; +/// 0dp space +double get x0; +/// 4dp space +double get x1; +/// 8dp space +double get x2; +/// 12dp space +double get x3; +/// 16dp space +double get x4; +/// 20dp space +double get x5; +/// 24dp space +double get x6; +/// 28dp space +double get x7; +/// 32dp space +double get x8; +/// 36dp space +double get x9; +/// 40dp space +double get x10; +/// 44dp space +double get x11; +/// 48dp space +double get x12; +/// 64dp space +double get x13; +/// 80dp space +double get x14; +/// 96dp space +double get x15; +/// 4dp radius +Radius get s; +/// 8dp radius +Radius get m; +/// 16dp radius +Radius get l; +/// 24dp radius +Radius get xl; +/// 32dp radius +Radius get xl_2; +/// 128dp radius +Radius get xl_3; +/// 360dp radius +Radius get xl_4; +} + +/// Light primitives +final class ZetaLightPrimitive implements ZetaPrimitives { +/// Pure +/// +/// {@macro zeta-colors-swatch} +@override +ZetaPureColorSwatch pure = const ZetaPureColorSwatch( +swatch: { +0: Color(0xFFffffff), +500: Color(0xFF151519), +1000: Color(0xFF151519), +}, +primary: 0xFF151519, +); +/// Cool +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch cool = const ZetaColorSwatch( +swatch: { +10: Color(0xFFf8fbff), +20: Color(0xFFf3f6fa), +30: Color(0xFFe0e3e9), +40: Color(0xFFced2db), +50: Color(0xFF8d95a3), +60: Color(0xFF7a8190), +70: Color(0xFF545963), +80: Color(0xFF2c2f36), +90: Color(0xFF1d1e23), +100: Color(0xFF0c0d0e), +}, +primary: 0xFF7a8190, +); +/// Warm +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch warm = const ZetaColorSwatch( +swatch: { +10: Color(0xFFfafafa), +20: Color(0xFFf6f6f6), +30: Color(0xFFececec), +40: Color(0xFFdedede), +50: Color(0xFFb9b9b9), +60: Color(0xFF858585), +70: Color(0xFF585858), +80: Color(0xFF313131), +90: Color(0xFF1d1e23), +100: Color(0xFF151519), +}, +primary: 0xFF858585, +); +/// Blue +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch blue = const ZetaColorSwatch( +swatch: { +10: Color(0xFFf1f8ff), +20: Color(0xFFe2f1ff), +30: Color(0xFFb7dbff), +40: Color(0xFF7ebeff), +50: Color(0xFF599fe5), +60: Color(0xFF0073e6), +70: Color(0xFF0061c2), +80: Color(0xFF004d99), +90: Color(0xFF002c58), +100: Color(0xFF101b25), +}, +primary: 0xFF0073e6, +); +/// Green +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch green = const ZetaColorSwatch( +swatch: { +10: Color(0xFFecfff7), +20: Color(0xFFd8ffef), +30: Color(0xFFbeefdb), +40: Color(0xFF84dab6), +50: Color(0xFF67b796), +60: Color(0xFF00864f), +70: Color(0xFF006d3f), +80: Color(0xFF005f38), +90: Color(0xFF00331e), +100: Color(0xFF081711), +}, +primary: 0xFF00864f, +); +/// Red +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch red = const ZetaColorSwatch( +swatch: { +10: Color(0xFFfff0f1), +20: Color(0xFFffe1e4), +30: Color(0xFFffb3bb), +40: Color(0xFFf98c97), +50: Color(0xFFf36170), +60: Color(0xFFd70015), +70: Color(0xFFb50012), +80: Color(0xFF8f000e), +90: Color(0xFF520008), +100: Color(0xFF220f11), +}, +primary: 0xFFd70015, +); +/// Orange +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch orange = const ZetaColorSwatch( +swatch: { +10: Color(0xFFfef2e2), +20: Color(0xFFffe7c6), +30: Color(0xFFffd292), +40: Color(0xFFffb348), +50: Color(0xFFf5a230), +60: Color(0xFFae6500), +70: Color(0xFF965802), +80: Color(0xFF764502), +90: Color(0xFF402600), +100: Color(0xFF1e1100), +}, +primary: 0xFFae6500, +); +/// Purple +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch purple = const ZetaColorSwatch( +swatch: { +10: Color(0xFFf7f0ff), +20: Color(0xFFefe1ff), +30: Color(0xFFdcc1fb), +40: Color(0xFFcea4ff), +50: Color(0xFF9b71df), +60: Color(0xFF7e0cff), +70: Color(0xFF6400d6), +80: Color(0xFF43008f), +90: Color(0xFF260052), +100: Color(0xFF180f22), +}, +primary: 0xFF7e0cff, +); +/// Yellow +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch yellow = const ZetaColorSwatch( +swatch: { +10: Color(0xFFfff7d4), +20: Color(0xFFffea89), +30: Color(0xFFf3d961), +40: Color(0xFFdbb91c), +50: Color(0xFFc2a728), +60: Color(0xFF8d7400), +70: Color(0xFF766200), +80: Color(0xFF564908), +90: Color(0xFF352b00), +100: Color(0xFF181400), +}, +primary: 0xFF8d7400, +); +/// Teal +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch teal = const ZetaColorSwatch( +swatch: { +10: Color(0xFFecffff), +20: Color(0xFFd9ffff), +30: Color(0xFFbcfbfb), +40: Color(0xFF91e1e1), +50: Color(0xFF65c4c4), +60: Color(0xFF1a8080), +70: Color(0xFF017474), +80: Color(0xFF005b5b), +90: Color(0xFF003535), +100: Color(0xFF0a1616), +}, +primary: 0xFF1a8080, +); +/// Pink +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch pink = const ZetaColorSwatch( +swatch: { +10: Color(0xFFfff7fc), +20: Color(0xFFffe3f5), +30: Color(0xFFffbee7), +40: Color(0xFFff94d8), +50: Color(0xFFee78c3), +60: Color(0xFFd30589), +70: Color(0xFFab006d), +80: Color(0xFF840054), +90: Color(0xFF640040), +100: Color(0xFF2e001e), +}, +primary: 0xFFd30589, +); +/// 0dp space +@override +double get x0 => 0; +/// 4dp space +@override +double get x1 => 4; +/// 8dp space +@override +double get x2 => 8; +/// 12dp space +@override +double get x3 => 12; +/// 16dp space +@override +double get x4 => 16; +/// 20dp space +@override +double get x5 => 20; +/// 24dp space +@override +double get x6 => 24; +/// 28dp space +@override +double get x7 => 28; +/// 32dp space +@override +double get x8 => 32; +/// 36dp space +@override +double get x9 => 36; +/// 40dp space +@override +double get x10 => 40; +/// 44dp space +@override +double get x11 => 44; +/// 48dp space +@override +double get x12 => 48; +/// 64dp space +@override +double get x13 => 64; +/// 80dp space +@override +double get x14 => 80; +/// 96dp space +@override +double get x15 => 96; +@override +Radius get s => const Radius.circular(4); +@override +Radius get m => const Radius.circular(8); +@override +Radius get l => const Radius.circular(16); +@override +Radius get xl => const Radius.circular(24); +@override +Radius get xl_2 => const Radius.circular(32); +@override +Radius get xl_3 => const Radius.circular(128); +@override +Radius get xl_4 => const Radius.circular(360); +} +/// Dark primitives +final class ZetaDarkPrimitive implements ZetaPrimitives { +/// Pure +/// +/// {@macro zeta-colors-swatch} +@override +ZetaPureColorSwatch pure = const ZetaPureColorSwatch( +swatch: { +0: Color(0xFF151519), +500: Color(0xFF1d1e23), +1000: Color(0xFFffffff), +}, +primary: 0xFF1d1e23, +); +/// Cool +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch cool = const ZetaColorSwatch( +swatch: { +10: Color(0xFF0c0d0e), +20: Color(0xFF1d1e23), +30: Color(0xFF2c2f36), +40: Color(0xFF545963), +50: Color(0xFF7a8190), +60: Color(0xFF8d95a3), +70: Color(0xFFbbc1cb), +80: Color(0xFFe0e3e9), +90: Color(0xFFf3f6fa), +100: Color(0xFFf8fbff), +}, +primary: 0xFF8d95a3, +); +/// Warm +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch warm = const ZetaColorSwatch( +swatch: { +10: Color(0xFF151519), +20: Color(0xFF1d1e23), +30: Color(0xFF313131), +40: Color(0xFF585858), +50: Color(0xFF858585), +60: Color(0xFFb9b9b9), +70: Color(0xFFdedede), +80: Color(0xFFececec), +90: Color(0xFFf6f6f6), +100: Color(0xFFfafafa), +}, +primary: 0xFFb9b9b9, +); +/// Blue +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch blue = const ZetaColorSwatch( +swatch: { +10: Color(0xFF101b25), +20: Color(0xFF002c58), +30: Color(0xFF004d99), +40: Color(0xFF0061c2), +50: Color(0xFF0073e6), +60: Color(0xFF599fe5), +70: Color(0xFF7ebeff), +80: Color(0xFFb7dbff), +90: Color(0xFFe2f1ff), +100: Color(0xFFf1f8ff), +}, +primary: 0xFF599fe5, +); +/// Green +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch green = const ZetaColorSwatch( +swatch: { +10: Color(0xFF081711), +20: Color(0xFF00331e), +30: Color(0xFF005f38), +40: Color(0xFF006d3f), +50: Color(0xFF00864f), +60: Color(0xFF67b796), +70: Color(0xFF84dab6), +80: Color(0xFFbeefdb), +90: Color(0xFFd8ffef), +100: Color(0xFFecfff7), +}, +primary: 0xFF67b796, +); +/// Red +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch red = const ZetaColorSwatch( +swatch: { +10: Color(0xFF220f11), +20: Color(0xFF520008), +30: Color(0xFF8f000e), +40: Color(0xFFb50012), +50: Color(0xFFd70015), +60: Color(0xFFf36170), +70: Color(0xFFf98c97), +80: Color(0xFFffb3bb), +90: Color(0xFFffe1e4), +100: Color(0xFFfff0f1), +}, +primary: 0xFFf36170, +); +/// Orange +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch orange = const ZetaColorSwatch( +swatch: { +10: Color(0xFF1e1100), +20: Color(0xFF402600), +30: Color(0xFF764502), +40: Color(0xFF965802), +50: Color(0xFFae6500), +60: Color(0xFFd78d26), +70: Color(0xFFffb348), +80: Color(0xFFffd292), +90: Color(0xFFffe7c6), +100: Color(0xFFfef2e2), +}, +primary: 0xFFd78d26, +); +/// Purple +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch purple = const ZetaColorSwatch( +swatch: { +10: Color(0xFF180f22), +20: Color(0xFF260052), +30: Color(0xFF43008f), +40: Color(0xFF6400d6), +50: Color(0xFF7e0cff), +60: Color(0xFF9b71df), +70: Color(0xFFcea4ff), +80: Color(0xFFdcc1fb), +90: Color(0xFFefe1ff), +100: Color(0xFFf7f0ff), +}, +primary: 0xFF9b71df, +); +/// Yellow +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch yellow = const ZetaColorSwatch( +swatch: { +10: Color(0xFF181400), +20: Color(0xFF352b00), +30: Color(0xFF564908), +40: Color(0xFF766200), +50: Color(0xFF8d7400), +60: Color(0xFFc2a728), +70: Color(0xFFdbb91c), +80: Color(0xFFf3d961), +90: Color(0xFFffea89), +100: Color(0xFFfff7d4), +}, +primary: 0xFFc2a728, +); +/// Teal +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch teal = const ZetaColorSwatch( +swatch: { +10: Color(0xFF0a1616), +20: Color(0xFF003535), +30: Color(0xFF005b5b), +40: Color(0xFF017474), +50: Color(0xFF1a8080), +60: Color(0xFF65c4c4), +70: Color(0xFF91e1e1), +80: Color(0xFFbcfbfb), +90: Color(0xFFd9ffff), +100: Color(0xFFecffff), +}, +primary: 0xFF65c4c4, +); +/// Pink +/// +/// {@macro zeta-colors-swatch} +@override +ZetaColorSwatch pink = const ZetaColorSwatch( +swatch: { +10: Color(0xFF2e001e), +20: Color(0xFF640040), +30: Color(0xFF840054), +40: Color(0xFFab006d), +50: Color(0xFFd30589), +60: Color(0xFFee78c3), +70: Color(0xFFff94d8), +80: Color(0xFFffbee7), +90: Color(0xFFffe3f5), +100: Color(0xFFfff7fc), +}, +primary: 0xFFee78c3, +); +/// 0dp space +@override +double get x0 => 0; +/// 4dp space +@override +double get x1 => 4; +/// 8dp space +@override +double get x2 => 8; +/// 12dp space +@override +double get x3 => 12; +/// 16dp space +@override +double get x4 => 16; +/// 20dp space +@override +double get x5 => 20; +/// 24dp space +@override +double get x6 => 24; +/// 28dp space +@override +double get x7 => 28; +/// 32dp space +@override +double get x8 => 32; +/// 36dp space +@override +double get x9 => 36; +/// 40dp space +@override +double get x10 => 40; +/// 44dp space +@override +double get x11 => 44; +/// 48dp space +@override +double get x12 => 48; +/// 64dp space +@override +double get x13 => 64; +/// 80dp space +@override +double get x14 => 80; +/// 96dp space +@override +double get x15 => 96; +@override +Radius get s => const Radius.circular(4); +@override +Radius get m => const Radius.circular(8); +@override +Radius get l => const Radius.circular(16); +@override +Radius get xl => const Radius.circular(24); +@override +Radius get xl_2 => const Radius.circular(32); +@override +Radius get xl_3 => const Radius.circular(128); +@override +Radius get xl_4 => const Radius.circular(360); +} + + + +/// All primitives +Map allPrimitives = { + 'light': ZetaLightPrimitive, +'dark': ZetaDarkPrimitive +}; \ No newline at end of file diff --git a/lib/src/generated/dart/semantics.g.dart b/lib/src/generated/dart/semantics.g.dart new file mode 100644 index 00000000..b952d982 --- /dev/null +++ b/lib/src/generated/dart/semantics.g.dart @@ -0,0 +1,758 @@ +import 'package:flutter/material.dart'; +import 'primitives.g.dart'; + +// This file is automatically generated by the zeta repository +// DO NOT MODIFY + +/// Semantic tokens for colors. +abstract interface class ZetaColorSemantics { + /// Main Default color +Color get mainDefault; +/// Main Subtle color +Color get mainSubtle; +/// Main Light color +Color get mainLight; +/// Main Inverse color +Color get mainInverse; +/// Main Disabled color +Color get mainDisabled; +/// Main Primary color +Color get mainPrimary; +/// Main Secondary color +Color get mainSecondary; +/// Main Positive color +Color get mainPositive; +/// Main Warning color +Color get mainWarning; +/// Main Negative color +Color get mainNegative; +/// Main Info color +Color get mainInfo; +/// Border Default color +Color get borderDefault; +/// Border Subtle color +Color get borderSubtle; +/// Border Hover color +Color get borderHover; +/// Border Selected color +Color get borderSelected; +/// Border Disabled color +Color get borderDisabled; +/// Border Pure color +Color get borderPure; +/// Border Primary Main color +Color get borderPrimaryMain; +/// Border Primary color +Color get borderPrimary; +/// Border Secondary color +Color get borderSecondary; +/// Border Positive color +Color get borderPositive; +/// Border Warning color +Color get borderWarning; +/// Border Negative color +Color get borderNegative; +/// Border Info color +Color get borderInfo; +/// Surface Default color +Color get surfaceDefault; +/// Surface Default Inverse color +Color get surfaceDefaultInverse; +/// Surface Hover color +Color get surfaceHover; +/// Surface Selected color +Color get surfaceSelected; +/// Surface Selected Hover color +Color get surfaceSelectedHover; +/// Surface Disabled color +Color get surfaceDisabled; +/// Surface Cool color +Color get surfaceCool; +/// Surface Warm color +Color get surfaceWarm; +/// Surface Primary color +Color get surfacePrimary; +/// Surface Primary Subtle color +Color get surfacePrimarySubtle; +/// Surface Secondary color +Color get surfaceSecondary; +/// Surface Avatar Blue color +Color get surfaceAvatarBlue; +/// Surface Avatar Green color +Color get surfaceAvatarGreen; +/// Surface Avatar Orange color +Color get surfaceAvatarOrange; +/// Surface Avatar Pink color +Color get surfaceAvatarPink; +/// Surface Avatar Purple color +Color get surfaceAvatarPurple; +/// Surface Avatar Teal color +Color get surfaceAvatarTeal; +/// Surface Avatar Yellow color +Color get surfaceAvatarYellow; +/// Surface Secondary Subtle color +Color get surfaceSecondarySubtle; +/// Surface Positive color +Color get surfacePositive; +/// Surface Positive Subtle color +Color get surfacePositiveSubtle; +/// Surface Warning color +Color get surfaceWarning; +/// Surface Warning Subtle color +Color get surfaceWarningSubtle; +/// Surface Negative color +Color get surfaceNegative; +/// Surface Negative Subtle color +Color get surfaceNegativeSubtle; +/// Surface Info color +Color get surfaceInfo; +/// Surface Info Subtle color +Color get surfaceInfoSubtle; +/// State Disabled Disabled color +Color get stateDisabledDisabled; +/// State Default Enabled color +Color get stateDefaultEnabled; +/// State Default Hover color +Color get stateDefaultHover; +/// State Default Selected color +Color get stateDefaultSelected; +/// State Default Focus color +Color get stateDefaultFocus; +/// State Primary Enabled color +Color get statePrimaryEnabled; +/// State Primary Hover color +Color get statePrimaryHover; +/// State Primary Selected color +Color get statePrimarySelected; +/// State Primary Focus color +Color get statePrimaryFocus; +/// State Secondary Enabled color +Color get stateSecondaryEnabled; +/// State Secondary Hover color +Color get stateSecondaryHover; +/// State Secondary Selected color +Color get stateSecondarySelected; +/// State Secondary Focus color +Color get stateSecondaryFocus; +/// State Positive Enabled color +Color get statePositiveEnabled; +/// State Positive Hover color +Color get statePositiveHover; +/// State Positive Selected color +Color get statePositiveSelected; +/// State Positive Focus color +Color get statePositiveFocus; +/// State Negative Enabled color +Color get stateNegativeEnabled; +/// State Negative Hover color +Color get stateNegativeHover; +/// State Negative Selected color +Color get stateNegativeSelected; +/// State Negative Focus color +Color get stateNegativeFocus; +/// State Info Enabled color +Color get stateInfoEnabled; +/// State Info Hover color +Color get stateInfoHover; +/// State Info Selected color +Color get stateInfoSelected; +/// State Info Focus color +Color get stateInfoFocus; +/// State Inverse Enabled color +Color get stateInverseEnabled; +/// State Inverse Hover color +Color get stateInverseHover; +/// State Inverse Selected color +Color get stateInverseSelected; +/// State Inverse Focus color +Color get stateInverseFocus; +} + +/// Semantic tokens for Size. +abstract interface class ZetaSpacingSemantics { + /// None space +double get none; +/// Minimum space +double get minimum; +/// Small space +double get small; +/// Medium space +double get medium; +/// Large space +double get large; +/// Xl space +double get xl; +/// Xl_2 space +double get xl_2; +/// Xl_3 space +double get xl_3; +/// Xl_4 space +double get xl_4; +/// Xl_5 space +double get xl_5; +/// Xl_6 space +double get xl_6; +/// Xl_7 space +double get xl_7; +/// Xl_8 space +double get xl_8; +/// Xl_9 space +double get xl_9; +/// Xl_10 space +double get xl_10; +/// Xl_11 space +double get xl_11; +} + +/// Semantic tokens for Radii. +abstract interface class ZetaRadiiSemantics { + /// None radius +BorderRadius get none; +/// Minimal radius +BorderRadius get minimal; +/// Rounded radius +BorderRadius get rounded; +/// Large radius +BorderRadius get large; +/// Xl radius +BorderRadius get xl; +/// Full radius +BorderRadius get full; +} + +/// The semantic colors for AA +final class ZetaColorAA implements ZetaColorSemantics{ +/// Constructor for ZetaColorAA +const ZetaColorAA({required this.primitives}); +/// The primitives for this sizes +final ZetaPrimitives primitives; + +@override +Color get mainDefault => primitives.cool.shade90; +@override +Color get mainSubtle => primitives.cool.shade70; +@override +Color get mainLight => primitives.cool.shade30; +@override +Color get mainInverse => primitives.cool.shade20; +@override +Color get mainDisabled => primitives.cool.shade50; +@override +Color get mainPrimary => primitives.blue.shade60; +@override +Color get mainSecondary => primitives.yellow.shade60; +@override +Color get mainPositive => primitives.green.shade60; +@override +Color get mainWarning => primitives.orange.shade60; +@override +Color get mainNegative => primitives.red.shade60; +@override +Color get mainInfo => primitives.purple.shade60; +@override +Color get borderDefault => primitives.cool.shade40; +@override +Color get borderSubtle => primitives.cool.shade30; +@override +Color get borderHover => primitives.cool.shade90; +@override +Color get borderSelected => primitives.cool.shade90; +@override +Color get borderDisabled => primitives.cool.shade20; +@override +Color get borderPure => primitives.pure.shade0; +@override +Color get borderPrimaryMain => primitives.blue.shade60; +@override +Color get borderPrimary => primitives.blue.shade50; +@override +Color get borderSecondary => primitives.yellow.shade50; +@override +Color get borderPositive => primitives.green.shade50; +@override +Color get borderWarning => primitives.orange.shade50; +@override +Color get borderNegative => primitives.red.shade50; +@override +Color get borderInfo => primitives.purple.shade50; +@override +Color get surfaceDefault => primitives.pure.shade0; +@override +Color get surfaceDefaultInverse => primitives.warm.shade100; +@override +Color get surfaceHover => primitives.cool.shade20; +@override +Color get surfaceSelected => primitives.blue.shade10; +@override +Color get surfaceSelectedHover => primitives.blue.shade20; +@override +Color get surfaceDisabled => primitives.cool.shade30; +@override +Color get surfaceCool => primitives.cool.shade10; +@override +Color get surfaceWarm => primitives.warm.shade10; +@override +Color get surfacePrimary => primitives.blue.shade60; +@override +Color get surfacePrimarySubtle => primitives.blue.shade10; +@override +Color get surfaceSecondary => primitives.yellow.shade60; +@override +Color get surfaceAvatarBlue => primitives.blue.shade80; +@override +Color get surfaceAvatarGreen => primitives.green.shade60; +@override +Color get surfaceAvatarOrange => primitives.orange.shade50; +@override +Color get surfaceAvatarPink => primitives.pink.shade80; +@override +Color get surfaceAvatarPurple => primitives.purple.shade80; +@override +Color get surfaceAvatarTeal => primitives.teal.shade80; +@override +Color get surfaceAvatarYellow => primitives.yellow.shade50; +@override +Color get surfaceSecondarySubtle => primitives.yellow.shade10; +@override +Color get surfacePositive => primitives.green.shade60; +@override +Color get surfacePositiveSubtle => primitives.green.shade10; +@override +Color get surfaceWarning => primitives.orange.shade60; +@override +Color get surfaceWarningSubtle => primitives.orange.shade10; +@override +Color get surfaceNegative => primitives.red.shade60; +@override +Color get surfaceNegativeSubtle => primitives.red.shade10; +@override +Color get surfaceInfo => primitives.purple.shade60; +@override +Color get surfaceInfoSubtle => primitives.purple.shade10; +@override +Color get stateDisabledDisabled => primitives.cool.shade30; +@override +Color get stateDefaultEnabled => primitives.pure.shade0; +@override +Color get stateDefaultHover => primitives.cool.shade20; +@override +Color get stateDefaultSelected => primitives.blue.shade10; +@override +Color get stateDefaultFocus => primitives.pure.shade0; +@override +Color get statePrimaryEnabled => primitives.blue.shade60; +@override +Color get statePrimaryHover => primitives.blue.shade50; +@override +Color get statePrimarySelected => primitives.blue.shade70; +@override +Color get statePrimaryFocus => primitives.blue.shade60; +@override +Color get stateSecondaryEnabled => primitives.yellow.shade40; +@override +Color get stateSecondaryHover => primitives.yellow.shade30; +@override +Color get stateSecondarySelected => primitives.yellow.shade50; +@override +Color get stateSecondaryFocus => primitives.yellow.shade40; +@override +Color get statePositiveEnabled => primitives.green.shade60; +@override +Color get statePositiveHover => primitives.green.shade50; +@override +Color get statePositiveSelected => primitives.green.shade70; +@override +Color get statePositiveFocus => primitives.green.shade60; +@override +Color get stateNegativeEnabled => primitives.red.shade60; +@override +Color get stateNegativeHover => primitives.red.shade50; +@override +Color get stateNegativeSelected => primitives.red.shade70; +@override +Color get stateNegativeFocus => primitives.red.shade60; +@override +Color get stateInfoEnabled => primitives.purple.shade60; +@override +Color get stateInfoHover => primitives.purple.shade50; +@override +Color get stateInfoSelected => primitives.purple.shade70; +@override +Color get stateInfoFocus => primitives.purple.shade60; +@override +Color get stateInverseEnabled => primitives.cool.shade100; +@override +Color get stateInverseHover => primitives.cool.shade90; +@override +Color get stateInverseSelected => primitives.cool.shade100; +@override +Color get stateInverseFocus => primitives.cool.shade100; +} +/// The semantic colors for AAA +final class ZetaColorAAA implements ZetaColorSemantics{ +/// Constructor for ZetaColorAAA +const ZetaColorAAA({required this.primitives}); +/// The primitives for this sizes +final ZetaPrimitives primitives; + +@override +Color get mainDefault => primitives.cool.shade100; +@override +Color get mainSubtle => primitives.cool.shade90; +@override +Color get mainLight => primitives.pure.shade0; +@override +Color get mainInverse => primitives.pure.shade0; +@override +Color get mainDisabled => primitives.cool.shade60; +@override +Color get mainPrimary => primitives.blue.shade80; +@override +Color get mainSecondary => primitives.yellow.shade80; +@override +Color get mainPositive => primitives.green.shade80; +@override +Color get mainWarning => primitives.orange.shade80; +@override +Color get mainNegative => primitives.red.shade80; +@override +Color get mainInfo => primitives.purple.shade80; +@override +Color get borderDefault => primitives.cool.shade100; +@override +Color get borderSubtle => primitives.cool.shade80; +@override +Color get borderHover => primitives.cool.shade90; +@override +Color get borderSelected => primitives.cool.shade90; +@override +Color get borderDisabled => primitives.cool.shade20; +@override +Color get borderPure => primitives.pure.shade0; +@override +Color get borderPrimaryMain => primitives.blue.shade80; +@override +Color get borderPrimary => primitives.blue.shade70; +@override +Color get borderSecondary => primitives.yellow.shade70; +@override +Color get borderPositive => primitives.green.shade70; +@override +Color get borderWarning => primitives.orange.shade70; +@override +Color get borderNegative => primitives.red.shade70; +@override +Color get borderInfo => primitives.purple.shade70; +@override +Color get surfaceDefault => primitives.pure.shade0; +@override +Color get surfaceDefaultInverse => primitives.pure.shade1000; +@override +Color get surfaceHover => primitives.cool.shade20; +@override +Color get surfaceSelected => primitives.blue.shade10; +@override +Color get surfaceSelectedHover => primitives.blue.shade20; +@override +Color get surfaceDisabled => primitives.cool.shade30; +@override +Color get surfaceCool => primitives.cool.shade10; +@override +Color get surfaceWarm => primitives.warm.shade10; +@override +Color get surfacePrimary => primitives.blue.shade80; +@override +Color get surfacePrimarySubtle => primitives.blue.shade10; +@override +Color get surfaceSecondary => primitives.yellow.shade80; +@override +Color get surfaceAvatarBlue => primitives.blue.shade80; +@override +Color get surfaceAvatarGreen => primitives.green.shade60; +@override +Color get surfaceAvatarOrange => primitives.orange.shade50; +@override +Color get surfaceAvatarPink => primitives.pink.shade80; +@override +Color get surfaceAvatarPurple => primitives.purple.shade80; +@override +Color get surfaceAvatarTeal => primitives.teal.shade80; +@override +Color get surfaceAvatarYellow => primitives.yellow.shade50; +@override +Color get surfaceSecondarySubtle => primitives.yellow.shade10; +@override +Color get surfacePositive => primitives.green.shade80; +@override +Color get surfacePositiveSubtle => primitives.green.shade10; +@override +Color get surfaceWarning => primitives.orange.shade80; +@override +Color get surfaceWarningSubtle => primitives.orange.shade10; +@override +Color get surfaceNegative => primitives.red.shade80; +@override +Color get surfaceNegativeSubtle => primitives.red.shade10; +@override +Color get surfaceInfo => primitives.purple.shade80; +@override +Color get surfaceInfoSubtle => primitives.purple.shade10; +@override +Color get stateDisabledDisabled => primitives.cool.shade30; +@override +Color get stateDefaultEnabled => primitives.pure.shade0; +@override +Color get stateDefaultHover => primitives.cool.shade20; +@override +Color get stateDefaultSelected => primitives.blue.shade10; +@override +Color get stateDefaultFocus => primitives.pure.shade0; +@override +Color get statePrimaryEnabled => primitives.blue.shade80; +@override +Color get statePrimaryHover => primitives.blue.shade70; +@override +Color get statePrimarySelected => primitives.blue.shade90; +@override +Color get statePrimaryFocus => primitives.blue.shade80; +@override +Color get stateSecondaryEnabled => primitives.yellow.shade80; +@override +Color get stateSecondaryHover => primitives.yellow.shade70; +@override +Color get stateSecondarySelected => primitives.yellow.shade90; +@override +Color get stateSecondaryFocus => primitives.yellow.shade80; +@override +Color get statePositiveEnabled => primitives.green.shade80; +@override +Color get statePositiveHover => primitives.green.shade70; +@override +Color get statePositiveSelected => primitives.green.shade90; +@override +Color get statePositiveFocus => primitives.green.shade80; +@override +Color get stateNegativeEnabled => primitives.red.shade80; +@override +Color get stateNegativeHover => primitives.red.shade70; +@override +Color get stateNegativeSelected => primitives.red.shade90; +@override +Color get stateNegativeFocus => primitives.red.shade80; +@override +Color get stateInfoEnabled => primitives.purple.shade80; +@override +Color get stateInfoHover => primitives.purple.shade70; +@override +Color get stateInfoSelected => primitives.purple.shade90; +@override +Color get stateInfoFocus => primitives.purple.shade80; +@override +Color get stateInverseEnabled => primitives.pure.shade1000; +@override +Color get stateInverseHover => primitives.cool.shade90; +@override +Color get stateInverseSelected => primitives.pure.shade1000; +@override +Color get stateInverseFocus => primitives.pure.shade1000; +} + +/// The semantic sizes for AA +final class ZetaSpacingAA implements ZetaSpacingSemantics{ +/// Constructor for ZetaSpacingAA +const ZetaSpacingAA({required this.primitives}); +/// The primitives for this sizes +final ZetaPrimitives primitives; + +/// None space +@override +double get none => primitives.x0; +/// Minimum space +@override +double get minimum => primitives.x1; +/// Small space +@override +double get small => primitives.x2; +/// Medium space +@override +double get medium => primitives.x3; +/// Large space +@override +double get large => primitives.x4; +/// Xl space +@override +double get xl => primitives.x5; +/// Xl_2 space +@override +double get xl_2 => primitives.x6; +/// Xl_3 space +@override +double get xl_3 => primitives.x7; +/// Xl_4 space +@override +double get xl_4 => primitives.x8; +/// Xl_5 space +@override +double get xl_5 => primitives.x9; +/// Xl_6 space +@override +double get xl_6 => primitives.x10; +/// Xl_7 space +@override +double get xl_7 => primitives.x11; +/// Xl_8 space +@override +double get xl_8 => primitives.x12; +/// Xl_9 space +@override +double get xl_9 => primitives.x13; +/// Xl_10 space +@override +double get xl_10 => primitives.x14; +/// Xl_11 space +@override +double get xl_11 => primitives.x15; +} +/// The semantic sizes for AAA +final class ZetaSpacingAAA implements ZetaSpacingSemantics{ +/// Constructor for ZetaSpacingAAA +const ZetaSpacingAAA({required this.primitives}); +/// The primitives for this sizes +final ZetaPrimitives primitives; + +/// None space +@override +double get none => primitives.x0; +/// Minimum space +@override +double get minimum => primitives.x1; +/// Small space +@override +double get small => primitives.x2; +/// Medium space +@override +double get medium => primitives.x3; +/// Large space +@override +double get large => primitives.x4; +/// Xl space +@override +double get xl => primitives.x5; +/// Xl_2 space +@override +double get xl_2 => primitives.x6; +/// Xl_3 space +@override +double get xl_3 => primitives.x7; +/// Xl_4 space +@override +double get xl_4 => primitives.x8; +/// Xl_5 space +@override +double get xl_5 => primitives.x9; +/// Xl_6 space +@override +double get xl_6 => primitives.x10; +/// Xl_7 space +@override +double get xl_7 => primitives.x11; +/// Xl_8 space +@override +double get xl_8 => primitives.x12; +/// Xl_9 space +@override +double get xl_9 => primitives.x13; +/// Xl_10 space +@override +double get xl_10 => primitives.x14; +/// Xl_11 space +@override +double get xl_11 => primitives.x15; +} + +/// The semantic radii for AA +final class ZetaRadiiAA implements ZetaRadiiSemantics{ +/// Constructor for ZetaRadiiAA +const ZetaRadiiAA({required this.primitives}); +/// The primitives for this radii +final ZetaPrimitives primitives; + +@override +BorderRadius get none=> BorderRadius.circular(0); +@override +BorderRadius get minimal=> BorderRadius.all(primitives.s); +@override +BorderRadius get rounded=> BorderRadius.all(primitives.m); +@override +BorderRadius get large=> BorderRadius.all(primitives.l); +@override +BorderRadius get xl=> BorderRadius.all(primitives.xl); +@override +BorderRadius get full=> BorderRadius.all(primitives.xl_4);} +/// The semantic radii for AAA +final class ZetaRadiiAAA implements ZetaRadiiSemantics{ +/// Constructor for ZetaRadiiAAA +const ZetaRadiiAAA({required this.primitives}); +/// The primitives for this radii +final ZetaPrimitives primitives; + +@override +BorderRadius get none=> BorderRadius.circular(0); +@override +BorderRadius get minimal=> BorderRadius.circular(0); +@override +BorderRadius get rounded=> BorderRadius.circular(0); +@override +BorderRadius get large=> BorderRadius.circular(0); +@override +BorderRadius get xl=> BorderRadius.circular(0); +@override +BorderRadius get full=> BorderRadius.circular(0);} + +/// The semantic tokens for Zeta +abstract interface class ZetaSemantics { + /// Semantic colors + ZetaColorSemantics get colors; + + /// Semantic sizes + ZetaSpacingSemantics get size; + + /// Semantic Radii + ZetaRadiiSemantics get radii; + + /// Primitives for this semantics + ZetaPrimitives get primitives; +} + +/// The semantic tokens for AA + class ZetaSemanticsAA implements ZetaSemantics{ +/// Constructor for [ZetaSemanticsAA] +ZetaSemanticsAA({required this.primitives}) +: colors = ZetaColorAA(primitives: primitives), +size = ZetaSpacingAA(primitives: primitives), +radii = ZetaRadiiAA(primitives: primitives); +@override +final ZetaPrimitives primitives; +@override +final ZetaColorSemantics colors; +@override +final ZetaSpacingSemantics size; +@override +final ZetaRadiiSemantics radii; +} +/// The semantic tokens for AAA + class ZetaSemanticsAAA implements ZetaSemantics{ +/// Constructor for [ZetaSemanticsAAA] +ZetaSemanticsAAA({required this.primitives}) +: colors = ZetaColorAAA(primitives: primitives), +size = ZetaSpacingAAA(primitives: primitives), +radii = ZetaRadiiAAA(primitives: primitives); +@override +final ZetaPrimitives primitives; +@override +final ZetaColorSemantics colors; +@override +final ZetaSpacingSemantics size; +@override +final ZetaRadiiSemantics radii; +} \ No newline at end of file