create-expo-stack 2.7.0-next.ba3b85d → 2.7.0-next.dac211a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,38 +8,95 @@ module.exports = {
|
|
|
8
8
|
theme: {
|
|
9
9
|
extend: {
|
|
10
10
|
colors: {
|
|
11
|
-
border:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
border: platformSelect({
|
|
12
|
+
ios: 'rgb(var(--border))',
|
|
13
|
+
android: 'rgb(var(--android-border))',
|
|
14
|
+
}),
|
|
15
|
+
input: platformSelect({
|
|
16
|
+
ios: 'rgb(var(--input))',
|
|
17
|
+
android: 'rgb(var(--android-input))',
|
|
18
|
+
}),
|
|
19
|
+
ring: platformSelect({
|
|
20
|
+
ios: 'rgb(var(--ring))',
|
|
21
|
+
android: 'rgb(var(--android-ring))',
|
|
22
|
+
}),
|
|
23
|
+
background: platformSelect({
|
|
24
|
+
ios: 'rgb(var(--background))',
|
|
25
|
+
android: 'rgb(var(--android-background))',
|
|
26
|
+
}),
|
|
27
|
+
foreground: platformSelect({
|
|
28
|
+
ios: 'rgb(var(--foreground))',
|
|
29
|
+
android: 'rgb(var(--android-foreground))',
|
|
30
|
+
}),
|
|
16
31
|
primary: {
|
|
17
|
-
DEFAULT:
|
|
18
|
-
|
|
32
|
+
DEFAULT: platformSelect({
|
|
33
|
+
ios: 'rgb(var(--primary))',
|
|
34
|
+
android: 'rgb(var(--android-primary))',
|
|
35
|
+
}),
|
|
36
|
+
foreground: platformSelect({
|
|
37
|
+
ios: 'rgb(var(--primary-foreground))',
|
|
38
|
+
android: 'rgb(var(--android-primary-foreground))',
|
|
39
|
+
}),
|
|
19
40
|
},
|
|
20
41
|
secondary: {
|
|
21
|
-
DEFAULT:
|
|
22
|
-
|
|
42
|
+
DEFAULT: platformSelect({
|
|
43
|
+
ios: 'rgb(var(--secondary))',
|
|
44
|
+
android: 'rgb(var(--android-secondary))',
|
|
45
|
+
}),
|
|
46
|
+
foreground: platformSelect({
|
|
47
|
+
ios: 'rgb(var(--secondary-foreground))',
|
|
48
|
+
android: 'rgb(var(--android-secondary-foreground))',
|
|
49
|
+
}),
|
|
23
50
|
},
|
|
24
51
|
destructive: {
|
|
25
|
-
DEFAULT:
|
|
26
|
-
|
|
52
|
+
DEFAULT: platformSelect({
|
|
53
|
+
ios: 'rgb(var(--destructive))',
|
|
54
|
+
android: 'rgb(var(--android-destructive))',
|
|
55
|
+
}),
|
|
56
|
+
foreground: platformSelect({
|
|
57
|
+
ios: 'rgb(var(--destructive-foreground))',
|
|
58
|
+
android: 'rgb(var(--android-destructive-foreground))',
|
|
59
|
+
}),
|
|
27
60
|
},
|
|
28
61
|
muted: {
|
|
29
|
-
DEFAULT:
|
|
30
|
-
|
|
62
|
+
DEFAULT: platformSelect({
|
|
63
|
+
ios: 'rgb(var(--muted))',
|
|
64
|
+
android: 'rgb(var(--android-muted))',
|
|
65
|
+
}),
|
|
66
|
+
foreground: platformSelect({
|
|
67
|
+
ios: 'rgb(var(--muted-foreground))',
|
|
68
|
+
android: 'rgb(var(--android-muted-foreground))',
|
|
69
|
+
}),
|
|
31
70
|
},
|
|
32
71
|
accent: {
|
|
33
|
-
DEFAULT:
|
|
34
|
-
|
|
72
|
+
DEFAULT: platformSelect({
|
|
73
|
+
ios: 'rgb(var(--accent))',
|
|
74
|
+
android: 'rgb(var(--android-accent))',
|
|
75
|
+
}),
|
|
76
|
+
foreground: platformSelect({
|
|
77
|
+
ios: 'rgb(var(--accent-foreground))',
|
|
78
|
+
android: 'rgb(var(--android-accent-foreground))',
|
|
79
|
+
}),
|
|
35
80
|
},
|
|
36
81
|
popover: {
|
|
37
|
-
DEFAULT:
|
|
38
|
-
|
|
82
|
+
DEFAULT: platformSelect({
|
|
83
|
+
ios: 'rgb(var(--popover))',
|
|
84
|
+
android: 'rgb(var(--android-popover))',
|
|
85
|
+
}),
|
|
86
|
+
foreground: platformSelect({
|
|
87
|
+
ios: 'rgb(var(--popover-foreground))',
|
|
88
|
+
android: 'rgb(var(--android-popover-foreground))',
|
|
89
|
+
}),
|
|
39
90
|
},
|
|
40
91
|
card: {
|
|
41
|
-
DEFAULT:
|
|
42
|
-
|
|
92
|
+
DEFAULT: platformSelect({
|
|
93
|
+
ios: 'rgb(var(--card))',
|
|
94
|
+
android: 'rgb(var(--android-card))',
|
|
95
|
+
}),
|
|
96
|
+
foreground: platformSelect({
|
|
97
|
+
ios: 'rgb(var(--card-foreground))',
|
|
98
|
+
android: 'rgb(var(--android-card-foreground))',
|
|
99
|
+
}),
|
|
43
100
|
},
|
|
44
101
|
},
|
|
45
102
|
borderWidth: {
|
|
@@ -49,18 +106,3 @@ module.exports = {
|
|
|
49
106
|
},
|
|
50
107
|
plugins: [],
|
|
51
108
|
};
|
|
52
|
-
|
|
53
|
-
function withOpacity(variableName) {
|
|
54
|
-
return ({ opacityValue }) => {
|
|
55
|
-
if (opacityValue !== undefined) {
|
|
56
|
-
return platformSelect({
|
|
57
|
-
ios: `rgb(var(--${variableName}) / ${opacityValue})`,
|
|
58
|
-
android: `rgb(var(--android-${variableName}) / ${opacityValue})`,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return platformSelect({
|
|
62
|
-
ios: `rgb(var(--${variableName}))`,
|
|
63
|
-
android: `rgb(var(--android-${variableName}))`,
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|