@onereach/styles 2.37.3-beta.2442.0 → 2.37.3-beta.2446.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 ADDED
@@ -0,0 +1,8 @@
1
+ @layer base {
2
+
3
+ body {
4
+ @apply text-on-background dark:text-on-background-dark;
5
+ @apply typography-body-1-regular
6
+ }
7
+
8
+ }
package/font.css CHANGED
@@ -3,11 +3,3 @@
3
3
 
4
4
  /* Iconography */
5
5
  @import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24..48,400..700,0..1,0";
6
-
7
- @layer base {
8
-
9
- body {
10
- @apply text-on-background dark:text-on-background-dark;
11
- }
12
-
13
- }
package/main-v3.css CHANGED
@@ -4,3 +4,5 @@
4
4
 
5
5
  @import "font.css";
6
6
  @import "scrollbar.css";
7
+
8
+ @import "base.layer.css";
package/main.css CHANGED
@@ -5,4 +5,6 @@
5
5
  @import "font.css";
6
6
  @import "scrollbar.css";
7
7
 
8
+ @import "base.layer.css";
9
+
8
10
  @import "dist/index.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "2.37.3-beta.2442.0",
3
+ "version": "2.37.3-beta.2446.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./main.css",
@@ -22,7 +22,8 @@
22
22
  "main-v3.css",
23
23
  "font.css",
24
24
  "scrollbar.css",
25
- "temporary-dark-v2.css"
25
+ "temporary-dark-v2.css",
26
+ "base.layer.css"
26
27
  ],
27
28
  "scripts": {
28
29
  "dev": "pnpm build:scss -- --watch",
@@ -151,12 +151,11 @@ module.exports = {
151
151
  fontFamily: {
152
152
  ...parseFontFamilyTokens(typographyTokens),
153
153
  'inherit': 'inherit',
154
- 'sans': ['Inter', '-system-ui', 'sans-serif'], // https://tailwindcss.com/docs/font-family#customizing-the-default-font
155
154
  },
156
155
 
157
156
  fontSize: {
158
157
  ...parseFontSizeTokens(typographyTokens),
159
- 'inherit': ['inherit', {lineHeight: 'inherit'}],
158
+ 'inherit': ['inherit', { lineHeight: 'inherit' }],
160
159
  },
161
160
 
162
161
  fontWeight: {
@@ -182,7 +181,7 @@ module.exports = {
182
181
 
183
182
  plugins: [
184
183
  // Core
185
- plugin(({addVariant, addUtilities}) => {
184
+ plugin(({ addVariant, addUtilities }) => {
186
185
  addVariant('enabled', '&:not([disabled])');
187
186
  addVariant('disabled', '&[disabled]');
188
187
 
@@ -237,10 +236,10 @@ module.exports = {
237
236
  }),
238
237
 
239
238
  // Layout
240
- plugin(({matchUtilities}) => {
239
+ plugin(({ matchUtilities }) => {
241
240
  matchUtilities({
242
241
  'layout': (value) => {
243
- const {prefix = '', direction} = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
242
+ const { prefix = '', direction } = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
244
243
 
245
244
  return {
246
245
  display: prefix + 'flex',
@@ -267,7 +266,7 @@ module.exports = {
267
266
  }),
268
267
 
269
268
  // Interactivity
270
- plugin(({addUtilities}) => {
269
+ plugin(({ addUtilities }) => {
271
270
  addUtilities({
272
271
  '.interactivity-auto': {
273
272
  pointerEvents: 'auto',
@@ -291,7 +290,7 @@ module.exports = {
291
290
  }),
292
291
 
293
292
  // Typography
294
- plugin(({matchUtilities, addBase, theme}) => {
293
+ plugin(({ matchUtilities, addBase, theme }) => {
295
294
  matchUtilities({
296
295
  'typography': (value) => {
297
296
  const fontSizeConfig = theme('fontSize');
@@ -300,11 +299,13 @@ module.exports = {
300
299
  const [fontSizeMobile, optionsMobile] = fontSizeConfig[`mobile-${value}`] ?? [];
301
300
 
302
301
  return {
302
+ fontFamily: theme(`fontFamily.mobile-${value}`) ?? theme(`fontFamily.${value}`),
303
303
  fontWeight: theme(`fontWeight.mobile-${value}`) ?? theme(`fontWeight.${value}`),
304
304
  fontSize: fontSizeMobile ?? fontSizeDesktop,
305
305
  lineHeight: optionsMobile?.lineHeight ?? optionsDesktop?.lineHeight,
306
306
 
307
307
  [`@media (min-width: ${theme('screens.md')})`]: {
308
+ fontFamily: theme(`fontFamily.${value}`),
308
309
  fontWeight: theme(`fontWeight.${value}`),
309
310
  fontSize: fontSizeDesktop,
310
311
  lineHeight: optionsDesktop?.lineHeight,
@@ -334,18 +335,10 @@ module.exports = {
334
335
  'inherit': 'inherit',
335
336
  },
336
337
  });
337
-
338
- // Default Styles
339
- addBase({
340
- ':root': {
341
- fontSize: theme('fontSize.body-1-regular'),
342
- fontWeight: theme('fontWeight.body-1-regular'),
343
- },
344
- });
345
338
  }),
346
339
 
347
340
  // Iconography
348
- plugin(({matchUtilities}) => {
341
+ plugin(({ matchUtilities }) => {
349
342
  matchUtilities({
350
343
  'iconography': (value) => ({
351
344
  fontFamily: '"Material Symbols Outlined"',
@@ -365,7 +358,7 @@ module.exports = {
365
358
  }),
366
359
 
367
360
  // Theme
368
- plugin(({matchUtilities, addUtilities, theme}) => {
361
+ plugin(({ matchUtilities, addUtilities, theme }) => {
369
362
  // Presets
370
363
  matchUtilities({
371
364
  'theme-preset-1': (value) => {