@expo/styleguide 8.0.0-alpha.3 → 8.0.0-alpha.5

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 CHANGED
@@ -11,21 +11,20 @@ Expo's styleguide and components for use on the web.
11
11
  2. Import global CSS files from the package in your JS(X)/TS(X) code:
12
12
  ```jsx
13
13
  import "@expo/styleguide/dist/expo-theme.css";
14
- import "@expo/styleguide/dist/global.css";
15
14
  ```
16
15
  or import it the main stylesheet file:
17
16
  ```css
18
17
  @import "@expo/styleguide/dist/expo-theme.css";
19
- @import "@expo/styleguide/dist/global.css";
20
18
  ```
19
+ 3. Add `'./node_modules/@expo/styleguide/dist/**/*.{js,ts,jsx,tsx}'` to the Tailwind `content` paths.
21
20
 
22
21
  ### Tailwind theme
23
22
 
24
23
  For the Styleguide we use our custom Tailwind theme, which is based on the default TW theme, with the following differences:
25
- * only valid media screen scopes are: `small:`, `medium:` and `large:`
24
+ * only valid media screen scopes are: `xs:`, `sm:`, `md:`, `lg:` and `xl:`
26
25
  * there is a custom `hocus:` scope which is a shorthand for hover and focus states
27
26
  * typography elements are predefined as a `heading-[size]` styles sets
28
- * `icon-[size]` are custom classes defined for icons sizing
27
+ * `icon-[size]` are custom component classes defined for icons sizing
29
28
 
30
29
  ## Development
31
30
 
package/dist/index.js CHANGED
@@ -215,7 +215,7 @@ var ButtonBase = React.forwardRef(function (_a, ref) {
215
215
  return (React.createElement("button", __assign({ className: mergeClasses('flex cursor-pointer', className), "data-testid": testID, disabled: disabled, ref: ref, type: type, onClick: disabled ? undefined : onClick }, rest), children));
216
216
  });
217
217
 
