|
41 | 41 | }
|
42 | 42 |
|
43 | 43 | // Custom Tailwind Styles
|
44 |
| -'.-ml-1': { left: -4 } |
45 |
| -'.-mr-1': { right: -4 } |
46 |
| -'.-mx-1': { right: -4, left: -4 } |
47 | 44 | 'ImageView[platform=ios]': { hires: true }
|
48 | 45 | 'View': { width: Ti.UI.SIZE, height: Ti.UI.SIZE }
|
49 | 46 | 'Window': { backgroundColor: '#ffffff' }
|
| 47 | +'.bg-white': { backgroundColor: '#ffffff' } |
| 48 | +'.bg-indigo-500': { backgroundColor: '#6366f1' } |
50 | 49 | '.bg-blue-200': { backgroundColor: '#bfdbfe' }
|
51 | 50 | '.bg-blue-500': { backgroundColor: '#3b82f6' }
|
52 | 51 | '.bg-blue-700': { backgroundColor: '#1d4ed8' }
|
53 | 52 | '.bg-blue-900': { backgroundColor: '#1e3a8a' }
|
| 53 | +'.bg-green-500': { backgroundColor: '#22c55e' } |
| 54 | +'.bg-orange-100': { backgroundColor: '#ffedd5' } |
| 55 | +'.bg-gray-50': { backgroundColor: '#fafafa' } |
54 | 56 | '.bg-gray-100': { backgroundColor: '#f4f4f5' }
|
55 | 57 | '.bg-gray-200': { backgroundColor: '#e4e4e7' }
|
56 | 58 | '.bg-gray-300': { backgroundColor: '#d4d4d8' }
|
57 |
| -'.bg-gray-50': { backgroundColor: '#fafafa' } |
58 | 59 | '.bg-gray-500': { backgroundColor: '#71717a' }
|
59 | 60 | '.bg-gray-800': { backgroundColor: '#27272a' }
|
60 | 61 | '.bg-gray-900': { backgroundColor: '#18181b' }
|
61 |
| -'.bg-green-500': { backgroundColor: '#22c55e' } |
62 |
| -'.bg-indigo-500': { backgroundColor: '#6366f1' } |
63 |
| -'.bg-orange-100': { backgroundColor: '#ffedd5' } |
64 |
| -'.bg-white': { backgroundColor: '#ffffff' } |
65 |
| -'.block': { visible: true } |
66 |
| -'.border-2': { borderWidth: 2 } |
67 |
| -'.border-4': { borderWidth: 4 } |
68 | 62 | '.border-blue-600': { borderColor: '#2563eb' }
|
69 | 63 | '.border-blue-800': { borderColor: '#1e40af' }
|
70 | 64 | '.border-gray-400': { borderColor: '#a1a1aa' }
|
71 | 65 | '.border-gray-500': { borderColor: '#71717a' }
|
| 66 | +'.rounded-8': { borderRadius: 16 } |
| 67 | +'.rounded-10': { borderRadius: 20 } |
| 68 | +'.rounded-12': { borderRadius: 24 } |
| 69 | +'.rounded-16': { borderRadius: 32 } |
| 70 | +'.rounded': { borderRadius: 4 } |
| 71 | +'.rounded-md': { borderRadius: 6 } |
| 72 | +'.rounded-lg': { borderRadius: 8 } |
| 73 | +'.border-2': { borderWidth: 2 } |
| 74 | +'.border-4': { borderWidth: 4 } |
72 | 75 | '.clip-enabled[platform=ios]': { clipMode: Ti.UI.iOS.CLIP_MODE_ENABLED }
|
73 |
| -'.font-bold': { font: { fontWeight: 'bold' } } |
| 76 | +'.block': { visible: true } |
| 77 | +'.text-xs': { font: { fontSize: 12 } } |
| 78 | +'.text-sm': { font: { fontSize: 14 } } |
| 79 | +'.text-base': { font: { fontSize: 16 } } |
| 80 | +'.text-xl': { font: { fontSize: 20 } } |
| 81 | +'.text-2xl': { font: { fontSize: 24 } } |
| 82 | +'.text-3xl': { font: { fontSize: 30 } } |
| 83 | +'.text-4xl': { font: { fontSize: 36 } } |
| 84 | +'.italic': { font: { fontStyle: 'italic' } } |
| 85 | +'.font-thin': { font: { fontWeight: 'thin' } } |
74 | 86 | '.font-normal': { font: { fontWeight: 'normal' } }
|
75 | 87 | '.font-semibold': { font: { fontWeight: 'semibold' } }
|
76 |
| -'.font-thin': { font: { fontWeight: 'thin' } } |
| 88 | +'.font-bold': { font: { fontWeight: 'bold' } } |
| 89 | +'.h-6': { height: 24 } |
| 90 | +'.h-8': { height: 32 } |
77 | 91 | '.h-10': { height: 40 }
|
78 | 92 | '.h-12': { height: 48 }
|
79 | 93 | '.h-16': { height: 64 }
|
80 | 94 | '.h-20': { height: 80 }
|
81 |
| -'.h-6': { height: 24 } |
82 |
| -'.h-8': { height: 32 } |
83 |
| -'.h-auto': { height: Ti.UI.SIZE } |
84 | 95 | '.h-px': { height: '1px' }
|
| 96 | +'.h-full': { height: '100%' } |
| 97 | +'.h-auto': { height: Ti.UI.SIZE } |
| 98 | +'.vertical': { layout: 'vertical' } |
85 | 99 | '.horizontal': { layout: 'horizontal' }
|
86 |
| -'.italic': { font: { fontStyle: 'italic' } } |
87 | 100 | '.m-3': { top: 12, right: 12, bottom: 12, left: 12 }
|
88 | 101 | '.m-4': { top: 16, right: 16, bottom: 16, left: 16 }
|
| 102 | +'.my-2': { top: 8, bottom: 8 } |
| 103 | +'.my-10': { top: 40, bottom: 40 } |
| 104 | +'.mx-0': { right: 0, left: 0 } |
| 105 | +'.mx-2': { right: 8, left: 8 } |
| 106 | +'.mx-3': { right: 12, left: 12 } |
| 107 | +'.mx-4': { right: 16, left: 16 } |
| 108 | +'.mx-6': { right: 24, left: 24 } |
| 109 | +'.mx-8': { right: 32, left: 32 } |
| 110 | +'.mx-10': { right: 40, left: 40 } |
| 111 | +'.mt-0': { top: 0 } |
| 112 | +'.mt-1': { top: 4 } |
| 113 | +'.mt-2': { top: 8 } |
| 114 | +'.mt-3': { top: 12 } |
| 115 | +'.mt-4': { top: 16 } |
| 116 | +'.mr-0': { right: 0 } |
| 117 | +'.mr-3': { right: 12 } |
| 118 | +'.mr-4': { right: 16 } |
89 | 119 | '.mb-1': { bottom: 4 }
|
90 | 120 | '.mb-3': { bottom: 12 }
|
91 | 121 | '.mb-4': { bottom: 16 }
|
92 | 122 | '.mb-8': { bottom: 32 }
|
93 | 123 | '.ml-0': { left: 0 }
|
94 | 124 | '.ml-1': { left: 4 }
|
95 |
| -'.ml-2': { left: 8 } |
96 | 125 | '.ml-3': { left: 12 }
|
97 | 126 | '.ml-4': { left: 16 }
|
98 |
| -'.mr-0': { right: 0 } |
99 |
| -'.mr-2': { right: 8 } |
100 |
| -'.mr-3': { right: 12 } |
101 |
| -'.mr-4': { right: 16 } |
102 |
| -'.mt-0': { top: 0 } |
103 |
| -'.mt-1': { top: 4 } |
104 |
| -'.mt-2': { top: 8 } |
105 |
| -'.mt-3': { top: 12 } |
106 |
| -'.mt-4': { top: 16 } |
107 |
| -'.mx-0': { right: 0, left: 0 } |
108 |
| -'.mx-10': { right: 40, left: 40 } |
109 |
| -'.mx-2': { right: 8, left: 8 } |
110 |
| -'.mx-3': { right: 12, left: 12 } |
111 |
| -'.mx-4': { right: 16, left: 16 } |
112 |
| -'.mx-8': { right: 32, left: 32 } |
113 |
| -'.my-2': { top: 8, bottom: 8 } |
114 |
| -'.opacity-100': { opacity: 1 } |
| 127 | +'.-mx-1': { left: -4, right: -4 } |
| 128 | +'.-mr-1': { right: -4 } |
| 129 | +'.-ml-1': { left: -4 } |
115 | 130 | '.opacity-25': { opacity: 0.25 }
|
116 | 131 | '.opacity-50': { opacity: 0.5 }
|
117 | 132 | '.opacity-75': { opacity: 0.75 }
|
| 133 | +'.opacity-100': { opacity: 1 } |
118 | 134 | '.pl-2': { padding: { left: 8 } }
|
119 |
| -'.rounded': { borderRadius: 4 } |
120 |
| -'.rounded-10': { borderRadius: 20 } |
121 |
| -'.rounded-12': { borderRadius: 24 } |
122 |
| -'.rounded-16': { borderRadius: 32 } |
123 |
| -'.rounded-8': { borderRadius: 16 } |
124 |
| -'.rounded-lg': { borderRadius: 8 } |
125 |
| -'.rounded-md': { borderRadius: 6 } |
| 135 | +'.shadow-xs': { viewShadowOffset: { x: 0, y: 0 }, viewShadowRadius: 1, viewShadowColor: '#80000000' } |
| 136 | +'.shadow-sm': { viewShadowOffset: { x: 0, y: 1 }, viewShadowRadius: 1, viewShadowColor: '#80000000' } |
126 | 137 | '.shadow': { viewShadowOffset: { x: 0, y: 2 }, viewShadowRadius: 2, viewShadowColor: '#80000000' }
|
| 138 | +'.shadow-md': { viewShadowOffset: { x: 0, y: 4 }, viewShadowRadius: 4, viewShadowColor: '#80000000' } |
| 139 | +'.shadow-lg': { viewShadowOffset: { x: 0, y: 8 }, viewShadowRadius: 8, viewShadowColor: '#80000000' } |
| 140 | +'.shadow-xl': { viewShadowOffset: { x: 0, y: 12 }, viewShadowRadius: 12, viewShadowColor: '#80000000' } |
127 | 141 | '.shadow-2xl': { viewShadowOffset: { x: 0, y: 16 }, viewShadowRadius: 16, viewShadowColor: '#80000000' }
|
128 | 142 | '.shadow-inner': { viewShadowOffset: { x: 0, y: 0 }, viewShadowRadius: null, viewShadowColor: null }
|
129 |
| -'.shadow-lg': { viewShadowOffset: { x: 0, y: 8 }, viewShadowRadius: 8, viewShadowColor: '#80000000' } |
130 |
| -'.shadow-md': { viewShadowOffset: { x: 0, y: 4 }, viewShadowRadius: 4, viewShadowColor: '#80000000' } |
131 |
| -'.shadow-none': { viewShadowOffset: { x: 0, y: 0 }, viewShadowRadius: null, viewShadowColor: null } |
132 | 143 | '.shadow-outline': { viewShadowOffset: { x: 0, y: 0 }, viewShadowRadius: 2, viewShadowColor: '#80000000' }
|
133 |
| -'.shadow-sm': { viewShadowOffset: { x: 0, y: 1 }, viewShadowRadius: 1, viewShadowColor: '#80000000' } |
134 |
| -'.shadow-xl': { viewShadowOffset: { x: 0, y: 12 }, viewShadowRadius: 12, viewShadowColor: '#80000000' } |
135 |
| -'.shadow-xs': { viewShadowOffset: { x: 0, y: 0 }, viewShadowRadius: 1, viewShadowColor: '#80000000' } |
136 |
| -'.text-2xl': { font: { fontSize: 24 } } |
137 |
| -'.text-3xl': { font: { fontSize: 30 } } |
138 |
| -'.text-4xl': { font: { fontSize: 36 } } |
139 |
| -'.text-base': { font: { fontSize: 16 } } |
140 |
| -'.text-blue-700': { color: '#1d4ed8' } |
| 144 | +'.text-left': { textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT } |
| 145 | +'.text-right': { textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT } |
141 | 146 | '.text-center': { textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER }
|
| 147 | +'.text-white': { color: '#ffffff' } |
| 148 | +'.text-purple-500': { color: '#a855f7' } |
| 149 | +'.text-indigo-700': { color: '#4338ca' } |
| 150 | +'.text-blue-700': { color: '#1d4ed8' } |
| 151 | +'.text-red-600': { color: '#dc2626' } |
| 152 | +'.text-red-700': { color: '#b91c1c' } |
142 | 153 | '.text-gray-200': { color: '#e4e4e7' }
|
143 | 154 | '.text-gray-500': { color: '#71717a' }
|
144 | 155 | '.text-gray-600': { color: '#52525b' }
|
145 | 156 | '.text-gray-700': { color: '#3f3f46' }
|
146 | 157 | '.text-gray-800': { color: '#27272a' }
|
147 | 158 | '.text-gray-900': { color: '#18181b' }
|
148 |
| -'.text-indigo-700': { color: '#4338ca' } |
149 |
| -'.text-left': { textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT } |
150 |
| -'.text-purple-500': { color: '#a855f7' } |
151 |
| -'.text-red-600': { color: '#dc2626' } |
152 |
| -'.text-red-700': { color: '#b91c1c' } |
153 |
| -'.text-right': { textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT } |
154 |
| -'.text-sm': { font: { fontSize: 14 } } |
155 |
| -'.text-white': { color: '#ffffff' } |
156 |
| -'.text-xl': { font: { fontSize: 20 } } |
157 |
| -'.text-xs': { font: { fontSize: 12 } } |
158 |
| -'.vertical': { layout: 'vertical' } |
159 |
| -'.w-1/2': { width: '50%' } |
160 |
| -'.w-1/3': { width: '33.333333%' } |
161 |
| -'.w-1/4': { width: '25%' } |
162 |
| -'.w-1/5': { width: '20%' } |
| 159 | +'.w-6': { width: 24 } |
163 | 160 | '.w-10': { width: 40 }
|
164 |
| -'.w-11/12': { width: '91.666667%' } |
165 | 161 | '.w-12': { width: 48 }
|
166 | 162 | '.w-16': { width: 64 }
|
167 | 163 | '.w-24': { width: 96 }
|
168 |
| -'.w-4/5': { width: '80%' } |
169 | 164 | '.w-56': { width: 224 }
|
170 |
| -'.w-6': { width: 24 } |
171 |
| -'.w-auto': { width: Ti.UI.SIZE } |
| 165 | +'.w-1/2': { width: '50%' } |
| 166 | +'.w-1/3': { width: '33.333334%' } |
| 167 | +'.w-1/4': { width: '25%' } |
| 168 | +'.w-1/5': { width: '20%' } |
| 169 | +'.w-4/5': { width: '80%' } |
| 170 | +'.w-11/12': { width: '91.666667%' } |
172 | 171 | '.w-full': { width: '100%' }
|
| 172 | +'.w-auto': { width: Ti.UI.SIZE } |
173 | 173 | '.w-screen': { width: Ti.UI.FILL }
|
174 | 174 |
|
| 175 | +// Classes with arbitrary values |
| 176 | +// Property not yet supported: (111) |
| 177 | +// Property not yet supported: (555) |
| 178 | + |
175 | 179 | // Default Font Awesome styles
|
176 | 180 | '.fa':{ font: { fontFamily: 'FontAwesome5Free-Solid' } }
|
177 | 181 | '.fa-align-left': { text: '\uf036', title: '\uf036' }
|
|
0 commit comments