@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.
- package/LICENSE +2 -2
- package/README.md +9 -22
- package/dist/expo-theme.css +2 -0
- package/dist/index.d.ts +5 -13
- package/dist/index.js +701 -36
- package/dist/{components → src/components}/BlockingSetInitialColorMode.d.ts +0 -0
- package/dist/src/components/ButtonBase.d.ts +9 -0
- package/dist/{components → src/components}/ThemeProvider.d.ts +1 -1
- package/dist/src/components/index.d.ts +3 -0
- package/dist/{logos → src/logos}/DocsLogo.d.ts +0 -0
- package/dist/{logos → src/logos}/ExpoGoLogo.d.ts +0 -0
- package/dist/{logos → src/logos}/Logo.d.ts +0 -0
- package/dist/{logos → src/logos}/SnackLogo.d.ts +0 -0
- package/dist/{logos → src/logos}/WordMarkLogo.d.ts +0 -0
- package/dist/{logos → src/logos}/index.d.ts +0 -0
- package/dist/{styles → src/styles}/shadows.d.ts +1 -0
- package/dist/src/styles/themes.d.ts +227 -0
- package/dist/{styles → src/styles}/typography.d.ts +7 -53
- package/dist/{types → src/types}/index.d.ts +1 -1
- package/dist/tailwind.js +396 -0
- package/package.json +21 -19
- package/tailwind.js +325 -96
- package/dist/components/BlockingSetInitialColorMode.js +0 -64
- package/dist/components/ThemeProvider.js +0 -139
- package/dist/icons/ActivityIcon.d.ts +0 -3
- package/dist/icons/ActivityIcon.js +0 -14
- package/dist/icons/AddPhotoIcon.d.ts +0 -3
- package/dist/icons/AddPhotoIcon.js +0 -14
- package/dist/icons/AndroidIcon.d.ts +0 -3
- package/dist/icons/AndroidIcon.js +0 -14
- package/dist/icons/AppleAppStoreIcon.d.ts +0 -3
- package/dist/icons/AppleAppStoreIcon.js +0 -16
- package/dist/icons/AppleIcon.d.ts +0 -3
- package/dist/icons/AppleIcon.js +0 -14
- package/dist/icons/AppleSimulatorIcon.d.ts +0 -3
- package/dist/icons/AppleSimulatorIcon.js +0 -18
- package/dist/icons/ArrowDownIcon.d.ts +0 -3
- package/dist/icons/ArrowDownIcon.js +0 -14
- package/dist/icons/ArrowLeftIcon.d.ts +0 -3
- package/dist/icons/ArrowLeftIcon.js +0 -14
- package/dist/icons/ArrowRightIcon.d.ts +0 -3
- package/dist/icons/ArrowRightIcon.js +0 -14
- package/dist/icons/ArrowUpIcon.d.ts +0 -3
- package/dist/icons/ArrowUpIcon.js +0 -14
- package/dist/icons/ArrowUpRightIcon.d.ts +0 -3
- package/dist/icons/ArrowUpRightIcon.js +0 -14
- package/dist/icons/AtSignIcon.d.ts +0 -3
- package/dist/icons/AtSignIcon.js +0 -14
- package/dist/icons/BadgeIcon.d.ts +0 -3
- package/dist/icons/BadgeIcon.js +0 -15
- package/dist/icons/BellIcon.d.ts +0 -3
- package/dist/icons/BellIcon.js +0 -14
- package/dist/icons/BranchIcon.d.ts +0 -3
- package/dist/icons/BranchIcon.js +0 -14
- package/dist/icons/BugInspectIcon.d.ts +0 -3
- package/dist/icons/BugInspectIcon.js +0 -16
- package/dist/icons/BuildIcon.d.ts +0 -3
- package/dist/icons/BuildIcon.js +0 -14
- package/dist/icons/BuildNumberIcon.d.ts +0 -3
- package/dist/icons/BuildNumberIcon.js +0 -14
- package/dist/icons/BuildProfileIcon.d.ts +0 -3
- package/dist/icons/BuildProfileIcon.js +0 -14
- package/dist/icons/ChangelogIcon.d.ts +0 -3
- package/dist/icons/ChangelogIcon.js +0 -15
- package/dist/icons/ChannelIcon.d.ts +0 -3
- package/dist/icons/ChannelIcon.js +0 -15
- package/dist/icons/ChartIcon.d.ts +0 -3
- package/dist/icons/ChartIcon.js +0 -15
- package/dist/icons/CheckIcon.d.ts +0 -3
- package/dist/icons/CheckIcon.js +0 -14
- package/dist/icons/ChevronDownIcon.d.ts +0 -3
- package/dist/icons/ChevronDownIcon.js +0 -14
- package/dist/icons/ChevronLeftIcon.d.ts +0 -3
- package/dist/icons/ChevronLeftIcon.js +0 -14
- package/dist/icons/ChevronRightIcon.d.ts +0 -3
- package/dist/icons/ChevronRightIcon.js +0 -14
- package/dist/icons/ChevronUpIcon.d.ts +0 -3
- package/dist/icons/ChevronUpIcon.js +0 -14
- package/dist/icons/ClipboardIcon.d.ts +0 -3
- package/dist/icons/ClipboardIcon.js +0 -16
- package/dist/icons/CloudSlashIcon.d.ts +0 -3
- package/dist/icons/CloudSlashIcon.js +0 -14
- package/dist/icons/CodeIcon.d.ts +0 -3
- package/dist/icons/CodeIcon.js +0 -14
- package/dist/icons/CommandLineIcon.d.ts +0 -3
- package/dist/icons/CommandLineIcon.js +0 -14
- package/dist/icons/CommitIcon.d.ts +0 -3
- package/dist/icons/CommitIcon.js +0 -14
- package/dist/icons/CredentialIcon.d.ts +0 -3
- package/dist/icons/CredentialIcon.js +0 -16
- package/dist/icons/CreditCardIcon.d.ts +0 -3
- package/dist/icons/CreditCardIcon.js +0 -15
- package/dist/icons/DatabaseIcon.d.ts +0 -3
- package/dist/icons/DatabaseIcon.js +0 -15
- package/dist/icons/DebugIcon.d.ts +0 -3
- package/dist/icons/DebugIcon.js +0 -15
- package/dist/icons/DeploymentIcon.d.ts +0 -3
- package/dist/icons/DeploymentIcon.js +0 -14
- package/dist/icons/DeploymentsIcon.d.ts +0 -3
- package/dist/icons/DeploymentsIcon.js +0 -17
- package/dist/icons/DiscordIcon.d.ts +0 -3
- package/dist/icons/DiscordIcon.js +0 -14
- package/dist/icons/DiscourseIcon.d.ts +0 -3
- package/dist/icons/DiscourseIcon.js +0 -14
- package/dist/icons/DownloadIcon.d.ts +0 -3
- package/dist/icons/DownloadIcon.js +0 -15
- package/dist/icons/EasMetadataIcon.d.ts +0 -3
- package/dist/icons/EasMetadataIcon.js +0 -21
- package/dist/icons/EasSubmitIcon.d.ts +0 -3
- package/dist/icons/EasSubmitIcon.js +0 -21
- package/dist/icons/EditIcon.d.ts +0 -3
- package/dist/icons/EditIcon.js +0 -19
- package/dist/icons/ErrorIcon.d.ts +0 -3
- package/dist/icons/ErrorIcon.js +0 -14
- package/dist/icons/FacebookIcon.d.ts +0 -3
- package/dist/icons/FacebookIcon.js +0 -14
- package/dist/icons/GeneralIcon.d.ts +0 -3
- package/dist/icons/GeneralIcon.js +0 -25
- package/dist/icons/GithubIcon.d.ts +0 -3
- package/dist/icons/GithubIcon.js +0 -14
- package/dist/icons/GoogleAppStoreIcon.d.ts +0 -3
- package/dist/icons/GoogleAppStoreIcon.js +0 -14
- package/dist/icons/HamburgerIcon.d.ts +0 -3
- package/dist/icons/HamburgerIcon.js +0 -14
- package/dist/icons/HeadsetIcon.d.ts +0 -3
- package/dist/icons/HeadsetIcon.js +0 -18
- package/dist/icons/HomeFilledIcon.d.ts +0 -3
- package/dist/icons/HomeFilledIcon.js +0 -14
- package/dist/icons/HomeIcon.d.ts +0 -3
- package/dist/icons/HomeIcon.js +0 -14
- package/dist/icons/InfoIcon.d.ts +0 -3
- package/dist/icons/InfoIcon.js +0 -14
- package/dist/icons/InspectElementIcon.d.ts +0 -3
- package/dist/icons/InspectElementIcon.js +0 -15
- package/dist/icons/InstagramIcon.d.ts +0 -3
- package/dist/icons/InstagramIcon.js +0 -14
- package/dist/icons/InvoicesIcon.d.ts +0 -3
- package/dist/icons/InvoicesIcon.js +0 -15
- package/dist/icons/LifebuoyIcon.d.ts +0 -3
- package/dist/icons/LifebuoyIcon.js +0 -14
- package/dist/icons/LockIcon.d.ts +0 -3
- package/dist/icons/LockIcon.js +0 -14
- package/dist/icons/LogoutMobileIcon.d.ts +0 -3
- package/dist/icons/LogoutMobileIcon.js +0 -15
- package/dist/icons/LogsIcon.d.ts +0 -3
- package/dist/icons/LogsIcon.js +0 -16
- package/dist/icons/MailIcon.d.ts +0 -3
- package/dist/icons/MailIcon.js +0 -14
- package/dist/icons/MegaphoneIcon.d.ts +0 -3
- package/dist/icons/MegaphoneIcon.js +0 -15
- package/dist/icons/MessageIcon.d.ts +0 -3
- package/dist/icons/MessageIcon.js +0 -14
- package/dist/icons/MoreHorizontalIcon.d.ts +0 -3
- package/dist/icons/MoreHorizontalIcon.js +0 -16
- package/dist/icons/MoreVerticalIcon.d.ts +0 -3
- package/dist/icons/MoreVerticalIcon.js +0 -16
- package/dist/icons/OneTimePasswordIcon.d.ts +0 -3
- package/dist/icons/OneTimePasswordIcon.js +0 -16
- package/dist/icons/OpenInternalIcon.d.ts +0 -3
- package/dist/icons/OpenInternalIcon.js +0 -15
- package/dist/icons/OrganizationIcon.d.ts +0 -3
- package/dist/icons/OrganizationIcon.js +0 -15
- package/dist/icons/OverviewIcon.d.ts +0 -3
- package/dist/icons/OverviewIcon.js +0 -14
- package/dist/icons/PerformanceIcon.d.ts +0 -3
- package/dist/icons/PerformanceIcon.js +0 -15
- package/dist/icons/PersonalTrainerIcon.d.ts +0 -3
- package/dist/icons/PersonalTrainerIcon.js +0 -14
- package/dist/icons/PinIcon.d.ts +0 -3
- package/dist/icons/PinIcon.js +0 -14
- package/dist/icons/PlanEnterpriseIcon.d.ts +0 -3
- package/dist/icons/PlanEnterpriseIcon.js +0 -14
- package/dist/icons/PlanFreeIcon.d.ts +0 -3
- package/dist/icons/PlanFreeIcon.js +0 -14
- package/dist/icons/PlanProductionIcon.d.ts +0 -3
- package/dist/icons/PlanProductionIcon.js +0 -15
- package/dist/icons/PlansIcon.d.ts +0 -3
- package/dist/icons/PlansIcon.js +0 -15
- package/dist/icons/PlusIcon.d.ts +0 -3
- package/dist/icons/PlusIcon.js +0 -14
- package/dist/icons/PrivacyIcon.d.ts +0 -3
- package/dist/icons/PrivacyIcon.js +0 -14
- package/dist/icons/ProjectTransferIcon.d.ts +0 -3
- package/dist/icons/ProjectTransferIcon.js +0 -15
- package/dist/icons/PushToDeviceIcon.d.ts +0 -3
- package/dist/icons/PushToDeviceIcon.js +0 -17
- package/dist/icons/QrCodeIcon.d.ts +0 -3
- package/dist/icons/QrCodeIcon.js +0 -18
- package/dist/icons/QuestionIcon.d.ts +0 -3
- package/dist/icons/QuestionIcon.js +0 -14
- package/dist/icons/QuestionMarkIcon.d.ts +0 -3
- package/dist/icons/QuestionMarkIcon.js +0 -14
- package/dist/icons/ReceiptIcon.d.ts +0 -3
- package/dist/icons/ReceiptIcon.js +0 -15
- package/dist/icons/RedditIcon.d.ts +0 -3
- package/dist/icons/RedditIcon.js +0 -14
- package/dist/icons/RefreshIcon.d.ts +0 -3
- package/dist/icons/RefreshIcon.js +0 -17
- package/dist/icons/RolloutIcon.d.ts +0 -3
- package/dist/icons/RolloutIcon.js +0 -15
- package/dist/icons/RunIcon.d.ts +0 -3
- package/dist/icons/RunIcon.js +0 -15
- package/dist/icons/RuntimeVersionIcon.d.ts +0 -3
- package/dist/icons/RuntimeVersionIcon.js +0 -14
- package/dist/icons/ScanIcon.d.ts +0 -3
- package/dist/icons/ScanIcon.js +0 -15
- package/dist/icons/SearchIcon.d.ts +0 -3
- package/dist/icons/SearchIcon.js +0 -15
- package/dist/icons/SecretsIcon.d.ts +0 -3
- package/dist/icons/SecretsIcon.js +0 -14
- package/dist/icons/SettingsFilledIcon.d.ts +0 -3
- package/dist/icons/SettingsFilledIcon.js +0 -14
- package/dist/icons/SettingsIcon.d.ts +0 -3
- package/dist/icons/SettingsIcon.js +0 -14
- package/dist/icons/SlashShortcutIcon.d.ts +0 -3
- package/dist/icons/SlashShortcutIcon.js +0 -14
- package/dist/icons/SparklesIcon.d.ts +0 -3
- package/dist/icons/SparklesIcon.js +0 -14
- package/dist/icons/StatusCanceledIcon.d.ts +0 -3
- package/dist/icons/StatusCanceledIcon.js +0 -14
- package/dist/icons/StatusFailedIcon.d.ts +0 -3
- package/dist/icons/StatusFailedIcon.js +0 -14
- package/dist/icons/StatusNewIcon.d.ts +0 -3
- package/dist/icons/StatusNewIcon.js +0 -15
- package/dist/icons/StatusSuccessIcon.d.ts +0 -3
- package/dist/icons/StatusSuccessIcon.js +0 -14
- package/dist/icons/StatusWaitingIcon.d.ts +0 -3
- package/dist/icons/StatusWaitingIcon.js +0 -14
- package/dist/icons/StoreIcon.d.ts +0 -3
- package/dist/icons/StoreIcon.js +0 -21
- package/dist/icons/ThemeAutoIcon.d.ts +0 -3
- package/dist/icons/ThemeAutoIcon.js +0 -15
- package/dist/icons/ThemeDarkIcon.d.ts +0 -3
- package/dist/icons/ThemeDarkIcon.js +0 -14
- package/dist/icons/ThemeIcon.d.ts +0 -3
- package/dist/icons/ThemeIcon.js +0 -14
- package/dist/icons/ThemeLightIcon.d.ts +0 -3
- package/dist/icons/ThemeLightIcon.js +0 -15
- package/dist/icons/ThumbsDownIcon.d.ts +0 -3
- package/dist/icons/ThumbsDownIcon.js +0 -14
- package/dist/icons/ThumbsUpIcon.d.ts +0 -3
- package/dist/icons/ThumbsUpIcon.js +0 -14
- package/dist/icons/TokensIcon.d.ts +0 -3
- package/dist/icons/TokensIcon.js +0 -16
- package/dist/icons/TrashIcon.d.ts +0 -3
- package/dist/icons/TrashIcon.js +0 -14
- package/dist/icons/TriangleDownIcon.d.ts +0 -3
- package/dist/icons/TriangleDownIcon.js +0 -14
- package/dist/icons/TriangleLeftIcon.d.ts +0 -3
- package/dist/icons/TriangleLeftIcon.js +0 -14
- package/dist/icons/TriangleRightIcon.d.ts +0 -3
- package/dist/icons/TriangleRightIcon.js +0 -14
- package/dist/icons/TriangleUpIcon.d.ts +0 -3
- package/dist/icons/TriangleUpIcon.js +0 -14
- package/dist/icons/TwitchIcon.d.ts +0 -3
- package/dist/icons/TwitchIcon.js +0 -15
- package/dist/icons/TwitterIcon.d.ts +0 -3
- package/dist/icons/TwitterIcon.js +0 -14
- package/dist/icons/UndoIcon.d.ts +0 -3
- package/dist/icons/UndoIcon.js +0 -14
- package/dist/icons/UpdateIcon.d.ts +0 -3
- package/dist/icons/UpdateIcon.js +0 -15
- package/dist/icons/UpgradeIcon.d.ts +0 -3
- package/dist/icons/UpgradeIcon.js +0 -14
- package/dist/icons/UploadIcon.d.ts +0 -3
- package/dist/icons/UploadIcon.js +0 -15
- package/dist/icons/UserFilledIcon.d.ts +0 -3
- package/dist/icons/UserFilledIcon.js +0 -14
- package/dist/icons/UserIcon.d.ts +0 -3
- package/dist/icons/UserIcon.js +0 -14
- package/dist/icons/UsersFilledIcon.d.ts +0 -3
- package/dist/icons/UsersFilledIcon.js +0 -15
- package/dist/icons/UsersIcon.d.ts +0 -3
- package/dist/icons/UsersIcon.js +0 -15
- package/dist/icons/VersionIcon.d.ts +0 -3
- package/dist/icons/VersionIcon.js +0 -15
- package/dist/icons/WarningIcon.d.ts +0 -3
- package/dist/icons/WarningIcon.js +0 -14
- package/dist/icons/WrapLinesIcon.d.ts +0 -3
- package/dist/icons/WrapLinesIcon.js +0 -15
- package/dist/icons/XIcon.d.ts +0 -3
- package/dist/icons/XIcon.js +0 -14
- package/dist/icons/YoutubeIcon.d.ts +0 -3
- package/dist/icons/YoutubeIcon.js +0 -14
- package/dist/icons/index.d.ts +0 -130
- package/dist/icons/index.js +0 -265
- package/dist/logos/DocsLogo.js +0 -15
- package/dist/logos/ExpoGoLogo.js +0 -14
- package/dist/logos/Logo.js +0 -14
- package/dist/logos/SnackLogo.js +0 -15
- package/dist/logos/WordMarkLogo.js +0 -14
- package/dist/logos/index.js +0 -13
- package/dist/styles/breakpoints.d.ts +0 -5
- package/dist/styles/breakpoints.js +0 -8
- package/dist/styles/palette.d.ts +0 -200
- package/dist/styles/palette.js +0 -50
- package/dist/styles/shadows.js +0 -10
- package/dist/styles/sizing.d.ts +0 -19
- package/dist/styles/sizing.js +0 -22
- package/dist/styles/spacing.d.ts +0 -36
- package/dist/styles/spacing.js +0 -40
- package/dist/styles/themes.d.ts +0 -463
- package/dist/styles/themes.js +0 -467
- package/dist/styles/typography.js +0 -396
- package/dist/types/index.js +0 -2
package/dist/tailwind.js
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
const expoTailwindConfig = {
|
|
2
|
+
theme: {
|
|
3
|
+
borderRadius: {
|
|
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)',
|
|
34
|
+
},
|
|
35
|
+
colors: {
|
|
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
|
+
},
|
|
280
|
+
},
|
|
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)',
|
|
288
|
+
},
|
|
289
|
+
fontFamily: {},
|
|
290
|
+
fontSize: {
|
|
291
|
+
'heading-5xl': [
|
|
292
|
+
'calc(var(--expo-theme-heading-base-font-size) * 3.815)',
|
|
293
|
+
{
|
|
294
|
+
lineHeight: 1.2,
|
|
295
|
+
letterSpacing: '-0.022rem',
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
'heading-4xl': [
|
|
299
|
+
'calc(var(--expo-theme-heading-base-font-size) * 3.052)',
|
|
300
|
+
{
|
|
301
|
+
lineHeight: 1.2,
|
|
302
|
+
letterSpacing: '-0.022rem',
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
'heading-3xl': [
|
|
306
|
+
'calc(var(--expo-theme-heading-base-font-size) * 2.441)',
|
|
307
|
+
{
|
|
308
|
+
lineHeight: 1.3,
|
|
309
|
+
letterSpacing: '-0.022rem',
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
'heading-2xl': [
|
|
313
|
+
'calc(var(--expo-theme-heading-base-font-size) * 1.953)',
|
|
314
|
+
{
|
|
315
|
+
lineHeight: 1.4,
|
|
316
|
+
letterSpacing: '-0.021rem',
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
'heading-xl': [
|
|
320
|
+
'calc(var(--expo-theme-heading-base-font-size) * 1.563)',
|
|
321
|
+
{
|
|
322
|
+
lineHeight: 1.5,
|
|
323
|
+
letterSpacing: '-0.017rem',
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
'heading-lg': [
|
|
327
|
+
'calc(var(--expo-theme-heading-base-font-size) * 1.25)',
|
|
328
|
+
{
|
|
329
|
+
lineHeight: 1.5,
|
|
330
|
+
letterSpacing: '-0.017rem',
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
'heading-base': [
|
|
334
|
+
'calc(var(--expo-theme-heading-base-font-size) * 1)',
|
|
335
|
+
{
|
|
336
|
+
lineHeight: 1.625,
|
|
337
|
+
letterSpacing: '-0.011rem',
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
'heading-sm': [
|
|
341
|
+
'calc(var(--expo-theme-heading-base-font-size) * 0.8)',
|
|
342
|
+
{
|
|
343
|
+
lineHeight: 1.615,
|
|
344
|
+
letterSpacing: '-0.003rem',
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
'heading-xs': [
|
|
348
|
+
'calc(var(--expo-theme-heading-base-font-size) * 0.64)',
|
|
349
|
+
{
|
|
350
|
+
lineHeight: 1.58,
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
base: [
|
|
354
|
+
'16px',
|
|
355
|
+
{
|
|
356
|
+
lineHeight: 1.625,
|
|
357
|
+
letterSpacing: '-0.011rem',
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
sm: [
|
|
361
|
+
'15px',
|
|
362
|
+
{
|
|
363
|
+
lineHeight: 1.6,
|
|
364
|
+
letterSpacing: '-0.009rem',
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
xs: [
|
|
368
|
+
'14px',
|
|
369
|
+
{
|
|
370
|
+
lineHeight: 1.57,
|
|
371
|
+
letterSpacing: '-0.006rem',
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
'2xs': [
|
|
375
|
+
'13px',
|
|
376
|
+
{
|
|
377
|
+
lineHeight: 1.61,
|
|
378
|
+
letterSpacing: '-0.003rem',
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
'3xs': [
|
|
382
|
+
'12px',
|
|
383
|
+
{
|
|
384
|
+
lineHeight: 1.58,
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
screens: {
|
|
390
|
+
small: 400,
|
|
391
|
+
medium: 900,
|
|
392
|
+
large: 1200,
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
module.exports = expoTailwindConfig;
|
package/package.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "8.0.0-alpha.0",
|
|
4
|
+
"description": "Expo's styleguide components for use on the web.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"clean": "rimraf ./dist",
|
|
9
|
-
"include-theme-css": "copyfiles --flat ./src/styles/expo-theme.css ./dist",
|
|
10
|
-
"build:icons": "rimraf ./src/icons && svgr ../../common/svg --config-file ./svgr-icon-config.js --out-dir ./src/icons --index-template ./svgr-index-template.js",
|
|
11
|
-
"build:logos": "rimraf ./src/logos && svgr ../../common/logos --config-file ./svgr-logo-config.js --out-dir ./src/logos --index-template ./svgr-index-template.js",
|
|
12
|
-
"build": "yarn build:icons && yarn build:logos && yarn clean && yarn tsc && yarn include-theme-css",
|
|
13
|
-
"dev": "yarn tsc -w"
|
|
14
|
-
},
|
|
15
7
|
"files": [
|
|
16
8
|
"dist",
|
|
17
9
|
"tailwind.js"
|
|
18
10
|
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"clean": "rimraf dist",
|
|
13
|
+
"bundle": "rollup --config",
|
|
14
|
+
"build": "run-s clean bundle",
|
|
15
|
+
"dev": "rollup --config --watch"
|
|
16
|
+
},
|
|
19
17
|
"homepage": "https://github.com/expo/styleguide",
|
|
20
18
|
"repository": {
|
|
21
19
|
"type": "git",
|
|
@@ -31,19 +29,23 @@
|
|
|
31
29
|
"url": "https://github.com/expo/styleguide/issues"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@types/react": "^
|
|
37
|
-
"
|
|
38
|
-
"rimraf": "^
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
33
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
34
|
+
"@types/react": "^18.0.28",
|
|
35
|
+
"npm-run-all": "^4.1.5",
|
|
36
|
+
"rimraf": "^4.1.2",
|
|
37
|
+
"rollup": "^3.15.0",
|
|
38
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
39
39
|
"tailwindcss": "^3.1.8",
|
|
40
40
|
"typescript": "^4.2.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react": "
|
|
43
|
+
"react": ">= 16"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "94bfdec4905cfc8fa2c2540ed672219ec6949246",
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@
|
|
48
|
-
|
|
46
|
+
"@expo/styleguide-base": "^1.0.0-alpha.0",
|
|
47
|
+
"@radix-ui/colors": "^0.1.8",
|
|
48
|
+
"tailwind-merge": "^1.9.1"
|
|
49
|
+
},
|
|
50
|
+
"gitHead": "8d0008658bbe60cde729660ca15cfc7aa6fd1373"
|
|
49
51
|
}
|