@expo/styleguide 6.1.3 → 8.0.0-alpha.0

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.
Files changed (305) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +9 -22
  3. package/dist/expo-theme.css +2 -0
  4. package/dist/index.d.ts +5 -13
  5. package/dist/index.js +701 -36
  6. package/dist/{components → src/components}/BlockingSetInitialColorMode.d.ts +0 -0
  7. package/dist/src/components/ButtonBase.d.ts +9 -0
  8. package/dist/{components → src/components}/ThemeProvider.d.ts +1 -1
  9. package/dist/src/components/index.d.ts +3 -0
  10. package/dist/{logos → src/logos}/DocsLogo.d.ts +0 -0
  11. package/dist/{logos → src/logos}/ExpoGoLogo.d.ts +0 -0
  12. package/dist/{logos → src/logos}/Logo.d.ts +0 -0
  13. package/dist/{logos → src/logos}/SnackLogo.d.ts +0 -0
  14. package/dist/{logos → src/logos}/WordMarkLogo.d.ts +0 -0
  15. package/dist/{logos → src/logos}/index.d.ts +0 -0
  16. package/dist/{styles → src/styles}/shadows.d.ts +1 -0
  17. package/dist/src/styles/themes.d.ts +227 -0
  18. package/dist/{styles → src/styles}/typography.d.ts +7 -53
  19. package/dist/{types → src/types}/index.d.ts +1 -1
  20. package/dist/tailwind.js +396 -0
  21. package/package.json +21 -19
  22. package/tailwind.js +325 -96
  23. package/dist/components/BlockingSetInitialColorMode.js +0 -64
  24. package/dist/components/ThemeProvider.js +0 -139
  25. package/dist/icons/ActivityIcon.d.ts +0 -3
  26. package/dist/icons/ActivityIcon.js +0 -14
  27. package/dist/icons/AddPhotoIcon.d.ts +0 -3
  28. package/dist/icons/AddPhotoIcon.js +0 -14
  29. package/dist/icons/AndroidIcon.d.ts +0 -3
  30. package/dist/icons/AndroidIcon.js +0 -14
  31. package/dist/icons/AppleAppStoreIcon.d.ts +0 -3
  32. package/dist/icons/AppleAppStoreIcon.js +0 -16
  33. package/dist/icons/AppleIcon.d.ts +0 -3
  34. package/dist/icons/AppleIcon.js +0 -14
  35. package/dist/icons/AppleSimulatorIcon.d.ts +0 -3
  36. package/dist/icons/AppleSimulatorIcon.js +0 -18
  37. package/dist/icons/ArrowDownIcon.d.ts +0 -3
  38. package/dist/icons/ArrowDownIcon.js +0 -14
  39. package/dist/icons/ArrowLeftIcon.d.ts +0 -3
  40. package/dist/icons/ArrowLeftIcon.js +0 -14
  41. package/dist/icons/ArrowRightIcon.d.ts +0 -3
  42. package/dist/icons/ArrowRightIcon.js +0 -14
  43. package/dist/icons/ArrowUpIcon.d.ts +0 -3
  44. package/dist/icons/ArrowUpIcon.js +0 -14
  45. package/dist/icons/ArrowUpRightIcon.d.ts +0 -3
  46. package/dist/icons/ArrowUpRightIcon.js +0 -14
  47. package/dist/icons/AtSignIcon.d.ts +0 -3
  48. package/dist/icons/AtSignIcon.js +0 -14
  49. package/dist/icons/BadgeIcon.d.ts +0 -3
  50. package/dist/icons/BadgeIcon.js +0 -15
  51. package/dist/icons/BellIcon.d.ts +0 -3
  52. package/dist/icons/BellIcon.js +0 -14
  53. package/dist/icons/BranchIcon.d.ts +0 -3
  54. package/dist/icons/BranchIcon.js +0 -14
  55. package/dist/icons/BugInspectIcon.d.ts +0 -3
  56. package/dist/icons/BugInspectIcon.js +0 -16
  57. package/dist/icons/BuildIcon.d.ts +0 -3
  58. package/dist/icons/BuildIcon.js +0 -14
  59. package/dist/icons/BuildNumberIcon.d.ts +0 -3
  60. package/dist/icons/BuildNumberIcon.js +0 -14
  61. package/dist/icons/BuildProfileIcon.d.ts +0 -3
  62. package/dist/icons/BuildProfileIcon.js +0 -14
  63. package/dist/icons/ChangelogIcon.d.ts +0 -3
  64. package/dist/icons/ChangelogIcon.js +0 -15
  65. package/dist/icons/ChannelIcon.d.ts +0 -3
  66. package/dist/icons/ChannelIcon.js +0 -15
  67. package/dist/icons/ChartIcon.d.ts +0 -3
  68. package/dist/icons/ChartIcon.js +0 -15
  69. package/dist/icons/CheckIcon.d.ts +0 -3
  70. package/dist/icons/CheckIcon.js +0 -14
  71. package/dist/icons/ChevronDownIcon.d.ts +0 -3
  72. package/dist/icons/ChevronDownIcon.js +0 -14
  73. package/dist/icons/ChevronLeftIcon.d.ts +0 -3
  74. package/dist/icons/ChevronLeftIcon.js +0 -14
  75. package/dist/icons/ChevronRightIcon.d.ts +0 -3
  76. package/dist/icons/ChevronRightIcon.js +0 -14
  77. package/dist/icons/ChevronUpIcon.d.ts +0 -3
  78. package/dist/icons/ChevronUpIcon.js +0 -14
  79. package/dist/icons/ClipboardIcon.d.ts +0 -3
  80. package/dist/icons/ClipboardIcon.js +0 -16
  81. package/dist/icons/CloudSlashIcon.d.ts +0 -3
  82. package/dist/icons/CloudSlashIcon.js +0 -14
  83. package/dist/icons/CodeIcon.d.ts +0 -3
  84. package/dist/icons/CodeIcon.js +0 -14
  85. package/dist/icons/CommandLineIcon.d.ts +0 -3
  86. package/dist/icons/CommandLineIcon.js +0 -14
  87. package/dist/icons/CommitIcon.d.ts +0 -3
  88. package/dist/icons/CommitIcon.js +0 -14
  89. package/dist/icons/CredentialIcon.d.ts +0 -3
  90. package/dist/icons/CredentialIcon.js +0 -16
  91. package/dist/icons/CreditCardIcon.d.ts +0 -3
  92. package/dist/icons/CreditCardIcon.js +0 -15
  93. package/dist/icons/DatabaseIcon.d.ts +0 -3
  94. package/dist/icons/DatabaseIcon.js +0 -15
  95. package/dist/icons/DebugIcon.d.ts +0 -3
  96. package/dist/icons/DebugIcon.js +0 -15
  97. package/dist/icons/DeploymentIcon.d.ts +0 -3
  98. package/dist/icons/DeploymentIcon.js +0 -14
  99. package/dist/icons/DeploymentsIcon.d.ts +0 -3
  100. package/dist/icons/DeploymentsIcon.js +0 -17
  101. package/dist/icons/DiscordIcon.d.ts +0 -3
  102. package/dist/icons/DiscordIcon.js +0 -14
  103. package/dist/icons/DiscourseIcon.d.ts +0 -3
  104. package/dist/icons/DiscourseIcon.js +0 -14
  105. package/dist/icons/DownloadIcon.d.ts +0 -3
  106. package/dist/icons/DownloadIcon.js +0 -15
  107. package/dist/icons/EasMetadataIcon.d.ts +0 -3
  108. package/dist/icons/EasMetadataIcon.js +0 -21
  109. package/dist/icons/EasSubmitIcon.d.ts +0 -3
  110. package/dist/icons/EasSubmitIcon.js +0 -21
  111. package/dist/icons/EditIcon.d.ts +0 -3
  112. package/dist/icons/EditIcon.js +0 -19
  113. package/dist/icons/ErrorIcon.d.ts +0 -3
  114. package/dist/icons/ErrorIcon.js +0 -14
  115. package/dist/icons/FacebookIcon.d.ts +0 -3
  116. package/dist/icons/FacebookIcon.js +0 -14
  117. package/dist/icons/GeneralIcon.d.ts +0 -3
  118. package/dist/icons/GeneralIcon.js +0 -25
  119. package/dist/icons/GithubIcon.d.ts +0 -3
  120. package/dist/icons/GithubIcon.js +0 -14
  121. package/dist/icons/GoogleAppStoreIcon.d.ts +0 -3
  122. package/dist/icons/GoogleAppStoreIcon.js +0 -14
  123. package/dist/icons/HamburgerIcon.d.ts +0 -3
  124. package/dist/icons/HamburgerIcon.js +0 -14
  125. package/dist/icons/HeadsetIcon.d.ts +0 -3
  126. package/dist/icons/HeadsetIcon.js +0 -18
  127. package/dist/icons/HomeFilledIcon.d.ts +0 -3
  128. package/dist/icons/HomeFilledIcon.js +0 -14
  129. package/dist/icons/HomeIcon.d.ts +0 -3
  130. package/dist/icons/HomeIcon.js +0 -14
  131. package/dist/icons/InfoIcon.d.ts +0 -3
  132. package/dist/icons/InfoIcon.js +0 -14
  133. package/dist/icons/InspectElementIcon.d.ts +0 -3
  134. package/dist/icons/InspectElementIcon.js +0 -15
  135. package/dist/icons/InstagramIcon.d.ts +0 -3
  136. package/dist/icons/InstagramIcon.js +0 -14
  137. package/dist/icons/InvoicesIcon.d.ts +0 -3
  138. package/dist/icons/InvoicesIcon.js +0 -15
  139. package/dist/icons/LifebuoyIcon.d.ts +0 -3
  140. package/dist/icons/LifebuoyIcon.js +0 -14
  141. package/dist/icons/LockIcon.d.ts +0 -3
  142. package/dist/icons/LockIcon.js +0 -14
  143. package/dist/icons/LogoutMobileIcon.d.ts +0 -3
  144. package/dist/icons/LogoutMobileIcon.js +0 -15
  145. package/dist/icons/LogsIcon.d.ts +0 -3
  146. package/dist/icons/LogsIcon.js +0 -16
  147. package/dist/icons/MailIcon.d.ts +0 -3
  148. package/dist/icons/MailIcon.js +0 -14
  149. package/dist/icons/MegaphoneIcon.d.ts +0 -3
  150. package/dist/icons/MegaphoneIcon.js +0 -15
  151. package/dist/icons/MessageIcon.d.ts +0 -3
  152. package/dist/icons/MessageIcon.js +0 -14
  153. package/dist/icons/MoreHorizontalIcon.d.ts +0 -3
  154. package/dist/icons/MoreHorizontalIcon.js +0 -16
  155. package/dist/icons/MoreVerticalIcon.d.ts +0 -3
  156. package/dist/icons/MoreVerticalIcon.js +0 -16
  157. package/dist/icons/OneTimePasswordIcon.d.ts +0 -3
  158. package/dist/icons/OneTimePasswordIcon.js +0 -16
  159. package/dist/icons/OpenInternalIcon.d.ts +0 -3
  160. package/dist/icons/OpenInternalIcon.js +0 -15
  161. package/dist/icons/OrganizationIcon.d.ts +0 -3
  162. package/dist/icons/OrganizationIcon.js +0 -15
  163. package/dist/icons/OverviewIcon.d.ts +0 -3
  164. package/dist/icons/OverviewIcon.js +0 -14
  165. package/dist/icons/PerformanceIcon.d.ts +0 -3
  166. package/dist/icons/PerformanceIcon.js +0 -15
  167. package/dist/icons/PersonalTrainerIcon.d.ts +0 -3
  168. package/dist/icons/PersonalTrainerIcon.js +0 -14
  169. package/dist/icons/PinIcon.d.ts +0 -3
  170. package/dist/icons/PinIcon.js +0 -14
  171. package/dist/icons/PlanEnterpriseIcon.d.ts +0 -3
  172. package/dist/icons/PlanEnterpriseIcon.js +0 -14
  173. package/dist/icons/PlanFreeIcon.d.ts +0 -3
  174. package/dist/icons/PlanFreeIcon.js +0 -14
  175. package/dist/icons/PlanProductionIcon.d.ts +0 -3
  176. package/dist/icons/PlanProductionIcon.js +0 -15
  177. package/dist/icons/PlansIcon.d.ts +0 -3
  178. package/dist/icons/PlansIcon.js +0 -15
  179. package/dist/icons/PlusIcon.d.ts +0 -3
  180. package/dist/icons/PlusIcon.js +0 -14
  181. package/dist/icons/PrivacyIcon.d.ts +0 -3
  182. package/dist/icons/PrivacyIcon.js +0 -14
  183. package/dist/icons/ProjectTransferIcon.d.ts +0 -3
  184. package/dist/icons/ProjectTransferIcon.js +0 -15
  185. package/dist/icons/PushToDeviceIcon.d.ts +0 -3
  186. package/dist/icons/PushToDeviceIcon.js +0 -17
  187. package/dist/icons/QrCodeIcon.d.ts +0 -3
  188. package/dist/icons/QrCodeIcon.js +0 -18
  189. package/dist/icons/QuestionIcon.d.ts +0 -3
  190. package/dist/icons/QuestionIcon.js +0 -14
  191. package/dist/icons/QuestionMarkIcon.d.ts +0 -3
  192. package/dist/icons/QuestionMarkIcon.js +0 -14
  193. package/dist/icons/ReceiptIcon.d.ts +0 -3
  194. package/dist/icons/ReceiptIcon.js +0 -15
  195. package/dist/icons/RedditIcon.d.ts +0 -3
  196. package/dist/icons/RedditIcon.js +0 -14
  197. package/dist/icons/RefreshIcon.d.ts +0 -3
  198. package/dist/icons/RefreshIcon.js +0 -17
  199. package/dist/icons/RolloutIcon.d.ts +0 -3
  200. package/dist/icons/RolloutIcon.js +0 -15
  201. package/dist/icons/RunIcon.d.ts +0 -3
  202. package/dist/icons/RunIcon.js +0 -15
  203. package/dist/icons/RuntimeVersionIcon.d.ts +0 -3
  204. package/dist/icons/RuntimeVersionIcon.js +0 -14
  205. package/dist/icons/ScanIcon.d.ts +0 -3
  206. package/dist/icons/ScanIcon.js +0 -15
  207. package/dist/icons/SearchIcon.d.ts +0 -3
  208. package/dist/icons/SearchIcon.js +0 -15
  209. package/dist/icons/SecretsIcon.d.ts +0 -3
  210. package/dist/icons/SecretsIcon.js +0 -14
  211. package/dist/icons/SettingsFilledIcon.d.ts +0 -3
  212. package/dist/icons/SettingsFilledIcon.js +0 -14
  213. package/dist/icons/SettingsIcon.d.ts +0 -3
  214. package/dist/icons/SettingsIcon.js +0 -14
  215. package/dist/icons/SlashShortcutIcon.d.ts +0 -3
  216. package/dist/icons/SlashShortcutIcon.js +0 -14
  217. package/dist/icons/SparklesIcon.d.ts +0 -3
  218. package/dist/icons/SparklesIcon.js +0 -14
  219. package/dist/icons/StatusCanceledIcon.d.ts +0 -3
  220. package/dist/icons/StatusCanceledIcon.js +0 -14
  221. package/dist/icons/StatusFailedIcon.d.ts +0 -3
  222. package/dist/icons/StatusFailedIcon.js +0 -14
  223. package/dist/icons/StatusNewIcon.d.ts +0 -3
  224. package/dist/icons/StatusNewIcon.js +0 -15
  225. package/dist/icons/StatusSuccessIcon.d.ts +0 -3
  226. package/dist/icons/StatusSuccessIcon.js +0 -14
  227. package/dist/icons/StatusWaitingIcon.d.ts +0 -3
  228. package/dist/icons/StatusWaitingIcon.js +0 -14
  229. package/dist/icons/StoreIcon.d.ts +0 -3
  230. package/dist/icons/StoreIcon.js +0 -21
  231. package/dist/icons/ThemeAutoIcon.d.ts +0 -3
  232. package/dist/icons/ThemeAutoIcon.js +0 -15
  233. package/dist/icons/ThemeDarkIcon.d.ts +0 -3
  234. package/dist/icons/ThemeDarkIcon.js +0 -14
  235. package/dist/icons/ThemeIcon.d.ts +0 -3
  236. package/dist/icons/ThemeIcon.js +0 -14
  237. package/dist/icons/ThemeLightIcon.d.ts +0 -3
  238. package/dist/icons/ThemeLightIcon.js +0 -15
  239. package/dist/icons/ThumbsDownIcon.d.ts +0 -3
  240. package/dist/icons/ThumbsDownIcon.js +0 -14
  241. package/dist/icons/ThumbsUpIcon.d.ts +0 -3
  242. package/dist/icons/ThumbsUpIcon.js +0 -14
  243. package/dist/icons/TokensIcon.d.ts +0 -3
  244. package/dist/icons/TokensIcon.js +0 -16
  245. package/dist/icons/TrashIcon.d.ts +0 -3
  246. package/dist/icons/TrashIcon.js +0 -14
  247. package/dist/icons/TriangleDownIcon.d.ts +0 -3
  248. package/dist/icons/TriangleDownIcon.js +0 -14
  249. package/dist/icons/TriangleLeftIcon.d.ts +0 -3
  250. package/dist/icons/TriangleLeftIcon.js +0 -14
  251. package/dist/icons/TriangleRightIcon.d.ts +0 -3
  252. package/dist/icons/TriangleRightIcon.js +0 -14
  253. package/dist/icons/TriangleUpIcon.d.ts +0 -3
  254. package/dist/icons/TriangleUpIcon.js +0 -14
  255. package/dist/icons/TwitchIcon.d.ts +0 -3
  256. package/dist/icons/TwitchIcon.js +0 -15
  257. package/dist/icons/TwitterIcon.d.ts +0 -3
  258. package/dist/icons/TwitterIcon.js +0 -14
  259. package/dist/icons/UndoIcon.d.ts +0 -3
  260. package/dist/icons/UndoIcon.js +0 -14
  261. package/dist/icons/UpdateIcon.d.ts +0 -3
  262. package/dist/icons/UpdateIcon.js +0 -15
  263. package/dist/icons/UpgradeIcon.d.ts +0 -3
  264. package/dist/icons/UpgradeIcon.js +0 -14
  265. package/dist/icons/UploadIcon.d.ts +0 -3
  266. package/dist/icons/UploadIcon.js +0 -15
  267. package/dist/icons/UserFilledIcon.d.ts +0 -3
  268. package/dist/icons/UserFilledIcon.js +0 -14
  269. package/dist/icons/UserIcon.d.ts +0 -3
  270. package/dist/icons/UserIcon.js +0 -14
  271. package/dist/icons/UsersFilledIcon.d.ts +0 -3
  272. package/dist/icons/UsersFilledIcon.js +0 -15
  273. package/dist/icons/UsersIcon.d.ts +0 -3
  274. package/dist/icons/UsersIcon.js +0 -15
  275. package/dist/icons/VersionIcon.d.ts +0 -3
  276. package/dist/icons/VersionIcon.js +0 -15
  277. package/dist/icons/WarningIcon.d.ts +0 -3
  278. package/dist/icons/WarningIcon.js +0 -14
  279. package/dist/icons/WrapLinesIcon.d.ts +0 -3
  280. package/dist/icons/WrapLinesIcon.js +0 -15
  281. package/dist/icons/XIcon.d.ts +0 -3
  282. package/dist/icons/XIcon.js +0 -14
  283. package/dist/icons/YoutubeIcon.d.ts +0 -3
  284. package/dist/icons/YoutubeIcon.js +0 -14
  285. package/dist/icons/index.d.ts +0 -130
  286. package/dist/icons/index.js +0 -265
  287. package/dist/logos/DocsLogo.js +0 -15
  288. package/dist/logos/ExpoGoLogo.js +0 -14
  289. package/dist/logos/Logo.js +0 -14
  290. package/dist/logos/SnackLogo.js +0 -15
  291. package/dist/logos/WordMarkLogo.js +0 -14
  292. package/dist/logos/index.js +0 -13
  293. package/dist/styles/breakpoints.d.ts +0 -5
  294. package/dist/styles/breakpoints.js +0 -8
  295. package/dist/styles/palette.d.ts +0 -200
  296. package/dist/styles/palette.js +0 -50
  297. package/dist/styles/shadows.js +0 -10
  298. package/dist/styles/sizing.d.ts +0 -19
  299. package/dist/styles/sizing.js +0 -22
  300. package/dist/styles/spacing.d.ts +0 -36
  301. package/dist/styles/spacing.js +0 -40
  302. package/dist/styles/themes.d.ts +0 -463
  303. package/dist/styles/themes.js +0 -467
  304. package/dist/styles/typography.js +0 -396
  305. package/dist/types/index.js +0 -2
