@theme-registry/refract-scss 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.
Files changed (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @theme-registry/refract-scss
2
+
3
+ > **Experimental.** Reachable via the npm `experimental` dist-tag; the output shape may still change.
4
+
5
+ The **SCSS adapter** for [refract](https://www.npmjs.com/package/@theme-registry/refract) — emits Sass
6
+ `$variables` + classes.
7
+
8
+ **Docs, live playground & API:** <https://theme-registry.github.io/refract/>
9
+
10
+ ```bash
11
+ npm install @theme-registry/refract @theme-registry/refract-scss
12
+ ```
13
+
14
+ ```ts
15
+ import { createTheme } from "@theme-registry/refract";
16
+ import { createScssAdapter } from "@theme-registry/refract-scss";
17
+
18
+ const theme = createTheme(raw, { adapter: createScssAdapter() });
19
+ theme.scss; // $variables + classes
20
+ ```
21
+
22
+ Options: `inline`, `indent`, `prefix`, cascade `@layer`. Peer-depends on `@theme-registry/refract`.
23
+ See the [SCSS adapter docs](https://theme-registry.github.io/refract/a-scss).
24
+
25
+ MIT © Petyo Stoyanov
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theme-registry/refract-scss",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The SCSS output adapter for @theme-registry/refract — lowers a ThemeModel to SCSS variables + mixins.",
5
5
  "author": {
6
6
  "name": "Petyo Stoyanov",
@@ -32,7 +32,7 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "peerDependencies": {
35
- "@theme-registry/refract": "^0.1.0"
35
+ "@theme-registry/refract": "^0.1.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rollup/plugin-terser": "^0.4.4",
@@ -42,8 +42,8 @@
42
42
  "rollup-plugin-peer-deps-external": "^2.2.4",
43
43
  "typescript": "^5.4.2",
44
44
  "vitest": "^4.1.10",
45
- "@theme-registry/theme-fixtures": "^0.0.0",
46
- "@theme-registry/refract": "^0.1.0"
45
+ "@theme-registry/refract": "^0.1.1",
46
+ "@theme-registry/theme-fixtures": "^0.0.0"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "rollup -c",