@onereach/styles 2.37.3-beta.2443.0 → 2.37.3-beta.2454.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/base.layer.css CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  body {
4
4
  @apply text-on-background dark:text-on-background-dark;
5
+ @apply typography-body-1-regular
5
6
  }
6
7
 
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "2.37.3-beta.2443.0",
3
+ "version": "2.37.3-beta.2454.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./main.css",
@@ -151,9 +151,6 @@ module.exports = {
151
151
  fontFamily: {
152
152
  ...parseFontFamilyTokens(typographyTokens),
153
153
  'inherit': 'inherit',
154
- // customizing the 'sans' key is the way to extend default font family globally
155
- // https://tailwindcss.com/docs/font-family#customizing-the-default-font
156
- 'sans': ['Inter', '-system-ui', 'sans-serif'],
157
154
  },
158
155
 
159
156
  fontSize: {
@@ -302,11 +299,13 @@ module.exports = {
302
299
  const [fontSizeMobile, optionsMobile] = fontSizeConfig[`mobile-${value}`] ?? [];
303
300
 
304
301
  return {
302
+ fontFamily: theme(`fontFamily.mobile-${value}`) ?? theme(`fontFamily.${value}`),
305
303
  fontWeight: theme(`fontWeight.mobile-${value}`) ?? theme(`fontWeight.${value}`),
306
304
  fontSize: fontSizeMobile ?? fontSizeDesktop,
307
305
  lineHeight: optionsMobile?.lineHeight ?? optionsDesktop?.lineHeight,
308
306
 
309
307
  [`@media (min-width: ${theme('screens.md')})`]: {
308
+ fontFamily: theme(`fontFamily.${value}`),
310
309
  fontWeight: theme(`fontWeight.${value}`),
311
310
  fontSize: fontSizeDesktop,
312
311
  lineHeight: optionsDesktop?.lineHeight,
@@ -336,14 +335,6 @@ module.exports = {
336
335
  'inherit': 'inherit',
337
336
  },
338
337
  });
339
-
340
- // Default Styles
341
- addBase({
342
- ':root': {
343
- fontSize: theme('fontSize.body-1-regular'),
344
- fontWeight: theme('fontWeight.body-1-regular'),
345
- },
346
- });
347
338
  }),
348
339
 
349
340
  // Iconography