@expo/styleguide 4.2.0 → 4.4.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/README.md +9 -0
- package/dist/expo-theme.css +16 -1
- package/dist/icons/ChangelogIcon.d.ts +3 -0
- package/dist/icons/ChangelogIcon.js +15 -0
- package/dist/icons/MoreHorizontalIcon.d.ts +3 -0
- package/dist/icons/MoreHorizontalIcon.js +16 -0
- package/dist/icons/MoreVerticalIcon.d.ts +3 -0
- package/dist/icons/MoreVerticalIcon.js +16 -0
- package/dist/icons/OrganizationIcon.d.ts +3 -0
- package/dist/icons/OrganizationIcon.js +15 -0
- package/dist/icons/WrapLinesIcon.d.ts +3 -0
- package/dist/icons/WrapLinesIcon.js +15 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/index.js +13 -3
- package/package.json +4 -2
- package/tailwind.js +166 -0
package/README.md
CHANGED
|
@@ -19,3 +19,12 @@ Then in a React component:
|
|
|
19
19
|
```tsx
|
|
20
20
|
import { colors, shadows, ... } from "@expo/styleguide";
|
|
21
21
|
```
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Changing styles in tailwind.config
|
|
25
|
+
|
|
26
|
+
In order to see changes made to the exported `tailwind.js` config:
|
|
27
|
+
|
|
28
|
+
- Change a value in `packages/styleguide/tailwind.js`
|
|
29
|
+
- Run yarn tsc in `packages/styleguide`
|
|
30
|
+
- Navigate to `examples/web` and restart the dev server
|
package/dist/expo-theme.css
CHANGED
|
@@ -367,9 +367,12 @@
|
|
|
367
367
|
--expo-theme-shadows-button: var(--expo-theme-shadows-micro);
|
|
368
368
|
--expo-theme-shadows-input: var(--expo-theme-shadows-micro);
|
|
369
369
|
--expo-theme-shadows-popover: var(--expo-theme-shadows-small);
|
|
370
|
+
|
|
371
|
+
/* Heading Font sizing */
|
|
372
|
+
--expo-theme-heading-base-font-size: 12px;
|
|
370
373
|
}
|
|
371
374
|
|
|
372
|
-
[data-expo-theme=
|
|
375
|
+
[data-expo-theme="dark"] {
|
|
373
376
|
/* Dark theme */
|
|
374
377
|
--expo-theme-palette-gray-000: #0b0f13;
|
|
375
378
|
--expo-theme-palette-gray-100: #14191f;
|
|
@@ -544,3 +547,15 @@
|
|
|
544
547
|
0 5px 10px rgba(0, 0, 0, 0.25);
|
|
545
548
|
--expo-theme-shadows-large: 0 20px 40px rgba(0, 0, 0, 0.5);
|
|
546
549
|
}
|
|
550
|
+
|
|
551
|
+
@media (min-width: 401px) {
|
|
552
|
+
:root {
|
|
553
|
+
--expo-theme-heading-base-font-size: 14px;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
@media (min-width: 901px) {
|
|
558
|
+
:root {
|
|
559
|
+
--expo-theme-heading-base-font-size: 16px;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.ChangelogIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function ChangelogIcon(props) {
|
|
9
|
+
const { title = "Changelog-icon", size, color, width, height, titleId, } = props;
|
|
10
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", width: size || width || "20px", height: size || height || "20px", role: "img", "aria-labelledby": titleId }, props),
|
|
11
|
+
title ? react_1.default.createElement("title", { id: titleId }, title) : null,
|
|
12
|
+
react_1.default.createElement("path", { d: "M2.5 12.857h15m-15 4.286h15", stroke: color || "var(--expo-theme-icon-default)", strokeWidth: 2.143, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M16.071 2.857H3.93c-.79 0-1.429.64-1.429 1.429v2.857c0 .789.64 1.428 1.429 1.428h12.14c.79 0 1.429-.64 1.429-1.428V4.286c0-.79-.64-1.429-1.429-1.429z", stroke: color || "var(--expo-theme-icon-default)", strokeWidth: 2.143 })));
|
|
14
|
+
}
|
|
15
|
+
exports.ChangelogIcon = ChangelogIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
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.MoreHorizontalIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function MoreHorizontalIcon(props) {
|
|
9
|
+
const { title = "More-horizontal-icon", size, color, width, height, titleId, } = props;
|
|
10
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", width: size || width || "20px", height: size || height || "20px", role: "img", "aria-labelledby": titleId }, props),
|
|
11
|
+
title ? react_1.default.createElement("title", { id: titleId }, title) : null,
|
|
12
|
+
react_1.default.createElement("circle", { cx: 4.167, cy: 10, r: 1.741, fill: color || "var(--expo-theme-icon-default)" }),
|
|
13
|
+
react_1.default.createElement("circle", { cx: 10, cy: 10, r: 1.741, fill: color || "var(--expo-theme-icon-default)" }),
|
|
14
|
+
react_1.default.createElement("circle", { cx: 15.833, cy: 10, r: 1.741, fill: color || "var(--expo-theme-icon-default)" })));
|
|
15
|
+
}
|
|
16
|
+
exports.MoreHorizontalIcon = MoreHorizontalIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
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.MoreVerticalIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function MoreVerticalIcon(props) {
|
|
9
|
+
const { title = "More-vertical-icon", size, color, width, height, titleId, } = props;
|
|
10
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", width: size || width || "20px", height: size || height || "20px", role: "img", "aria-labelledby": titleId }, props),
|
|
11
|
+
title ? react_1.default.createElement("title", { id: titleId }, title) : null,
|
|
12
|
+
react_1.default.createElement("circle", { cx: 10, cy: 15.833, r: 1.741, transform: "rotate(-90 10 15.833)", fill: color || "var(--expo-theme-icon-default)" }),
|
|
13
|
+
react_1.default.createElement("circle", { cx: 10, cy: 10, r: 1.741, transform: "rotate(-90 10 10)", fill: color || "var(--expo-theme-icon-default)" }),
|
|
14
|
+
react_1.default.createElement("circle", { cx: 10, cy: 4.167, r: 1.741, transform: "rotate(-90 10 4.167)", fill: color || "var(--expo-theme-icon-default)" })));
|
|
15
|
+
}
|
|
16
|
+
exports.MoreVerticalIcon = MoreVerticalIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
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.OrganizationIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function OrganizationIcon(props) {
|
|
9
|
+
const { title = "Organization-icon", size, color, width, height, titleId, } = props;
|
|
10
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", width: size || width || "20px", height: size || height || "20px", role: "img", "aria-labelledby": titleId }, props),
|
|
11
|
+
title ? react_1.default.createElement("title", { id: titleId }, title) : null,
|
|
12
|
+
react_1.default.createElement("path", { d: "M3.199 7.163H2a2 2 0 00-2 2V20h3.198V7.163zm13.603 0H18a2 2 0 012 2V20h-3.198V7.163z", fill: color || "var(--expo-theme-icon-default)" }),
|
|
13
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.21 2a2 2 0 012-2h7.58a2 2 0 012 2v18H4.21V2zm2.656 1.44h2.255v2.25H6.866V3.44zm6.28 0h-2.255v2.25h2.255V3.44zm-2.255 3.723h2.255v2.25h-2.255v-2.25zm-1.783 0H6.854v2.25h2.254v-2.25zm1.783 3.722h2.255v2.25h-2.255v-2.25zm-1.783 0H6.854v2.25h2.254v-2.25z", fill: color || "var(--expo-theme-icon-default)" })));
|
|
14
|
+
}
|
|
15
|
+
exports.OrganizationIcon = OrganizationIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
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.WrapLinesIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
function WrapLinesIcon(props) {
|
|
9
|
+
const { title = "Wrap-lines-icon", size, color, width, height, titleId, } = props;
|
|
10
|
+
return (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", width: size || width || "20px", height: size || height || "20px", role: "img", "aria-labelledby": titleId }, props),
|
|
11
|
+
title ? react_1.default.createElement("title", { id: titleId }, title) : null,
|
|
12
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 4.619a1 1 0 011-1h15a1 1 0 110 2h-15a1 1 0 01-1-1zm0 10a1 1 0 011-1h4a1 1 0 110 2h-4a1 1 0 01-1-1zm0-5a1 1 0 011-1H16a2.5 2.5 0 012.5 2.5v2a2.5 2.5 0 01-2.5 2.5h-2.5v-2H16a.5.5 0 00.5-.5v-2a.5.5 0 00-.5-.5H2.5a1 1 0 01-1-1z", fill: color || "var(--expo-theme-icon-default)" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M13.6 11.857v5.524L8.947 14.62l4.653-2.762z", fill: color || "var(--expo-theme-icon-default)" })));
|
|
14
|
+
}
|
|
15
|
+
exports.WrapLinesIcon = WrapLinesIcon;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { BugInspectIcon } from './BugInspectIcon';
|
|
|
17
17
|
export { BuildIcon } from './BuildIcon';
|
|
18
18
|
export { BuildNumberIcon } from './BuildNumberIcon';
|
|
19
19
|
export { BuildProfileIcon } from './BuildProfileIcon';
|
|
20
|
+
export { ChangelogIcon } from './ChangelogIcon';
|
|
20
21
|
export { ChannelIcon } from './ChannelIcon';
|
|
21
22
|
export { ChartIcon } from './ChartIcon';
|
|
22
23
|
export { CheckIcon } from './CheckIcon';
|
|
@@ -61,8 +62,11 @@ export { LogsIcon } from './LogsIcon';
|
|
|
61
62
|
export { MailIcon } from './MailIcon';
|
|
62
63
|
export { MegaphoneIcon } from './MegaphoneIcon';
|
|
63
64
|
export { MessageIcon } from './MessageIcon';
|
|
65
|
+
export { MoreHorizontalIcon } from './MoreHorizontalIcon';
|
|
66
|
+
export { MoreVerticalIcon } from './MoreVerticalIcon';
|
|
64
67
|
export { OneTimePasswordIcon } from './OneTimePasswordIcon';
|
|
65
68
|
export { OpenInternalIcon } from './OpenInternalIcon';
|
|
69
|
+
export { OrganizationIcon } from './OrganizationIcon';
|
|
66
70
|
export { OverviewIcon } from './OverviewIcon';
|
|
67
71
|
export { PerformanceIcon } from './PerformanceIcon';
|
|
68
72
|
export { PersonalTrainerIcon } from './PersonalTrainerIcon';
|
|
@@ -121,5 +125,6 @@ export { UsersFilledIcon } from './UsersFilledIcon';
|
|
|
121
125
|
export { UsersIcon } from './UsersIcon';
|
|
122
126
|
export { VersionIcon } from './VersionIcon';
|
|
123
127
|
export { WarningIcon } from './WarningIcon';
|
|
128
|
+
export { WrapLinesIcon } from './WrapLinesIcon';
|
|
124
129
|
export { XIcon } from './XIcon';
|
|
125
130
|
export { YoutubeIcon } from './YoutubeIcon';
|
package/dist/icons/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.YoutubeIcon = exports.XIcon = exports.WarningIcon = exports.VersionIcon = exports.UsersIcon = exports.UsersFilledIcon = exports.UserIcon = exports.UserFilledIcon = exports.UploadIcon = exports.UpgradeIcon = exports.UpdateIcon = exports.UndoIcon = exports.TwitterIcon = exports.TwitchIcon = exports.TriangleUpIcon = exports.TriangleRightIcon = exports.TriangleLeftIcon = exports.TriangleDownIcon = exports.TrashIcon = exports.TokensIcon = exports.ThumbsUpIcon = exports.ThumbsDownIcon = exports.ThemeLightIcon = exports.ThemeIcon = exports.ThemeDarkIcon = void 0;
|
|
3
|
+
exports.HamburgerIcon = exports.GoogleAppStoreIcon = exports.GithubIcon = exports.GeneralIcon = exports.FacebookIcon = exports.ErrorIcon = exports.EditIcon = exports.EasSubmitIcon = exports.EasMetadataIcon = exports.DownloadIcon = exports.DiscourseIcon = exports.DiscordIcon = exports.DeploymentsIcon = exports.DeploymentIcon = exports.DebugIcon = exports.DatabaseIcon = exports.CreditCardIcon = exports.CredentialIcon = exports.CommitIcon = exports.CommandLineIcon = exports.CodeIcon = exports.CloudSlashIcon = exports.ClipboardIcon = exports.ChevronUpIcon = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.ChevronDownIcon = exports.CheckIcon = exports.ChartIcon = exports.ChannelIcon = exports.ChangelogIcon = exports.BuildProfileIcon = exports.BuildNumberIcon = exports.BuildIcon = exports.BugInspectIcon = exports.BranchIcon = exports.BellIcon = exports.BadgeIcon = exports.AtSignIcon = exports.ArrowUpRightIcon = exports.ArrowUpIcon = exports.ArrowRightIcon = exports.ArrowLeftIcon = exports.ArrowDownIcon = exports.AppleSimulatorIcon = exports.AppleIcon = exports.AppleAppStoreIcon = exports.AndroidIcon = exports.AddPhotoIcon = exports.ActivityIcon = void 0;
|
|
4
|
+
exports.StatusNewIcon = exports.StatusFailedIcon = exports.StatusCanceledIcon = exports.SparklesIcon = exports.SlashShortcutIcon = exports.SettingsIcon = exports.SettingsFilledIcon = exports.SecretsIcon = exports.SearchIcon = exports.ScanIcon = exports.RuntimeVersionIcon = exports.RunIcon = exports.RolloutIcon = exports.RefreshIcon = exports.RedditIcon = exports.ReceiptIcon = exports.QuestionMarkIcon = exports.QuestionIcon = exports.QrCodeIcon = exports.PushToDeviceIcon = exports.ProjectTransferIcon = exports.PrivacyIcon = exports.PlusIcon = exports.PlansIcon = exports.PlanProductionIcon = exports.PlanFreeIcon = exports.PlanEnterpriseIcon = exports.PinIcon = exports.PersonalTrainerIcon = exports.PerformanceIcon = exports.OverviewIcon = exports.OrganizationIcon = exports.OpenInternalIcon = exports.OneTimePasswordIcon = exports.MoreVerticalIcon = exports.MoreHorizontalIcon = exports.MessageIcon = exports.MegaphoneIcon = exports.MailIcon = exports.LogsIcon = exports.LogoutMobileIcon = exports.LockIcon = exports.LifebuoyIcon = exports.InvoicesIcon = exports.InstagramIcon = exports.InspectElementIcon = exports.InfoIcon = exports.HomeIcon = exports.HomeFilledIcon = exports.HeadsetIcon = void 0;
|
|
5
|
+
exports.YoutubeIcon = exports.XIcon = exports.WrapLinesIcon = exports.WarningIcon = exports.VersionIcon = exports.UsersIcon = exports.UsersFilledIcon = exports.UserIcon = exports.UserFilledIcon = exports.UploadIcon = exports.UpgradeIcon = exports.UpdateIcon = exports.UndoIcon = exports.TwitterIcon = exports.TwitchIcon = exports.TriangleUpIcon = exports.TriangleRightIcon = exports.TriangleLeftIcon = exports.TriangleDownIcon = exports.TrashIcon = exports.TokensIcon = exports.ThumbsUpIcon = exports.ThumbsDownIcon = exports.ThemeLightIcon = exports.ThemeIcon = exports.ThemeDarkIcon = exports.ThemeAutoIcon = exports.StoreIcon = exports.StatusWaitingIcon = exports.StatusSuccessIcon = void 0;
|
|
6
6
|
var ActivityIcon_1 = require("./ActivityIcon");
|
|
7
7
|
Object.defineProperty(exports, "ActivityIcon", { enumerable: true, get: function () { return ActivityIcon_1.ActivityIcon; } });
|
|
8
8
|
var AddPhotoIcon_1 = require("./AddPhotoIcon");
|
|
@@ -41,6 +41,8 @@ var BuildNumberIcon_1 = require("./BuildNumberIcon");
|
|
|
41
41
|
Object.defineProperty(exports, "BuildNumberIcon", { enumerable: true, get: function () { return BuildNumberIcon_1.BuildNumberIcon; } });
|
|
42
42
|
var BuildProfileIcon_1 = require("./BuildProfileIcon");
|
|
43
43
|
Object.defineProperty(exports, "BuildProfileIcon", { enumerable: true, get: function () { return BuildProfileIcon_1.BuildProfileIcon; } });
|
|
44
|
+
var ChangelogIcon_1 = require("./ChangelogIcon");
|
|
45
|
+
Object.defineProperty(exports, "ChangelogIcon", { enumerable: true, get: function () { return ChangelogIcon_1.ChangelogIcon; } });
|
|
44
46
|
var ChannelIcon_1 = require("./ChannelIcon");
|
|
45
47
|
Object.defineProperty(exports, "ChannelIcon", { enumerable: true, get: function () { return ChannelIcon_1.ChannelIcon; } });
|
|
46
48
|
var ChartIcon_1 = require("./ChartIcon");
|
|
@@ -129,10 +131,16 @@ var MegaphoneIcon_1 = require("./MegaphoneIcon");
|
|
|
129
131
|
Object.defineProperty(exports, "MegaphoneIcon", { enumerable: true, get: function () { return MegaphoneIcon_1.MegaphoneIcon; } });
|
|
130
132
|
var MessageIcon_1 = require("./MessageIcon");
|
|
131
133
|
Object.defineProperty(exports, "MessageIcon", { enumerable: true, get: function () { return MessageIcon_1.MessageIcon; } });
|
|
134
|
+
var MoreHorizontalIcon_1 = require("./MoreHorizontalIcon");
|
|
135
|
+
Object.defineProperty(exports, "MoreHorizontalIcon", { enumerable: true, get: function () { return MoreHorizontalIcon_1.MoreHorizontalIcon; } });
|
|
136
|
+
var MoreVerticalIcon_1 = require("./MoreVerticalIcon");
|
|
137
|
+
Object.defineProperty(exports, "MoreVerticalIcon", { enumerable: true, get: function () { return MoreVerticalIcon_1.MoreVerticalIcon; } });
|
|
132
138
|
var OneTimePasswordIcon_1 = require("./OneTimePasswordIcon");
|
|
133
139
|
Object.defineProperty(exports, "OneTimePasswordIcon", { enumerable: true, get: function () { return OneTimePasswordIcon_1.OneTimePasswordIcon; } });
|
|
134
140
|
var OpenInternalIcon_1 = require("./OpenInternalIcon");
|
|
135
141
|
Object.defineProperty(exports, "OpenInternalIcon", { enumerable: true, get: function () { return OpenInternalIcon_1.OpenInternalIcon; } });
|
|
142
|
+
var OrganizationIcon_1 = require("./OrganizationIcon");
|
|
143
|
+
Object.defineProperty(exports, "OrganizationIcon", { enumerable: true, get: function () { return OrganizationIcon_1.OrganizationIcon; } });
|
|
136
144
|
var OverviewIcon_1 = require("./OverviewIcon");
|
|
137
145
|
Object.defineProperty(exports, "OverviewIcon", { enumerable: true, get: function () { return OverviewIcon_1.OverviewIcon; } });
|
|
138
146
|
var PerformanceIcon_1 = require("./PerformanceIcon");
|
|
@@ -249,6 +257,8 @@ var VersionIcon_1 = require("./VersionIcon");
|
|
|
249
257
|
Object.defineProperty(exports, "VersionIcon", { enumerable: true, get: function () { return VersionIcon_1.VersionIcon; } });
|
|
250
258
|
var WarningIcon_1 = require("./WarningIcon");
|
|
251
259
|
Object.defineProperty(exports, "WarningIcon", { enumerable: true, get: function () { return WarningIcon_1.WarningIcon; } });
|
|
260
|
+
var WrapLinesIcon_1 = require("./WrapLinesIcon");
|
|
261
|
+
Object.defineProperty(exports, "WrapLinesIcon", { enumerable: true, get: function () { return WrapLinesIcon_1.WrapLinesIcon; } });
|
|
252
262
|
var XIcon_1 = require("./XIcon");
|
|
253
263
|
Object.defineProperty(exports, "XIcon", { enumerable: true, get: function () { return XIcon_1.XIcon; } });
|
|
254
264
|
var YoutubeIcon_1 = require("./YoutubeIcon");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Foundational styles for Expo interfaces.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"dev": "yarn tsc -w"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"tailwind.js"
|
|
17
18
|
],
|
|
18
19
|
"homepage": "https://github.com/expo/styleguide",
|
|
19
20
|
"repository": {
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"@types/react": "^17.0.6",
|
|
36
37
|
"copyfiles": "^2.4.1",
|
|
37
38
|
"rimraf": "^3.0.2",
|
|
39
|
+
"tailwindcss": "^3.1.8",
|
|
38
40
|
"typescript": "^4.2.4"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
package/tailwind.js
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
const {
|
|
2
|
+
theme,
|
|
3
|
+
borderRadius,
|
|
4
|
+
shadows,
|
|
5
|
+
breakpoints,
|
|
6
|
+
} = require("@expo/styleguide");
|
|
7
|
+
|
|
8
|
+
/** @type {import('tailwindcss').Config} */
|
|
9
|
+
module.exports = {
|
|
10
|
+
theme: {
|
|
11
|
+
borderRadius,
|
|
12
|
+
backgroundColor: theme.background,
|
|
13
|
+
borderColor: theme.border,
|
|
14
|
+
colors: {
|
|
15
|
+
...theme.palette,
|
|
16
|
+
link: theme.link.default,
|
|
17
|
+
status: theme.status,
|
|
18
|
+
code: theme.code,
|
|
19
|
+
icon: theme.icon,
|
|
20
|
+
default: theme.text.default,
|
|
21
|
+
secondary: theme.text.secondary,
|
|
22
|
+
error: theme.text.error,
|
|
23
|
+
warning: theme.text.warning,
|
|
24
|
+
success: theme.text.success,
|
|
25
|
+
info: theme.text.info,
|
|
26
|
+
highlight: theme.highlight,
|
|
27
|
+
project: theme.project,
|
|
28
|
+
},
|
|
29
|
+
boxShadow: shadows,
|
|
30
|
+
fontFamily: {
|
|
31
|
+
sans: [
|
|
32
|
+
"Inter var",
|
|
33
|
+
"ui-sans-serif",
|
|
34
|
+
"system-ui",
|
|
35
|
+
"-apple-system",
|
|
36
|
+
"BlinkMacSystemFont",
|
|
37
|
+
'"Segoe UI"',
|
|
38
|
+
"Roboto",
|
|
39
|
+
'"Helvetica Neue"',
|
|
40
|
+
"Arial",
|
|
41
|
+
'"Noto Sans"',
|
|
42
|
+
"sans-serif",
|
|
43
|
+
'"Apple Color Emoji"',
|
|
44
|
+
'"Segoe UI Emoji"',
|
|
45
|
+
'"Segoe UI Symbol"',
|
|
46
|
+
'"Noto Color Emoji"',
|
|
47
|
+
],
|
|
48
|
+
mono: [
|
|
49
|
+
"Menlo",
|
|
50
|
+
"ui-monospace",
|
|
51
|
+
"SFMono-Regular",
|
|
52
|
+
"Menlo",
|
|
53
|
+
"Monaco",
|
|
54
|
+
"Consolas",
|
|
55
|
+
'"Liberation Mono"',
|
|
56
|
+
'"Courier New"',
|
|
57
|
+
"monospace",
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
// Based on Major Third (1.250) type scale.
|
|
61
|
+
// Sizes calculated at: https://type-scale.com
|
|
62
|
+
fontSize: {
|
|
63
|
+
"heading-5xl": [
|
|
64
|
+
"calc(var(--expo-theme-heading-base-font-size) * 3.815)",
|
|
65
|
+
{
|
|
66
|
+
lineHeight: 1.2,
|
|
67
|
+
letterSpacing: "-0.022rem",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
"heading-4xl": [
|
|
71
|
+
"calc(var(--expo-theme-heading-base-font-size) * 3.052)",
|
|
72
|
+
{
|
|
73
|
+
lineHeight: 1.2,
|
|
74
|
+
letterSpacing: "-0.022rem",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
"heading-3xl": [
|
|
78
|
+
"calc(var(--expo-theme-heading-base-font-size) * 2.441)",
|
|
79
|
+
{
|
|
80
|
+
lineHeight: 1.3,
|
|
81
|
+
letterSpacing: "-0.022rem",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
"heading-2xl": [
|
|
85
|
+
"calc(var(--expo-theme-heading-base-font-size) * 1.953)",
|
|
86
|
+
{
|
|
87
|
+
lineHeight: 1.4,
|
|
88
|
+
letterSpacing: "-0.021rem",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
"heading-xl": [
|
|
92
|
+
"calc(var(--expo-theme-heading-base-font-size) * 1.563)",
|
|
93
|
+
{
|
|
94
|
+
lineHeight: 1.5,
|
|
95
|
+
letterSpacing: "-0.017rem",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
"heading-lg": [
|
|
99
|
+
"calc(var(--expo-theme-heading-base-font-size) * 1.25)",
|
|
100
|
+
{
|
|
101
|
+
lineHeight: 1.5,
|
|
102
|
+
letterSpacing: "-0.017rem",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
"heading-base": [
|
|
106
|
+
"calc(var(--expo-theme-heading-base-font-size) * 1)",
|
|
107
|
+
{
|
|
108
|
+
lineHeight: 1.625,
|
|
109
|
+
letterSpacing: "-0.011rem",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
"heading-sm": [
|
|
113
|
+
"calc(var(--expo-theme-heading-base-font-size) * 0.8)",
|
|
114
|
+
{
|
|
115
|
+
lineHeight: 1.615,
|
|
116
|
+
letterSpacing: "-0.003rem",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
"heading-xs": [
|
|
120
|
+
"calc(var(--expo-theme-heading-base-font-size) * 0.64)",
|
|
121
|
+
{
|
|
122
|
+
lineHeight: 1.58,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
base: [
|
|
126
|
+
"16px",
|
|
127
|
+
{
|
|
128
|
+
lineHeight: 1.625,
|
|
129
|
+
letterSpacing: "-0.011rem",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
sm: [
|
|
133
|
+
"15px",
|
|
134
|
+
{
|
|
135
|
+
lineHeight: 1.6,
|
|
136
|
+
letterSpacing: "-0.009rem",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
xs: [
|
|
140
|
+
"14px",
|
|
141
|
+
{
|
|
142
|
+
lineHeight: 1.57,
|
|
143
|
+
letterSpacing: "-0.006rem",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
"2xs": [
|
|
147
|
+
"13px",
|
|
148
|
+
{
|
|
149
|
+
lineHeight: 1.61,
|
|
150
|
+
letterSpacing: "-0.003rem",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
"3xs": [
|
|
154
|
+
"12px",
|
|
155
|
+
{
|
|
156
|
+
lineHeight: 1.58,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
screens: {
|
|
162
|
+
sm: `${breakpoints.small}px`,
|
|
163
|
+
md: `${breakpoints.medium}px`,
|
|
164
|
+
lg: `${breakpoints.large}px`,
|
|
165
|
+
},
|
|
166
|
+
};
|