@onereach/styles 2.14.2 → 2.14.3-next.984.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/main.css CHANGED
@@ -1,3 +1,6 @@
1
+ @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap";
2
+ @import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24..48,400..700,0..1,0";
3
+
1
4
  @import "tailwindcss/base.css";
2
5
  @import "tailwindcss/components.css";
3
6
  @import "tailwindcss/utilities.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "2.14.2",
3
+ "version": "2.14.3-next.984.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "main": "./main.css",
6
6
  "unpkg": "./main.css",
@@ -48,6 +48,5 @@
48
48
  "dependencies": {
49
49
  "@tailwindcss/typography": "^0.5.4",
50
50
  "tailwindcss": "^3.1.3"
51
- },
52
- "gitHead": "a3bec18d4acd5f1cd9471d35ad3a9ab3dfed61c5"
51
+ }
53
52
  }
@@ -133,7 +133,7 @@ module.exports = {
133
133
  fontFamily: {
134
134
  ...parseFontFamilyTokens(typographyTokens),
135
135
  'inherit': 'inherit',
136
- 'icon': '"Material Symbols Rounded"',
136
+ 'icon': '"Material Symbols Outlined"',
137
137
  },
138
138
 
139
139
  fontSize: {
@@ -153,34 +153,8 @@ module.exports = {
153
153
  },
154
154
 
155
155
  plugins: [
156
- plugin(({ addBase, addVariant, addUtilities, theme }) => {
156
+ plugin(({ addBase, addUtilities, addVariant, theme }) => {
157
157
  addBase({
158
- '@font-face': [
159
- {
160
- 'font-family': '"Inter"',
161
- 'font-style': 'normal',
162
- 'font-weight': '400',
163
- 'font-display': 'swap',
164
- 'src': 'url("https://rsms.me/inter/font-files/Inter-Regular.woff2?v=3.19") format("woff2")',
165
- },
166
-
167
- {
168
- 'font-family': '"Inter"',
169
- 'font-style': 'normal',
170
- 'font-weight': '600',
171
- 'font-display': 'swap',
172
- 'src': 'url("https://rsms.me/inter/font-files/Inter-SemiBold.woff2?v=3.19") format("woff2")',
173
- },
174
-
175
- {
176
- 'font-family': '"Inter"',
177
- 'font-style': 'normal',
178
- 'font-weight': '700',
179
- 'font-display': 'swap',
180
- 'src': 'url("https://rsms.me/inter/font-files/Inter-Bold.woff2?v=3.19") format("woff2")',
181
- },
182
- ],
183
-
184
158
  ':root': {
185
159
  fontFamily: theme('fontFamily.body-1-regular'),
186
160
  fontSize: theme('fontSize.body-1-regular'),
@@ -188,6 +162,33 @@ module.exports = {
188
162
  },
189
163
  });
190
164
 
165
+ addUtilities({
166
+ '.font-icon-outlined': {
167
+ fontVariationSettings: '"opsz" 48, "wght" 400, "FILL" 0, "GRAD" 0',
168
+ },
169
+
170
+ '.font-icon-filled': {
171
+ fontVariationSettings: '"opsz" 48, "wght" 400, "FILL" 1, "GRAD" 0',
172
+ },
173
+
174
+ '.font-icon-outlined-bold': {
175
+ fontVariationSettings: '"opsz" 24, "wght" 700, "FILL" 0, "GRAD" 0',
176
+ },
177
+
178
+ '.font-icon-filled-bold': {
179
+ fontVariationSettings: '"opsz" 24, "wght" 700, "FILL" 1, "GRAD" 0',
180
+ },
181
+ });
182
+
183
+ // TODO: Remove when migration complete
184
+ addUtilities({
185
+ '.visually-hidden': {
186
+ width: 0,
187
+ height: 0,
188
+ visibility: 'hidden',
189
+ },
190
+ });
191
+
191
192
  addVariant('hover', '&:hover:not(.pointer-events-none)');
192
193
  addVariant('focus-visible', '&:focus-visible:not(.pointer-events-none)');
193
194
  addVariant('focus-within', '&:focus-within:not(.pointer-events-none)');
@@ -210,15 +211,6 @@ module.exports = {
210
211
 
211
212
  addVariant('enabled', ['&:enabled', '&:not([disabled])']);
212
213
  addVariant('disabled', ['&:disabled', '&[disabled]']);
213
-
214
- // TODO: Remove when migration complete
215
- addUtilities({
216
- '.visually-hidden': {
217
- width: 0,
218
- height: 0,
219
- visibility: 'hidden',
220
- },
221
- });
222
214
  }),
223
215
  ],
224
216
  };