@theme-registry/refract-styled-components 0.1.0 → 0.1.1
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 +23 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @theme-registry/refract-styled-components
|
|
2
|
+
|
|
3
|
+
The **styled-components adapter** for [refract](https://www.npmjs.com/package/@theme-registry/refract) —
|
|
4
|
+
emits TS/JS theme modules: a literal `theme` object, tree-shakeable `css` recipes, a `GlobalStyle`, and
|
|
5
|
+
(in TS) a `theme.d.ts` that augments styled-components' `DefaultTheme`.
|
|
6
|
+
|
|
7
|
+
**Docs, live playground & API:** <https://theme-registry.github.io/refract/>
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @theme-registry/refract @theme-registry/refract-styled-components styled-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { createTheme } from "@theme-registry/refract";
|
|
15
|
+
import { createStyledComponentsAdapter } from "@theme-registry/refract-styled-components";
|
|
16
|
+
|
|
17
|
+
const theme = createTheme(raw, { adapter: createStyledComponentsAdapter() });
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Peer-depends on `@theme-registry/refract` and `styled-components`. See the
|
|
21
|
+
[styled-components adapter docs](https://theme-registry.github.io/refract/a-sc).
|
|
22
|
+
|
|
23
|
+
MIT © Petyo Stoyanov
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theme-registry/refract-styled-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The styled-components output adapter for @theme-registry/refract — emits TS/JS theme modules (literal theme object + tree-shakeable css recipes + GlobalStyle).",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Petyo Stoyanov",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"styled-components": "^6.0.0",
|
|
36
|
-
"@theme-registry/refract": "^0.1.
|
|
36
|
+
"@theme-registry/refract": "^0.1.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"styled-components": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"styled-components": "^6.4.0",
|
|
50
50
|
"typescript": "^5.4.2",
|
|
51
51
|
"vitest": "^4.1.10",
|
|
52
|
-
"@theme-registry/refract": "^0.1.
|
|
52
|
+
"@theme-registry/refract": "^0.1.1",
|
|
53
53
|
"@theme-registry/theme-fixtures": "^0.0.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|