218
- var STOPWORDS = 'a an and at but by for in nor of on or so the to up yet'.split(' ');
218
+ var STOPWORDS = 'a an and at but by for in nor of on or out so the to up with yet'.split(' ');
219
219
  function titleCase(value, options) {
220
220
  var _a;
221
221
  if (options === void 0) { options = {}; }
@@ -338,7 +338,7 @@ function getIconProps(element, classNames) {
338
338
  return __assign(__assign({}, element.props), { className: mergeClasses(classNames, element.props.className) });
339
339
  }
340
340
  var Button = function (props) {
341
- var children = props.children, _a = props.size, size = _a === void 0 ? 'sm' : _a, _b = props.theme, theme = _b === void 0 ? 'primary' : _b, href = props.href, disabled = props.disabled, className = props.className, leftSlot = props.leftSlot, rightSlot = props.rightSlot, openInNewTab = props.openInNewTab, rest = __rest(props, ["children", "size", "theme", "href", "disabled", "className", "leftSlot", "rightSlot", "openInNewTab"]);
341
+ var children = props.children, _a = props.size, size = _a === void 0 ? 'sm' : _a, _b = props.theme, theme = _b === void 0 ? 'primary' : _b, _c = props.skipCapitalization, skipCapitalization = _c === void 0 ? false : _c, href = props.href, disabled = props.disabled, className = props.className, leftSlot = props.leftSlot, rightSlot = props.rightSlot, openInNewTab = props.openInNewTab, rest = __rest(props, ["children", "size", "theme", "skipCapitalization", "href", "disabled", "className", "leftSlot", "rightSlot", "openInNewTab"]);
342
342
  var Element = href ? LinkBase : ButtonBase;
343
343
  var isLeftSlotIcon = leftSlot && isIconElement(leftSlot);
344
344
  var isRightSlotIcon = rightSlot && isIconElement(rightSlot);
@@ -346,7 +346,7 @@ var Button = function (props) {
346
346
  mergeClasses("".concat(getIconSizeClasses(size)), getThemedIconClasses(theme), disabled && 'opacity-60');
347
347
  return (React.createElement(Element, __assign({ href: href, className: mergeClasses("inline-flex border border-solid rounded-md font-medium gap-2 items-center whitespace-nowrap transition", getSizeClasses(size), getThemeClasses(theme, disabled), disabled && 'cursor-default opacity-80 pointer-event-none', className), disabled: disabled }, (href ? { openInNewTab: openInNewTab } : {}), rest),
348
348
  isLeftSlotIcon ? React.cloneElement(leftSlot, getIconProps(leftSlot, iconClasses)) : leftSlot,
349
- children && (React.createElement("span", { className: mergeClasses('flex self-center text-inherit leading-none', href && 'select-none') }, typeof children === 'string' ? titleCase(children) : children)),
349
+ children && (React.createElement("span", { className: mergeClasses('flex self-center text-inherit leading-none', href && 'select-none') }, typeof children === 'string' && !skipCapitalization ? titleCase(children) : children)),
350
350
  isRightSlotIcon ? React.cloneElement(rightSlot, getIconProps(rightSlot, iconClasses)) : rightSlot));
351
351
  };
352
352
 
@@ -8,5 +8,6 @@ export type ButtonProps = ButtonBaseProps & LinkBaseProps & {
8
8
  theme?: ButtonTheme;
9
9
  leftSlot?: ReactElement;
10
10
  rightSlot?: ReactElement;
11
+ skipCapitalization?: boolean;
11
12
  };
12
13
  export declare const Button: (props: ButtonProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "8.0.0-alpha.3",
3
+ "version": "8.0.0-alpha.5",
4
4
  "description": "Expo's styleguide components for use on the web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -49,5 +49,5 @@
49
49
  "eslintConfig": {
50
50
  "extends": "universe/web"
51
51
  },
52
- "gitHead": "041dfc2e45eb0f1cc48df36c04f46b0870537859"
52
+ "gitHead": "68d6b28dc988586775131a895c4a718410562214"
53
53
  }
package/tailwind.js CHANGED
@@ -330,9 +330,15 @@ const expoTailwindConfig = {
330
330
  },
331
331
  },
332
332
  screens: {
333
- small: '400px',
334
- medium: '900px',
335
- large: '1200px',
333
+ xs: '340px',
334
+ sm: '420px',
335
+ 'sm-gutters': '468px',
336
+ md: '740px',
337
+ 'md-gutters': '788px',
338
+ lg: '960px',
339
+ 'lg-gutters': '1008px',
340
+ xl: '1200px',
341
+ 'xl-gutters': '1248px',
336
342
  },
337
343
  extend: {
338
344
  height: {
@@ -344,15 +350,59 @@ const expoTailwindConfig = {
344
350
  scale: {
345
351
  98: '.98',
346
352
  },
353
+ gridTemplateColumns: {
354
+ 'auto-min-1': 'auto',
355
+ 'auto-min-2': 'minmax(min-content, auto) min-content',
356
+ 'auto-min-3': 'minmax(min-content, auto) repeat(2, min-content)',
357
+ 'auto-min-4': 'minmax(min-content, auto) repeat(3, min-content)',
358
+ 'auto-min-5': 'minmax(min-content, auto) repeat(4, min-content)',
359
+ 'auto-min-6': 'minmax(min-content, auto) repeat(5, min-content)',
360
+ 'auto-min-7': 'minmax(min-content, auto) repeat(6, min-content)',
361
+ 'auto-min-8': 'minmax(min-content, auto) repeat(7, min-content)',
362
+ },
363
+ transitionDuration: {
364
+ default: '150ms',
365
+ },
347
366
  },
348
367
  },
349
368
  corePlugins: {
350
369
  fontFamily: false,
351
370
  },
352
371
  plugins: [
353
- plugin(({ addVariant, matchUtilities, theme }) => {
372
+ plugin(({ addComponents, addVariant, matchUtilities, theme }) => {
354
373
  addVariant('hocus', ['&:hover', '&:focus-visible']);
355
374
  matchUtilities({ heading: (value) => value }, { values: theme('heading') });
375
+ addComponents({
376
+ '.icon-2xs': {
377
+ height: theme('height.3'),
378
+ width: theme('width.3'),
379
+ },
380
+ '.icon-xs': {
381
+ // note(simek): figure out how to access `h-3.5` using path
382
+ height: '0.875rem',
383
+ width: '0.875rem',
384
+ },
385
+ '.icon-sm': {
386
+ height: theme('height.4'),
387
+ width: theme('width.4'),
388
+ },
389
+ '.icon-md': {
390
+ height: theme('height.5'),
391
+ width: theme('width.5'),
392
+ },
393
+ '.icon-lg': {
394
+ height: theme('height.6'),
395
+ width: theme('width.6'),
396
+ },
397
+ '.icon-xl': {
398
+ height: theme('height.8'),
399
+ width: theme('width.8'),
400
+ },
401
+ '.icon-2xl': {
402
+ height: theme('height.10'),
403
+ width: theme('width.10'),
404
+ },
405
+ });
356
406
  }),
357
407
  ],
358
408
  };
package/dist/global.css DELETED
@@ -1,13 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer components {
6
- .icon-md { @apply h-5 w-5; }
7
- .icon-2xs { @apply h-3 w-3; }
8
- .icon-xs { @apply h-3.5 w-3.5; }
9
- .icon-sm { @apply h-4 w-4; }
10
- .icon-lg { @apply h-6 w-6; }
11
- .icon-xl { @apply h-8 w-8; }
12
- .icon-2xl { @apply h-10 w-10; }
13
- }
package/dist/tailwind.js DELETED
@@ -1,360 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
-
3
- const palette = {
4
- 'palette-white': 'var(--expo-color-white)',
5
- 'palette-black': 'var(--expo-color-black)',
6
- 'palette-green1': 'var(--green1)',
7
- 'palette-green2': 'var(--green2)',
8
- 'palette-green3': 'var(--green3)',
9
- 'palette-green4': 'var(--green4)',
10
- 'palette-green5': 'var(--green5)',
11
- 'palette-green6': 'var(--green6)',
12
- 'palette-green7': 'var(--green7)',
13
- 'palette-green8': 'var(--green8)',
14
- 'palette-green9': 'var(--green9)',
15
- 'palette-green10': 'var(--green10)',
16
- 'palette-green11': 'var(--green11)',
17
- 'palette-green12': 'var(--green12)',
18
- 'palette-purple1': 'var(--purple1)',
19
- 'palette-purple2': 'var(--purple2)',
20
- 'palette-purple3': 'var(--purple3)',
21
- 'palette-purple4': 'var(--purple4)',
22
- 'palette-purple5': 'var(--purple5)',
23
- 'palette-purple6': 'var(--purple6)',
24
- 'palette-purple7': 'var(--purple7)',
25
- 'palette-purple8': 'var(--purple8)',
26
- 'palette-purple9': 'var(--purple9)',
27
- 'palette-purple10': 'var(--purple10)',
28
- 'palette-purple11': 'var(--purple11)',
29
- 'palette-purple12': 'var(--purple12)',
30
- 'palette-pink1': 'var(--pink1)',
31
- 'palette-pink2': 'var(--pink2)',
32
- 'palette-pink3': 'var(--pink3)',
33
- 'palette-pink4': 'var(--pink4)',
34
- 'palette-pink5': 'var(--pink5)',
35
- 'palette-pink6': 'var(--pink6)',
36
- 'palette-pink7': 'var(--pink7)',
37
- 'palette-pink8': 'var(--pink8)',
38
- 'palette-pink9': 'var(--pink9)',
39
- 'palette-pink10': 'var(--pink10)',
40
- 'palette-pink11': 'var(--pink11)',
41
- 'palette-pink12': 'var(--pink12)',
42
- 'palette-orange1': 'var(--orange1)',
43
- 'palette-orange2': 'var(--orange2)',
44
- 'palette-orange3': 'var(--orange3)',
45
- 'palette-orange4': 'var(--orange4)',
46
- 'palette-orange5': 'var(--orange5)',
47
- 'palette-orange6': 'var(--orange6)',
48
- 'palette-orange7': 'var(--orange7)',
49
- 'palette-orange8': 'var(--orange8)',
50
- 'palette-orange9': 'var(--orange9)',
51
- 'palette-orange10': 'var(--orange10)',
52
- 'palette-orange11': 'var(--orange11)',
53
- 'palette-orange12': 'var(--orange12)',
54
- 'palette-yellow1': 'var(--yellow1)',
55
- 'palette-yellow2': 'var(--yellow2)',
56
- 'palette-yellow3': 'var(--yellow3)',
57
- 'palette-yellow4': 'var(--yellow4)',
58
- 'palette-yellow5': 'var(--yellow5)',
59
- 'palette-yellow6': 'var(--yellow6)',
60
- 'palette-yellow7': 'var(--yellow7)',
61
- 'palette-yellow8': 'var(--yellow8)',
62
- 'palette-yellow9': 'var(--yellow9)',
63
- 'palette-yellow10': 'var(--yellow10)',
64
- 'palette-yellow11': 'var(--yellow11)',
65
- 'palette-yellow12': 'var(--yellow12)',
66
- 'palette-blue1': 'var(--blue1)',
67
- 'palette-blue2': 'var(--blue2)',
68
- 'palette-blue3': 'var(--blue3)',
69
- 'palette-blue4': 'var(--blue4)',
70
- 'palette-blue5': 'var(--blue5)',
71
- 'palette-blue6': 'var(--blue6)',
72
- 'palette-blue7': 'var(--blue7)',
73
- 'palette-blue8': 'var(--blue8)',
74
- 'palette-blue9': 'var(--blue9)',
75
- 'palette-blue10': 'var(--blue10)',
76
- 'palette-blue11': 'var(--blue11)',
77
- 'palette-blue12': 'var(--blue12)',
78
- 'palette-red1': 'var(--red1)',
79
- 'palette-red2': 'var(--red2)',
80
- 'palette-red3': 'var(--red3)',
81
- 'palette-red4': 'var(--red4)',
82
- 'palette-red5': 'var(--red5)',
83
- 'palette-red6': 'var(--red6)',
84
- 'palette-red7': 'var(--red7)',
85
- 'palette-red8': 'var(--red8)',
86
- 'palette-red9': 'var(--red9)',
87
- 'palette-red10': 'var(--red10)',
88
- 'palette-red11': 'var(--red11)',
89
- 'palette-red12': 'var(--red12)',
90
- 'palette-gray1': 'var(--slate1)',
91
- 'palette-gray2': 'var(--slate2)',
92
- 'palette-gray3': 'var(--slate3)',
93
- 'palette-gray4': 'var(--slate4)',
94
- 'palette-gray5': 'var(--slate5)',
95
- 'palette-gray6': 'var(--slate6)',
96
- 'palette-gray7': 'var(--slate7)',
97
- 'palette-gray8': 'var(--slate8)',
98
- 'palette-gray9': 'var(--slate9)',
99
- 'palette-gray10': 'var(--slate10)',
100
- 'palette-gray11': 'var(--slate11)',
101
- 'palette-gray12': 'var(--slate12)',
102
- };
103
-
104
- const expoTailwindConfig = {
105
- theme: {
106
- borderRadius: {
107
- none: 0,
108
- xs: 2,
109
- sm: 4,
110
- md: 6,
111
- lg: 10,
112
- xl: 16,
113
- '2xl': 20,
114
- '3xl': 24,
115
- full: 9999,
116
- },
117
- backgroundColor: {
118
- default: 'var(--expo-theme-background-default)',
119
- screen: 'var(--expo-theme-background-screen)',
120
- subtle: 'var(--expo-theme-background-subtle)',
121
- element: 'var(--expo-theme-background-element)',
122
- hover: 'var(--expo-theme-background-hover)',
123
- selected: 'var(--expo-theme-background-selected)',
124
- overlay: 'var(--expo-theme-background-overlay)',
125
- success: 'var(--expo-theme-background-success)',
126
- warning: 'var(--expo-theme-background-warning)',
127
- danger: 'var(--expo-theme-background-danger)',
128
- info: 'var(--expo-theme-background-info)',
129
-
130
- 'button-primary': 'var(--expo-theme-button-primary-background)',
131
- 'button-primary-hover': 'var(--expo-theme-button-primary-hover)',
132
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-background)',
133
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-background)',
134
- 'button-primary-destructive-hover': 'var(--expo-theme-button-primary-destructive-hover)',
135
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-background)',
136
-
137
- 'button-secondary': 'var(--expo-theme-button-secondary-background)',
138
- 'button-secondary-hover': 'var(--expo-theme-button-secondary-hover)',
139
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-background)',
140
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-background)',
141
- 'button-secondary-destructive-hover': 'var(--expo-theme-button-secondary-destructive-hover)',
142
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-background)',
143
-
144
- 'button-tertiary': 'var(--expo-theme-button-tertiary-background)',
145
- 'button-tertiary-hover': 'var(--expo-theme-button-tertiary-hover)',
146
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-background)',
147
-
148
- 'button-quaternary': 'var(--expo-theme-button-quaternary-background)',
149
- 'button-quaternary-hover': 'var(--expo-theme-button-quaternary-hover)',
150
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-background)',
151
-
152
- ...palette,
153
- },
154
- backgroundImage: {
155
- 'project-blue': 'var(--expo-theme-project-blue)',
156
- 'project-green': 'var(--expo-theme-project-green)',
157
- 'project-yellow': 'var(--expo-theme-project-yellow)',
158
- 'project-orange': 'var(--expo-theme-project-orange)',
159
- 'project-red': 'var(--expo-theme-project-red)',
160
- 'project-pink': 'var(--expo-theme-project-pink)',
161
- 'project-purple': 'var(--expo-theme-project-purple)',
162
- },
163
- borderColor: {
164
- default: 'var(--expo-theme-border-default)',
165
- secondary: 'var(--expo-theme-border-secondary)',
166
- success: 'var(--expo-theme-border-success)',
167
- warning: 'var(--expo-theme-border-warning)',
168
- danger: 'var(--expo-theme-border-danger)',
169
- info: 'var(--expo-theme-border-info)',
170
- transparent: 'transparent',
171
-
172
- 'button-primary': 'var(--expo-theme-button-primary-border)',
173
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-border)',
174
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-border)',
175
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-border)',
176
-
177
- 'button-secondary': 'var(--expo-theme-button-secondary-border)',
178
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-border)',
179
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-border)',
180
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-border)',
181
-
182
- 'button-tertiary': 'var(--expo-theme-button-tertiary-border)',
183
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-border)',
184
-
185
- 'button-quaternary': 'var(--expo-theme-button-quaternary-border)',
186
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-border)',
187
-
188
- ...palette,
189
- },
190
- colors: {
191
- transparent: 'transparent',
192
- current: 'currentColor',
193
- default: 'var(--expo-theme-text-default)',
194
- secondary: 'var(--expo-theme-text-secondary)',
195
- tertiary: 'var(--expo-theme-text-tertiary)',
196
- quaternary: 'var(--expo-theme-text-quaternary)',
197
- link: 'var(--expo-theme-text-link)',
198
- success: 'var(--expo-theme-text-success)',
199
- warning: 'var(--expo-theme-text-warning)',
200
- danger: 'var(--expo-theme-text-danger)',
201
- info: 'var(--expo-theme-text-info)',
202
-
203
- 'icon-default': 'var(--expo-theme-icon-default)',
204
- 'icon-secondary': 'var(--expo-theme-icon-secondary)',
205
- 'icon-tertiary': 'var(--expo-theme-icon-tertiary)',
206
- 'icon-quaternary': 'var(--expo-theme-icon-quaternary)',
207
- 'icon-success': 'var(--expo-theme-icon-success)',
208
- 'icon-warning': 'var(--expo-theme-icon-warning)',
209
- 'icon-danger': 'var(--expo-theme-icon-danger)',
210
- 'icon-info': 'var(--expo-theme-icon-info)',
211
-
212
- 'button-primary': 'var(--expo-theme-button-primary-text)',
213
- 'button-primary-icon': 'var(--expo-theme-button-primary-icon)',
214
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-text)',
215
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-text)',
216
- 'button-primary-destructive-icon': 'var(--expo-theme-button-primary-destructive-icon)',
217
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-text)',
218
-
219
- 'button-secondary': 'var(--expo-theme-button-secondary-text)',
220
- 'button-secondary-icon': 'var(--expo-theme-button-secondary-icon)',
221
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-text)',
222
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-text)',
223
- 'button-secondary-destructive-icon': 'var(--expo-theme-button-secondary-destructive-icon)',
224
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-text)',
225
-
226
- 'button-tertiary': 'var(--expo-theme-button-tertiary-text)',
227
- 'button-tertiary-icon': 'var(--expo-theme-button-tertiary-icon)',
228
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-text)',
229
-
230
- 'button-quaternary': 'var(--expo-theme-button-quaternary-text)',
231
- 'button-quaternary-icon': 'var(--expo-theme-button-quaternary-icon)',
232
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-text)',
233
-
234
- ...palette,
235
- },
236
- boxShadow: {
237
- none: 'var(--expo-theme-shadows-none)',
238
- xs: 'var(--expo-theme-shadows-xs)',
239
- sm: 'var(--expo-theme-shadows-sm)',
240
- md: 'var(--expo-theme-shadows-md)',
241
- lg: 'var(--expo-theme-shadows-lg)',
242
- xl: 'var(--expo-theme-shadows-xl)',
243
- },
244
- fontSize: {
245
- lg: [
246
- '18px',
247
- {
248
- lineHeight: 1.5,
249
- },
250
- ],
251
- base: [
252
- '16px',
253
- {
254
- lineHeight: 1.625,
255
- letterSpacing: '-0.011rem',
256
- },
257
- ],
258
- sm: [
259
- '15px',
260
- {
261
- lineHeight: 1.6,
262
- letterSpacing: '-0.009rem',
263
- },
264
- ],
265
- xs: [
266
- '14px',
267
- {
268
- lineHeight: 1.57,
269
- letterSpacing: '-0.006rem',
270
- },
271
- ],
272
- '2xs': [
273
- '13px',
274
- {
275
- lineHeight: 1.61,
276
- letterSpacing: '-0.003rem',
277
- },
278
- ],
279
- '3xs': [
280
- '12px',
281
- {
282
- lineHeight: 1.58,
283
- },
284
- ],
285
- },
286
- heading: {
287
- '5xl': {
288
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 3.815)',
289
- lineHeight: 1.2,
290
- letterSpacing: '-0.022rem',
291
- },
292
- '4xl': {
293
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 3.052)',
294
- lineHeight: 1.2,
295
- letterSpacing: '-0.022rem',
296
- },
297
- '3xl': {
298
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 2.441)',
299
- lineHeight: 1.3,
300
- letterSpacing: '-0.022rem',
301
- },
302
- '2xl': {
303
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.953)',
304
- lineHeight: 1.4,
305
- letterSpacing: '-0.021rem',
306
- },
307
- xl: {
308
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.563)',
309
- lineHeight: 1.5,
310
- letterSpacing: '-0.017rem',
311
- },
312
- lg: {
313
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.25)',
314
- lineHeight: 1.5,
315
- letterSpacing: '-0.017rem',
316
- },
317
- base: {
318
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1)',
319
- lineHeight: 1.625,
320
- letterSpacing: '-0.011rem',
321
- },
322
- sm: {
323
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 0.8)',
324
- lineHeight: 1.615,
325
- letterSpacing: '-0.003rem',
326
- },
327
- xs: {
328
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 0.64)',
329
- lineHeight: 1.58,
330
- },
331
- },
332
- screens: {
333
- small: '400px',
334
- medium: '900px',
335
- large: '1200px',
336
- },
337
- extend: {
338
- height: {
339
- 15: '3.75rem',
340
- },
341
- opacity: {
342
- inherit: 'inherit',
343
- },
344
- scale: {
345
- 98: '.98',
346
- },
347
- },
348
- },
349
- corePlugins: {
350
- fontFamily: false,
351
- },
352
- plugins: [
353
- plugin(({ addVariant, matchUtilities, theme }) => {
354
- addVariant('hocus', ['&:hover', '&:focus-visible']);
355
- matchUtilities({ heading: (value) => value }, { values: theme('heading') });
356
- }),
357
- ],
358
- };
359
-
360
- module.exports = expoTailwindConfig;