@typestyles/astro 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -74,9 +74,11 @@ When `extract.modules` resolves (or a [convention entry](https://typestyles.dev/
74
74
  ```astro
75
75
  ---
76
76
  // src/components/Card.astro
77
- import { styles } from 'typestyles';
77
+ import { createTypeStyles } from 'typestyles';
78
78
 
79
- const card = styles.component('card', {
79
+ const { recipe } = createTypeStyles({ scopeId: 'app' });
80
+
81
+ const card = recipe('card', {
80
82
  base: { padding: '16px', borderRadius: '8px' },
81
83
  });
82
84
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typestyles/astro",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Astro integration for typestyles (dev HMR, production CSS extraction)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -37,7 +37,7 @@
37
37
  "astro": ">=4.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@typestyles/vite": "0.4.5"
40
+ "@typestyles/vite": "0.5.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "astro": "^5.6.1",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^5.4.0",
47
47
  "vite": "^6.0.0",
48
48
  "vitest": "^3.0.0",
49
- "typestyles": "0.25.0"
49
+ "typestyles": "1.0.0"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --external astro,@typestyles/vite",