@typestyles/next 0.0.0-unstable.df708abe489f → 0.0.0-unstable.e0f6d154e2c2
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/README.md +19 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -231,14 +231,17 @@ import { createTypeStyles } from 'typestyles';
|
|
|
231
231
|
|
|
232
232
|
const { recipe } = createTypeStyles({ scopeId: 'app' });
|
|
233
233
|
|
|
234
|
-
const button = recipe(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
const button = recipe({
|
|
235
|
+
name: 'button',
|
|
236
|
+
styles: {
|
|
237
|
+
base: {
|
|
238
|
+
padding: '12px 24px',
|
|
239
|
+
backgroundColor: '#0066ff',
|
|
240
|
+
color: 'white',
|
|
241
|
+
border: 'none',
|
|
242
|
+
borderRadius: '6px',
|
|
243
|
+
cursor: 'pointer',
|
|
244
|
+
},
|
|
242
245
|
},
|
|
243
246
|
});
|
|
244
247
|
|
|
@@ -273,11 +276,14 @@ export const spacing = tokens.create('space', {
|
|
|
273
276
|
// app/page.tsx
|
|
274
277
|
import { recipe, colors, spacing } from './styles';
|
|
275
278
|
|
|
276
|
-
const card = recipe(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
const card = recipe({
|
|
280
|
+
name: 'card',
|
|
281
|
+
styles: {
|
|
282
|
+
base: {
|
|
283
|
+
padding: spacing.md,
|
|
284
|
+
backgroundColor: colors.primary,
|
|
285
|
+
borderRadius: '8px',
|
|
286
|
+
},
|
|
281
287
|
},
|
|
282
288
|
});
|
|
283
289
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typestyles/next",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.e0f6d154e2c2",
|
|
4
4
|
"description": "Next.js integration for typestyles SSR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@typestyles/build-runner": "0.0.0-unstable.
|
|
71
|
+
"@typestyles/build-runner": "0.0.0-unstable.e0f6d154e2c2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"eslint": "^9.39.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react": "^18.0.0",
|
|
81
81
|
"react-dom": "^18.0.0",
|
|
82
82
|
"tsup": "^8.0.0",
|
|
83
|
-
"typestyles": "0.0.0-unstable.
|
|
83
|
+
"typestyles": "0.0.0-unstable.e0f6d154e2c2",
|
|
84
84
|
"typescript": "^5.4.0",
|
|
85
85
|
"webpack": "^5.97.1"
|
|
86
86
|
},
|