@public-ui/themes 3.0.2-f97556ada8a20e9abe2dbb519562bad234f7191b.0 → 3.0.2-rc.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/README.md +16 -14
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -19,9 +19,9 @@ More about the **project** can be found in the [documentation](https://public-ui
|
|
|
19
19
|
You can install the KoliBri themes with `npm`, `pnpm` or `yarn`:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm i
|
|
23
|
-
pnpm i
|
|
24
|
-
yarn add
|
|
22
|
+
npm i @public-ui/themes
|
|
23
|
+
pnpm i @public-ui/themes
|
|
24
|
+
yarn add @public-ui/themes
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -34,26 +34,28 @@ import { defineCustomElements } from '@public-ui/components/dist/loader';
|
|
|
34
34
|
import { DEFAULT, ECL_EC, ECL_EU } from '@public-ui/themes';
|
|
35
35
|
|
|
36
36
|
register(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
DEFAULT,
|
|
38
|
+
// or provide an array to register multiple themes:
|
|
39
|
+
// [DEFAULT, ECL_EC, ECL_EU]
|
|
40
|
+
defineCustomElements,
|
|
41
41
|
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
.then(() => {
|
|
43
|
+
/* KoliBri ready */
|
|
44
|
+
})
|
|
45
|
+
.catch((error) => {
|
|
46
|
+
/* Handle errors */
|
|
47
|
+
});
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
Override theme tokens in your own stylesheet as needed. The [default theme README](./default/README.md) lists all available variables.
|
|
51
|
+
|
|
50
52
|
## Important settings
|
|
51
53
|
|
|
52
54
|
### Usage of pnpm
|
|
53
55
|
|
|
54
56
|
We use **pnpm** as package manager and there is a tiny typing issue with the default typescript setup.
|
|
55
57
|
|
|
56
|
-
**What
|
|
58
|
+
**What do we know?**
|
|
57
59
|
|
|
58
60
|
This seems to be a general issue:
|
|
59
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/themes",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-rc.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"rollup-plugin-postcss": "4.0.2",
|
|
58
58
|
"sass-embedded": "1.89.2",
|
|
59
59
|
"typescript": "5.8.3",
|
|
60
|
-
"@public-ui/components": "3.0.2-
|
|
60
|
+
"@public-ui/components": "3.0.2-rc.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@public-ui/components": "3.0.2-
|
|
63
|
+
"@public-ui/components": "3.0.2-rc.0"
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": false,
|
|
66
66
|
"type": "module",
|