@@ -21,112 +21,112 @@ class _ColorExampleState extends State<ColorExample> {
21
21
return LayoutBuilder (
22
22
builder: (context, constraints) {
23
23
final Map <String , ZetaColorSwatch > swatches = {
24
- 'Blue' : colors.blue,
25
- 'Green' : colors.green,
26
- 'Red' : colors.red,
27
- 'Orange' : colors.orange,
28
- 'Purple' : colors.purple,
29
- 'Yellow' : colors.yellow,
30
- 'Teal' : colors.teal,
31
- 'Pink' : colors.pink,
32
- 'Grey Warm' : colors.warm,
33
- 'Grey Cool' : colors.cool,
24
+ // 'Blue': colors.blue,
25
+ // 'Green': colors.green,
26
+ // 'Red': colors.red,
27
+ // 'Orange': colors.orange,
28
+ // 'Purple': colors.purple,
29
+ // 'Yellow': colors.yellow,
30
+ // 'Teal': colors.teal,
31
+ // 'Pink': colors.pink,
32
+ // 'Grey Warm': colors.warm,
33
+ // 'Grey Cool': colors.cool,
34
34
};
35
35
36
36
final Map <String , ZetaColorSwatch > generatedSwatches = {
37
- 'Gen-Blue' : ZetaColorSwatch .fromColor (
38
- colors.blue,
39
- brightness: zeta.brightness,
40
- contrast: colors.contrast,
41
- ),
42
- 'Blue' : colors.blue,
43
- 'Gen-Green' : ZetaColorSwatch .fromColor (
44
- colors.green,
45
- brightness: zeta.brightness,
46
- contrast: colors.contrast,
47
- ),
48
- 'Green' : colors.green,
49
- 'Gen-Red' : ZetaColorSwatch .fromColor (
50
- colors.red,
51
- brightness: zeta.brightness,
52
- contrast: colors.contrast,
53
- ),
54
- 'Red' : colors.red,
55
- 'Gen-Orange' : ZetaColorSwatch .fromColor (
56
- colors.orange,
57
- brightness: zeta.brightness,
58
- contrast: colors.contrast,
59
- ),
60
- 'Orange' : colors.orange,
61
- 'Gen-Purple' : ZetaColorSwatch .fromColor (
62
- colors.purple,
63
- brightness: zeta.brightness,
64
- contrast: colors.contrast,
65
- ),
66
- 'Purple' : colors.purple,
67
- 'Gen-Yellow' : ZetaColorSwatch .fromColor (
68
- colors.yellow,
69
- brightness: zeta.brightness,
70
- contrast: colors.contrast,
71
- ),
72
- 'Yellow' : colors.yellow,
73
- 'Gen-Teal' : ZetaColorSwatch .fromColor (
74
- colors.teal,
75
- brightness: zeta.brightness,
76
- contrast: colors.contrast,
77
- ),
78
- 'Teal' : colors.teal,
79
- 'Gen-Pink' : ZetaColorSwatch .fromColor (
80
- colors.pink,
81
- brightness: zeta.brightness,
82
- contrast: colors.contrast,
83
- ),
84
- 'Pink' : colors.pink,
85
- 'Gen-Grey Warm' : ZetaColorSwatch .fromColor (
86
- colors.warm,
87
- brightness: zeta.brightness,
88
- contrast: colors.contrast,
89
- ),
90
- 'Grey Warm' : colors.warm,
91
- 'Gen-Grey Cool' : ZetaColorSwatch .fromColor (
92
- colors.cool,
93
- brightness: zeta.brightness,
94
- contrast: colors.contrast,
95
- ),
96
- 'Grey Cool' : colors.cool,
37
+ // 'Gen-Blue': ZetaColorSwatch.fromColor(
38
+ // colors.blue,
39
+ // brightness: zeta.brightness,
40
+ // contrast: colors.contrast,
41
+ // ),
42
+ // 'Blue': colors.blue,
43
+ // 'Gen-Green': ZetaColorSwatch.fromColor(
44
+ // colors.green,
45
+ // brightness: zeta.brightness,
46
+ // contrast: colors.contrast,
47
+ // ),
48
+ // 'Green': colors.green,
49
+ // 'Gen-Red': ZetaColorSwatch.fromColor(
50
+ // colors.red,
51
+ // brightness: zeta.brightness,
52
+ // contrast: colors.contrast,
53
+ // ),
54
+ // 'Red': colors.red,
55
+ // 'Gen-Orange': ZetaColorSwatch.fromColor(
56
+ // colors.orange,
57
+ // brightness: zeta.brightness,
58
+ // contrast: colors.contrast,
59
+ // ),
60
+ // 'Orange': colors.orange,
61
+ // 'Gen-Purple': ZetaColorSwatch.fromColor(
62
+ // colors.purple,
63
+ // brightness: zeta.brightness,
64
+ // contrast: colors.contrast,
65
+ // ),
66
+ // 'Purple': colors.purple,
67
+ // 'Gen-Yellow': ZetaColorSwatch.fromColor(
68
+ // colors.yellow,
69
+ // brightness: zeta.brightness,
70
+ // contrast: colors.contrast,
71
+ // ),
72
+ // 'Yellow': colors.yellow,
73
+ // 'Gen-Teal': ZetaColorSwatch.fromColor(
74
+ // colors.teal,
75
+ // brightness: zeta.brightness,
76
+ // contrast: colors.contrast,
77
+ // ),
78
+ // 'Teal': colors.teal,
79
+ // 'Gen-Pink': ZetaColorSwatch.fromColor(
80
+ // colors.pink,
81
+ // brightness: zeta.brightness,
82
+ // contrast: colors.contrast,
83
+ // ),
84
+ // 'Pink': colors.pink,
85
+ // 'Gen-Grey Warm': ZetaColorSwatch.fromColor(
86
+ // colors.warm,
87
+ // brightness: zeta.brightness,
88
+ // contrast: colors.contrast,
89
+ // ),
90
+ // 'Grey Warm': colors.warm,
91
+ // 'Gen-Grey Cool': ZetaColorSwatch.fromColor(
92
+ // colors.cool,
93
+ // brightness: zeta.brightness,
94
+ // contrast: colors.contrast,
95
+ // ),
96
+ // 'Grey Cool': colors.cool,
97
97
};
98
98
99
99
final Map <String , Color > textIcon = {
100
- 'textDefault ' : colors.textDefault ,
101
- 'textSubtle ' : colors.textSubtle ,
102
- 'textDisabled ' : colors.textDisabled ,
103
- 'textInverse ' : colors.textInverse ,
100
+ 'main.defaultColor ' : colors.main.defaultColor ,
101
+ 'main.subtle ' : colors.main.subtle ,
102
+ 'main.disabled ' : colors.main.disabled ,
103
+ 'main.inverse ' : colors.main.inverse ,
104
104
};
105
105
final Map <String , Color > border = {
106
- 'borderDefault ' : colors.borderDefault ,
107
- 'borderSubtle ' : colors.borderSubtle ,
108
- 'borderDisabled ' : colors.borderDisabled ,
109
- 'borderSelected ' : colors.borderSelected ,
106
+ 'border.defaultColor ' : colors.border.defaultColor ,
107
+ 'border.subtle ' : colors.border.subtle ,
108
+ 'border.disabled ' : colors.border.disabled ,
109
+ 'border.selected ' : colors.border.selected ,
110
110
};
111
111
final Map <String , Color > backdrop = {
112
- 'surfacePrimary ' : colors.surfacePrimary ,
113
- 'surfaceDisabled ' : colors.surfaceDisabled ,
114
- 'surfaceHover ' : colors.surfaceHover ,
115
- 'surfaceSecondary ' : colors.surfaceSecondary ,
116
- 'surfaceTertiary' : colors.surfaceTertiary,
117
- 'surfaceSelectedHover ' : colors.surfaceSelectedHover ,
118
- 'surfaceSelected ' : colors.surfaceSelected ,
112
+ 'surface.primary ' : colors.surface.primary ,
113
+ 'surface.disabled ' : colors.surface.disabled ,
114
+ 'surface.hover ' : colors.surface.hover ,
115
+ 'surface.secondary ' : colors.surface.secondary ,
116
+ // 'surfaceTertiary': colors.surfaceTertiary,
117
+ 'surface.selectedHover ' : colors.surface.selectedHover ,
118
+ 'surface.selected ' : colors.surface.selected ,
119
119
};
120
120
121
121
final Map <String , Color > primaries = {
122
- 'primaryColor' : colors.primary.text ,
123
- 'secondaryColor' : colors.secondary.text ,
122
+ 'primaryColor' : colors.main.primary ,
123
+ 'secondaryColor' : colors.main.secondary ,
124
124
};
125
125
126
126
final Map <String , Color > alerts = {
127
- 'negative' : colors.surfaceNegative ,
128
- 'warning' : colors.surfaceWarning ,
129
- 'info' : colors.surfaceInfo ,
127
+ 'negative' : colors.surface.negative ,
128
+ 'warning' : colors.surface.warning ,
129
+ 'info' : colors.surface.info ,
130
130
};
131
131
132
132
return ExampleScaffold (
@@ -187,7 +187,7 @@ class _ColorExampleState extends State<ColorExample> {
187
187
(e) => Expanded (
188
188
child: Container (
189
189
height: constraints.maxWidth / 10 ,
190
- color: e == 110 ? colors.surfacePrimary : value.value[e],
190
+ color: e == 110 ? colors.surface.primary : value.value[e],
191
191
child: e == 110
192
192
? Nothing ()
193
193
: FittedBox (
0 commit comments