@onereach/styles 2.37.3-beta.2442.0 → 2.37.3-beta.2443.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 +7 -0
- package/font.css +0 -8
- package/main-v3.css +2 -0
- package/main.css +2 -0
- package/package.json +3 -2
- package/tailwind.config.preset.js +11 -9
package/base.layer.css
ADDED
package/font.css
CHANGED
package/main-v3.css
CHANGED
package/main.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "2.37.3-beta.
|
|
3
|
+
"version": "2.37.3-beta.2443.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,14 @@ module.exports = {
|
|
|
151
151
|
fontFamily: {
|
|
152
152
|
...parseFontFamilyTokens(typographyTokens),
|
|
153
153
|
'inherit': 'inherit',
|
|
154
|
-
|
|
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'],
|
|
155
157
|
},
|
|
156
158
|
|
|
157
159
|
fontSize: {
|
|
158
160
|
...parseFontSizeTokens(typographyTokens),
|
|
159
|
-
'inherit': ['inherit', {lineHeight: 'inherit'}],
|
|
161
|
+
'inherit': ['inherit', { lineHeight: 'inherit' }],
|
|
160
162
|
},
|
|
161
163
|
|
|
162
164
|
fontWeight: {
|
|
@@ -182,7 +184,7 @@ module.exports = {
|
|
|
182
184
|
|
|
183
185
|
plugins: [
|
|
184
186
|
// Core
|
|
185
|
-
plugin(({addVariant, addUtilities}) => {
|
|
187
|
+
plugin(({ addVariant, addUtilities }) => {
|
|
186
188
|
addVariant('enabled', '&:not([disabled])');
|
|
187
189
|
addVariant('disabled', '&[disabled]');
|
|
188
190
|
|
|
@@ -237,10 +239,10 @@ module.exports = {
|
|
|
237
239
|
}),
|
|
238
240
|
|
|
239
241
|
// Layout
|
|
240
|
-
plugin(({matchUtilities}) => {
|
|
242
|
+
plugin(({ matchUtilities }) => {
|
|
241
243
|
matchUtilities({
|
|
242
244
|
'layout': (value) => {
|
|
243
|
-
const {prefix = '', direction} = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
|
|
245
|
+
const { prefix = '', direction } = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
|
|
244
246
|
|
|
245
247
|
return {
|
|
246
248
|
display: prefix + 'flex',
|
|
@@ -267,7 +269,7 @@ module.exports = {
|
|
|
267
269
|
}),
|
|
268
270
|
|
|
269
271
|
// Interactivity
|
|
270
|
-
plugin(({addUtilities}) => {
|
|
272
|
+
plugin(({ addUtilities }) => {
|
|
271
273
|
addUtilities({
|
|
272
274
|
'.interactivity-auto': {
|
|
273
275
|
pointerEvents: 'auto',
|
|
@@ -291,7 +293,7 @@ module.exports = {
|
|
|
291
293
|
}),
|
|
292
294
|
|
|
293
295
|
// Typography
|
|
294
|
-
plugin(({matchUtilities, addBase, theme}) => {
|
|
296
|
+
plugin(({ matchUtilities, addBase, theme }) => {
|
|
295
297
|
matchUtilities({
|
|
296
298
|
'typography': (value) => {
|
|
297
299
|
const fontSizeConfig = theme('fontSize');
|
|
@@ -345,7 +347,7 @@ module.exports = {
|
|
|
345
347
|
}),
|
|
346
348
|
|
|
347
349
|
// Iconography
|
|
348
|
-
plugin(({matchUtilities}) => {
|
|
350
|
+
plugin(({ matchUtilities }) => {
|
|
349
351
|
matchUtilities({
|
|
350
352
|
'iconography': (value) => ({
|
|
351
353
|
fontFamily: '"Material Symbols Outlined"',
|
|
@@ -365,7 +367,7 @@ module.exports = {
|
|
|
365
367
|
}),
|
|
366
368
|
|
|
367
369
|
// Theme
|
|
368
|
-
plugin(({matchUtilities, addUtilities, theme}) => {
|
|
370
|
+
plugin(({ matchUtilities, addUtilities, theme }) => {
|
|
369
371
|
// Presets
|
|
370
372
|
matchUtilities({
|
|
371
373
|
'theme-preset-1': (value) => {
|