@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 +1 -0
- package/package.json +1 -1
- package/tailwind.config.preset.js +2 -11
package/base.layer.css
CHANGED
package/package.json
CHANGED
|
@@ -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
|