package/tailwind.js CHANGED
@@ -1,158 +1,385 @@
1
- const {
2
- theme,
3
- borderRadius,
4
- shadows,
5
- breakpoints,
6
- } = require("@expo/styleguide");
7
-
8
- /** @type {import('tailwindcss').Config} */
9
- module.exports = {
1
+ const expoTailwindConfig = {
10
2
  theme: {
11
3
  borderRadius: {
12
- ...borderRadius,
13
- DEFAULT: borderRadius.md,
4
+ none: 0,
5
+ xs: 2,
6
+ sm: 4,
7
+ md: 6,
8
+ lg: 10,
9
+ xl: 16,
10
+ '2xl': 20,
11
+ '3xl': 24,
12
+ full: 9999,
13
+ },
14
+ backgroundColor: {
15
+ default: 'var(--expo-theme-background-default)',
16
+ screen: 'var(--expo-theme-background-screen)',
17
+ subtle: 'var(--expo-theme-background-subtle)',
18
+ element: 'var(--expo-theme-background-element)',
19
+ hover: 'var(--expo-theme-background-hover)',
20
+ selected: 'var(--expo-theme-background-selected)',
21
+ overlay: 'var(--expo-theme-background-overlay)',
22
+ success: 'var(--expo-theme-background-success)',
23
+ warning: 'var(--expo-theme-background-warning)',
24
+ danger: 'var(--expo-theme-background-danger)',
25
+ info: 'var(--expo-theme-background-info)',
26
+ },
27
+ borderColor: {
28
+ default: 'var(--expo-theme-border-default)',
29
+ secondary: 'var(--expo-theme-border-secondary)',
30
+ success: 'var(--expo-theme-border-success)',
31
+ warning: 'var(--expo-theme-border-warning)',
32
+ danger: 'var(--expo-theme-border-danger)',
33
+ info: 'var(--expo-theme-border-info)',
14
34
  },
15
- backgroundColor: theme.background,
16
- borderColor: theme.border,
17
35
  colors: {
18
- transparent: "transparent",
19
- current: "currentColor",
20
- default: theme.text.default,
21
- secondary: theme.text.secondary,
22
- tertiary: theme.text.tertiary,
23
- quaternary: theme.text.quaternary,
24
- success: theme.text.success,
25
- warning: theme.text.warning,
26
- danger: theme.text.danger,
27
- info: theme.text.info,
28
- ...theme,
36
+ transparent: 'transparent',
37
+ current: 'currentColor',
38
+ default: 'var(--expo-theme-text-default)',
39
+ secondary: 'var(--expo-theme-text-secondary)',
40
+ tertiary: 'var(--expo-theme-text-tertiary)',
41
+ quaternary: 'var(--expo-theme-text-quaternary)',
42
+ link: 'var(--expo-theme-text-link)',
43
+ success: 'var(--expo-theme-text-success)',
44
+ warning: 'var(--expo-theme-text-warning)',
45
+ danger: 'var(--expo-theme-text-danger)',
46
+ info: 'var(--expo-theme-text-info)',
47
+ background: {
48
+ default: 'var(--expo-theme-background-default)',
49
+ screen: 'var(--expo-theme-background-screen)',
50
+ subtle: 'var(--expo-theme-background-subtle)',
51
+ element: 'var(--expo-theme-background-element)',
52
+ hover: 'var(--expo-theme-background-hover)',
53
+ selected: 'var(--expo-theme-background-selected)',
54
+ overlay: 'var(--expo-theme-background-overlay)',
55
+ success: 'var(--expo-theme-background-success)',
56
+ warning: 'var(--expo-theme-background-warning)',
57
+ danger: 'var(--expo-theme-background-danger)',
58
+ info: 'var(--expo-theme-background-info)',
59
+ },
60
+ icon: {
61
+ default: 'var(--expo-theme-icon-default)',
62
+ secondary: 'var(--expo-theme-icon-secondary)',
63
+ tertiary: 'var(--expo-theme-icon-tertiary)',
64
+ quaternary: 'var(--expo-theme-icon-quaternary)',
65
+ success: 'var(--expo-theme-icon-success)',
66
+ warning: 'var(--expo-theme-icon-warning)',
67
+ danger: 'var(--expo-theme-icon-danger)',
68
+ info: 'var(--expo-theme-icon-info)',
69
+ },
70
+ text: {
71
+ default: 'var(--expo-theme-text-default)',
72
+ secondary: 'var(--expo-theme-text-secondary)',
73
+ tertiary: 'var(--expo-theme-text-tertiary)',
74
+ quaternary: 'var(--expo-theme-text-quaternary)',
75
+ link: 'var(--expo-theme-text-link)',
76
+ success: 'var(--expo-theme-text-success)',
77
+ warning: 'var(--expo-theme-text-warning)',
78
+ danger: 'var(--expo-theme-text-danger)',
79
+ info: 'var(--expo-theme-text-info)',
80
+ },
81
+ border: {
82
+ default: 'var(--expo-theme-border-default)',
83
+ secondary: 'var(--expo-theme-border-secondary)',
84
+ success: 'var(--expo-theme-border-success)',
85
+ warning: 'var(--expo-theme-border-warning)',
86
+ danger: 'var(--expo-theme-border-danger)',
87
+ info: 'var(--expo-theme-border-info)',
88
+ },
89
+ button: {
90
+ primary: {
91
+ background: 'var(--expo-theme-button-primary-background)',
92
+ border: 'var(--expo-theme-button-primary-border)',
93
+ hover: 'var(--expo-theme-button-primary-hover)',
94
+ icon: 'var(--expo-theme-button-primary-icon)',
95
+ text: 'var(--expo-theme-button-primary-text)',
96
+ disabled: {
97
+ background: 'var(--expo-theme-button-primary-disabled-background)',
98
+ border: 'var(--expo-theme-button-primary-disabled-border)',
99
+ text: 'var(--expo-theme-button-primary-disabled-text)',
100
+ },
101
+ destructive: {
102
+ background:
103
+ 'var(--expo-theme-button-primary-destructive-background)',
104
+ border: 'var(--expo-theme-button-primary-destructive-border)',
105
+ hover: 'var(--expo-theme-button-primary-destructive-hover)',
106
+ icon: 'var(--expo-theme-button-primary-destructive-icon)',
107
+ text: 'var(--expo-theme-button-primary-destructive-text)',
108
+ disabled: {
109
+ background:
110
+ 'var(--expo-theme-button-primary-destructive-disabled-background)',
111
+ border:
112
+ 'var(--expo-theme-button-primary-destructive-disabled-border)',
113
+ text: 'var(--expo-theme-button-primary-destructive-disabled-text)',
114
+ },
115
+ },
116
+ },
117
+ secondary: {
118
+ background: 'var(--expo-theme-button-secondary-background)',
119
+ border: 'var(--expo-theme-button-secondary-border)',
120
+ hover: 'var(--expo-theme-button-secondary-hover)',
121
+ icon: 'var(--expo-theme-button-secondary-icon)',
122
+ text: 'var(--expo-theme-button-secondary-text)',
123
+ disabled: {
124
+ background:
125
+ 'var(--expo-theme-button-secondary-disabled-background)',
126
+ border: 'var(--expo-theme-button-secondary-disabled-border)',
127
+ text: 'var(--expo-theme-button-secondary-disabled-text)',
128
+ },
129
+ destructive: {
130
+ background:
131
+ 'var(--expo-theme-button-secondary-destructive-background)',
132
+ border: 'var(--expo-theme-button-secondary-destructive-border)',
133
+ hover: 'var(--expo-theme-button-secondary-destructive-hover)',
134
+ icon: 'var(--expo-theme-button-secondary-destructive-icon)',
135
+ text: 'var(--expo-theme-button-secondary-destructive-text)',
136
+ disabled: {
137
+ background:
138
+ 'var(--expo-theme-button-secondary-destructive-disabled-background)',
139
+ border:
140
+ 'var(--expo-theme-button-secondary-destructive-disabled-border)',
141
+ text: 'var(--expo-theme-button-secondary-destructive-disabled-text)',
142
+ },
143
+ },
144
+ },
145
+ tertiary: {
146
+ background: 'var(--expo-theme-button-tertiary-background)',
147
+ border: 'var(--expo-theme-button-tertiary-border)',
148
+ hover: 'var(--expo-theme-button-tertiary-hover)',
149
+ icon: 'var(--expo-theme-button-tertiary-icon)',
150
+ text: 'var(--expo-theme-button-tertiary-text)',
151
+ disabled: {
152
+ background: 'var(--expo-theme-button-tertiary-disabled-background)',
153
+ border: 'var(--expo-theme-button-tertiary-disabled-border)',
154
+ text: 'var(--expo-theme-button-tertiary-disabled-text)',
155
+ },
156
+ },
157
+ quaternary: {
158
+ background: 'var(--expo-theme-button-quaternary-background)',
159
+ border: 'var(--expo-theme-button-quaternary-border)',
160
+ hover: 'var(--expo-theme-button-quaternary-hover)',
161
+ icon: 'var(--expo-theme-button-quaternary-icon)',
162
+ text: 'var(--expo-theme-button-quaternary-text)',
163
+ disabled: {
164
+ background:
165
+ 'var(--expo-theme-button-quaternary-disabled-background)',
166
+ border: 'var(--expo-theme-button-quaternary-disabled-border)',
167
+ text: 'var(--expo-theme-button-quaternary-disabled-text)',
168
+ },
169
+ },
170
+ },
171
+ project: {
172
+ blue: 'var(--expo-theme-project-blue)',
173
+ green: 'var(--expo-theme-project-green)',
174
+ yellow: 'var(--expo-theme-project-yellow)',
175
+ orange: 'var(--expo-theme-project-orange)',
176
+ red: 'var(--expo-theme-project-red)',
177
+ pink: 'var(--expo-theme-project-pink)',
178
+ purple: 'var(--expo-theme-project-purple)',
179
+ },
180
+ palette: {
181
+ white: 'var(--expo-color-white)',
182
+ black: 'var(--expo-color-black)',
183
+ green1: 'var(--green1)',
184
+ green2: 'var(--green2)',
185
+ green3: 'var(--green3)',
186
+ green4: 'var(--green4)',
187
+ green5: 'var(--green5)',
188
+ green6: 'var(--green6)',
189
+ green7: 'var(--green7)',
190
+ green8: 'var(--green8)',
191
+ green9: 'var(--green9)',
192
+ green10: 'var(--green10)',
193
+ green11: 'var(--green11)',
194
+ green12: 'var(--green12)',
195
+ purple1: 'var(--purple1)',
196
+ purple2: 'var(--purple2)',
197
+ purple3: 'var(--purple3)',
198
+ purple4: 'var(--purple4)',
199
+ purple5: 'var(--purple5)',
200
+ purple6: 'var(--purple6)',
201
+ purple7: 'var(--purple7)',
202
+ purple8: 'var(--purple8)',
203
+ purple9: 'var(--purple9)',
204
+ purple10: 'var(--purple10)',
205
+ purple11: 'var(--purple11)',
206
+ purple12: 'var(--purple12)',
207
+ pink1: 'var(--pink1)',
208
+ pink2: 'var(--pink2)',
209
+ pink3: 'var(--pink3)',
210
+ pink4: 'var(--pink4)',
211
+ pink5: 'var(--pink5)',
212
+ pink6: 'var(--pink6)',
213
+ pink7: 'var(--pink7)',
214
+ pink8: 'var(--pink8)',
215
+ pink9: 'var(--pink9)',
216
+ pink10: 'var(--pink10)',
217
+ pink11: 'var(--pink11)',
218
+ pink12: 'var(--pink12)',
219
+ orange1: 'var(--orange1)',
220
+ orange2: 'var(--orange2)',
221
+ orange3: 'var(--orange3)',
222
+ orange4: 'var(--orange4)',
223
+ orange5: 'var(--orange5)',
224
+ orange6: 'var(--orange6)',
225
+ orange7: 'var(--orange7)',
226
+ orange8: 'var(--orange8)',
227
+ orange9: 'var(--orange9)',
228
+ orange10: 'var(--orange10)',
229
+ orange11: 'var(--orange11)',
230
+ orange12: 'var(--orange12)',
231
+ yellow1: 'var(--yellow1)',
232
+ yellow2: 'var(--yellow2)',
233
+ yellow3: 'var(--yellow3)',
234
+ yellow4: 'var(--yellow4)',
235
+ yellow5: 'var(--yellow5)',
236
+ yellow6: 'var(--yellow6)',
237
+ yellow7: 'var(--yellow7)',
238
+ yellow8: 'var(--yellow8)',
239
+ yellow9: 'var(--yellow9)',
240
+ yellow10: 'var(--yellow10)',
241
+ yellow11: 'var(--yellow11)',
242
+ yellow12: 'var(--yellow12)',
243
+ blue1: 'var(--blue1)',
244
+ blue2: 'var(--blue2)',
245
+ blue3: 'var(--blue3)',
246
+ blue4: 'var(--blue4)',
247
+ blue5: 'var(--blue5)',
248
+ blue6: 'var(--blue6)',
249
+ blue7: 'var(--blue7)',
250
+ blue8: 'var(--blue8)',
251
+ blue9: 'var(--blue9)',
252
+ blue10: 'var(--blue10)',
253
+ blue11: 'var(--blue11)',
254
+ blue12: 'var(--blue12)',
255
+ red1: 'var(--red1)',
256
+ red2: 'var(--red2)',
257
+ red3: 'var(--red3)',
258
+ red4: 'var(--red4)',
259
+ red5: 'var(--red5)',
260
+ red6: 'var(--red6)',
261
+ red7: 'var(--red7)',
262
+ red8: 'var(--red8)',
263
+ red9: 'var(--red9)',
264
+ red10: 'var(--red10)',
265
+ red11: 'var(--red11)',
266
+ red12: 'var(--red12)',
267
+ gray1: 'var(--slate1)',
268
+ gray2: 'var(--slate2)',
269
+ gray3: 'var(--slate3)',
270
+ gray4: 'var(--slate4)',
271
+ gray5: 'var(--slate5)',
272
+ gray6: 'var(--slate6)',
273
+ gray7: 'var(--slate7)',
274
+ gray8: 'var(--slate8)',
275
+ gray9: 'var(--slate9)',
276
+ gray10: 'var(--slate10)',
277
+ gray11: 'var(--slate11)',
278
+ gray12: 'var(--slate12)',
279
+ },
29
280
  },
30
- boxShadow: shadows,
31
- fontFamily: {
32
- sans: [
33
- "Inter var",
34
- "ui-sans-serif",
35
- "system-ui",
36
- "-apple-system",
37
- "BlinkMacSystemFont",
38
- '"Segoe UI"',
39
- "Roboto",
40
- '"Helvetica Neue"',
41
- "Arial",
42
- '"Noto Sans"',
43
- "sans-serif",
44
- '"Apple Color Emoji"',
45
- '"Segoe UI Emoji"',
46
- '"Segoe UI Symbol"',
47
- '"Noto Color Emoji"',
48
- ],
49
- mono: [
50
- "Menlo",
51
- "ui-monospace",
52
- "SFMono-Regular",
53
- "Menlo",
54
- "Monaco",
55
- "Consolas",
56
- '"Liberation Mono"',
57
- '"Courier New"',
58
- "monospace",
59
- ],
281
+ boxShadow: {
282
+ none: 'var(--expo-theme-shadows-none)',
283
+ xs: 'var(--expo-theme-shadows-xs)',
284
+ sm: 'var(--expo-theme-shadows-sm)',
285
+ md: 'var(--expo-theme-shadows-md)',
286
+ lg: 'var(--expo-theme-shadows-lg)',
287
+ xl: 'var(--expo-theme-shadows-xl)',
60
288
  },
61
- // Based on Major Third (1.250) type scale.
62
- // Sizes calculated at: https://type-scale.com
289
+ fontFamily: {},
63
290
  fontSize: {
64
- "heading-5xl": [
65
- "calc(var(--expo-theme-heading-base-font-size) * 3.815)",
291
+ 'heading-5xl': [
292
+ 'calc(var(--expo-theme-heading-base-font-size) * 3.815)',
66
293
  {
67
294
  lineHeight: 1.2,
68
- letterSpacing: "-0.022rem",
295
+ letterSpacing: '-0.022rem',
69
296
  },
70
297
  ],
71
- "heading-4xl": [
72
- "calc(var(--expo-theme-heading-base-font-size) * 3.052)",
298
+ 'heading-4xl': [
299
+ 'calc(var(--expo-theme-heading-base-font-size) * 3.052)',
73
300
  {
74
301
  lineHeight: 1.2,
75
- letterSpacing: "-0.022rem",
302
+ letterSpacing: '-0.022rem',
76
303
  },
77
304
  ],
78
- "heading-3xl": [
79
- "calc(var(--expo-theme-heading-base-font-size) * 2.441)",
305
+ 'heading-3xl': [
306
+ 'calc(var(--expo-theme-heading-base-font-size) * 2.441)',
80
307
  {
81
308
  lineHeight: 1.3,
82
- letterSpacing: "-0.022rem",
309
+ letterSpacing: '-0.022rem',
83
310
  },
84
311
  ],
85
- "heading-2xl": [
86
- "calc(var(--expo-theme-heading-base-font-size) * 1.953)",
312
+ 'heading-2xl': [
313
+ 'calc(var(--expo-theme-heading-base-font-size) * 1.953)',
87
314
  {
88
315
  lineHeight: 1.4,
89
- letterSpacing: "-0.021rem",
316
+ letterSpacing: '-0.021rem',
90
317
  },
91
318
  ],
92
- "heading-xl": [
93
- "calc(var(--expo-theme-heading-base-font-size) * 1.563)",
319
+ 'heading-xl': [
320
+ 'calc(var(--expo-theme-heading-base-font-size) * 1.563)',
94
321
  {
95
322
  lineHeight: 1.5,
96
- letterSpacing: "-0.017rem",
323
+ letterSpacing: '-0.017rem',
97
324
  },
98
325
  ],
99
- "heading-lg": [
100
- "calc(var(--expo-theme-heading-base-font-size) * 1.25)",
326
+ 'heading-lg': [
327
+ 'calc(var(--expo-theme-heading-base-font-size) * 1.25)',
101
328
  {
102
329
  lineHeight: 1.5,
103
- letterSpacing: "-0.017rem",
330
+ letterSpacing: '-0.017rem',
104
331
  },
105
332
  ],
106
- "heading-base": [
107
- "calc(var(--expo-theme-heading-base-font-size) * 1)",
333
+ 'heading-base': [
334
+ 'calc(var(--expo-theme-heading-base-font-size) * 1)',
108
335
  {
109
336
  lineHeight: 1.625,
110
- letterSpacing: "-0.011rem",
337
+ letterSpacing: '-0.011rem',
111
338
  },
112
339
  ],
113
- "heading-sm": [
114
- "calc(var(--expo-theme-heading-base-font-size) * 0.8)",
340
+ 'heading-sm': [
341
+ 'calc(var(--expo-theme-heading-base-font-size) * 0.8)',
115
342
  {
116
343
  lineHeight: 1.615,
117
- letterSpacing: "-0.003rem",
344
+ letterSpacing: '-0.003rem',
118
345
  },
119
346
  ],
120
- "heading-xs": [
121
- "calc(var(--expo-theme-heading-base-font-size) * 0.64)",
347
+ 'heading-xs': [
348
+ 'calc(var(--expo-theme-heading-base-font-size) * 0.64)',
122
349
  {
123
350
  lineHeight: 1.58,
124
351
  },
125
352
  ],
126
353
  base: [
127
- "16px",
354
+ '16px',
128
355
  {
129
356
  lineHeight: 1.625,
130
- letterSpacing: "-0.011rem",
357
+ letterSpacing: '-0.011rem',
131
358
  },
132
359
  ],
133
360
  sm: [
134
- "15px",
361
+ '15px',
135
362
  {
136
363
  lineHeight: 1.6,
137
- letterSpacing: "-0.009rem",
364
+ letterSpacing: '-0.009rem',
138
365
  },
139
366
  ],
140
367
  xs: [
141
- "14px",
368
+ '14px',
142
369
  {
143
370
  lineHeight: 1.57,
144
- letterSpacing: "-0.006rem",
371
+ letterSpacing: '-0.006rem',
145
372
  },
146
373
  ],
147
- "2xs": [
148
- "13px",
374
+ '2xs': [
375
+ '13px',
149
376
  {
150
377
  lineHeight: 1.61,
151
- letterSpacing: "-0.003rem",
378
+ letterSpacing: '-0.003rem',
152
379
  },
153
380
  ],
154
- "3xs": [
155
- "12px",
381
+ '3xs': [
382
+ '12px',
156
383
  {
157
384
  lineHeight: 1.58,
158
385
  },
@@ -160,8 +387,10 @@ module.exports = {
160
387
  },
161
388
  },
162
389
  screens: {
163
- sm: `${breakpoints.small}px`,
164
- md: `${breakpoints.medium}px`,
165
- lg: `${breakpoints.large}px`,
390
+ small: 400,
391
+ medium: 900,
392
+ large: 1200,
166
393
  },
167
394
  };
395
+
396
+ module.exports = expoTailwindConfig;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BlockingSetInitialColorMode = exports.getInitialColorMode = exports.isLocalStorageAvailable = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- function isLocalStorageAvailable() {
9
- try {
10
- if (!window.localStorage || typeof window.localStorage === 'undefined') {
11
- return false;
12
- }
13
- window.localStorage.setItem('localStorage:test', 'value');
14
- if (window.localStorage.getItem('localStorage:test') !== 'value') {
15
- return false;
16
- }
17
- window.localStorage.removeItem('localStorage:test');
18
- return true;
19
- }
20
- catch {
21
- return false;
22
- }
23
- }
24
- exports.isLocalStorageAvailable = isLocalStorageAvailable;
25
- function getInitialColorMode() {
26
- if (isLocalStorageAvailable()) {
27
- const preference = window.localStorage.getItem('data-expo-theme');
28
- let hasPreference = typeof preference === 'string';
29
- if (hasPreference) {
30
- return preference;
31
- }
32
- }
33
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
34
- const systemPreference = typeof mql.matches === 'boolean';
35
- if (systemPreference) {
36
- return mql.matches ? 'dark' : 'light';
37
- }
38
- return 'light';
39
- }
40
- exports.getInitialColorMode = getInitialColorMode;
41
- function setInitialColorMode() {
42
- const colorMode = getInitialColorMode();
43
- // add HTML attribute if dark mode
44
- if (colorMode === 'dark') {
45
- document.documentElement.classList.add('dark-theme');
46
- }
47
- else {
48
- document.documentElement.classList.remove('dark-theme');
49
- }
50
- }
51
- // our function needs to be a string so that we can call it
52
- const blockingSetInitialColorMode = `(function() {
53
- ${isLocalStorageAvailable.toString()}
54
- ${getInitialColorMode.toString()}
55
- ${setInitialColorMode.toString()}
56
- setInitialColorMode();
57
- })()
58
- `;
59
- function BlockingSetInitialColorMode() {
60
- return (react_1.default.createElement("script", { dangerouslySetInnerHTML: {
61
- __html: blockingSetInitialColorMode,
62
- } }));
63
- }
64
- exports.BlockingSetInitialColorMode = BlockingSetInitialColorMode;