@public-ui/theme-bwst 4.1.2-rc.3 → 4.1.4-rc.6
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 +67 -66
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +20 -18
- package/dist/index.cjs +47 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +47 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Public UI
|
|
1
|
+
# Public UI – BWSt Theme
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@public-ui/theme-bwst)
|
|
4
4
|
[](https://github.com/public-ui/kolibri/blob/main/LICENSE)
|
|
@@ -8,9 +8,15 @@
|
|
|
8
8
|
[](https://bundlephobia.com/result?p=@public-ui/theme-bwst)
|
|
9
9
|

|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Das BWSt Theme erweitert die [Public UI Web Component Library](https://public-ui.github.io) um ein individuelles Design.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Installation & Integration
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @public-ui/components @public-ui/theme-bwst
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**React-Beispiel:**
|
|
14
20
|
|
|
15
21
|
```tsx
|
|
16
22
|
import { register } from '@public-ui/components';
|
|
@@ -18,7 +24,7 @@ import { defineCustomElements } from '@public-ui/components/loader';
|
|
|
18
24
|
import { BWSt } from '@public-ui/theme-bwst';
|
|
19
25
|
|
|
20
26
|
register(BWSt, defineCustomElements).then(() => {
|
|
21
|
-
ReactDOM.createRoot(document.getElementById('root')
|
|
27
|
+
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
22
28
|
<React.StrictMode>
|
|
23
29
|
<App />
|
|
24
30
|
</React.StrictMode>,
|
|
@@ -26,37 +32,69 @@ register(BWSt, defineCustomElements).then(() => {
|
|
|
26
32
|
});
|
|
27
33
|
```
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
Weitere Details: [Getting started](https://public-ui.github.io/docs/get-started/first-steps#einbinden-in-ein-bestehendes-projekt)
|
|
36
|
+
|
|
37
|
+
## Beitrag zum Theme (Contribution)
|
|
38
|
+
|
|
39
|
+
Du möchtest das BWSt-Theme verbessern oder anpassen? So gehst du vor:
|
|
40
|
+
|
|
41
|
+
1. **pnpm installieren**
|
|
42
|
+
- [pnpm](https://pnpm.io/) wird für die Entwicklung benötigt. Installiere pnpm global, falls noch nicht vorhanden:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install -g pnpm
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
2. **Repository forken**
|
|
49
|
+
- Klicke auf [Fork](https://github.com/public-ui/kolibri) auf GitHub und erstelle deinen eigenen Fork.
|
|
50
|
+
|
|
51
|
+
3. **Lokales Setup**
|
|
52
|
+
- Klone deinen Fork:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
git clone https://github.com/<DEIN_GITHUB_USER>/kolibri.git
|
|
56
|
+
cd kolibri/lib/packages/themes/bwst
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- Installiere die Abhängigkeiten im Monorepo-Hauptverzeichnis:
|
|
30
60
|
|
|
31
|
-
|
|
61
|
+
```bash
|
|
62
|
+
pnpm i
|
|
63
|
+
pnpm build
|
|
64
|
+
```
|
|
32
65
|
|
|
33
|
-
|
|
66
|
+
4. **Entwicklung starten**
|
|
67
|
+
- Wechsle ins Theme-Verzeichnis und starte den Watch-Modus:
|
|
34
68
|
|
|
35
|
-
|
|
36
|
-
|
|
69
|
+
```bash
|
|
70
|
+
cd kolibri/lib/packages/themes/bwst
|
|
71
|
+
pnpm start
|
|
72
|
+
```
|
|
37
73
|
|
|
38
|
-
|
|
74
|
+
- Passe die Dateien in `src/` nach deinen Wünschen an.
|
|
39
75
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| `--kolibri-border-radius` | `5px` | Border radius for rounded elements |
|
|
43
|
-
| `--kolibri-font-family` | `Verdana, Arial, Calibri, Helvetica, sans-serif` | Default font family |
|
|
44
|
-
| `--kolibri-font-size` | `16px` | Base font size |
|
|
45
|
-
| `--kolibri-spacing` | `0.25rem` | Base spacing between elements |
|
|
46
|
-
| `--kolibri-border-width` | `1px` | Border width |
|
|
47
|
-
| `--kolibri-color-primary` | `#004b76` | Primary color |
|
|
48
|
-
| `--kolibri-color-primary-variant` | `#0077b6` | Alternative primary color |
|
|
49
|
-
| `--kolibri-color-secondary` | `#ccebf7` | Secondary color |
|
|
50
|
-
| `--kolibri-color-danger` | `#c0003c` | Color for errors and dangerous actions |
|
|
51
|
-
| `--kolibri-color-warning` | `#c44931` | Warning color |
|
|
52
|
-
| `--kolibri-color-success` | `#005c45` | Success color |
|
|
53
|
-
| `--kolibri-color-subtle` | `#576164` | Subtle accent color for borders |
|
|
54
|
-
| `--kolibri-color-light` | `#ffffff` | Light background color |
|
|
55
|
-
| `--kolibri-color-text` | `#202020` | Text color |
|
|
56
|
-
| `--kolibri-color-mute` | `#f2f3f4` | Color for disabled elements |
|
|
57
|
-
| `--kolibri-color-mute-variant` | `#bec5c9` | Alternate disabled color |
|
|
76
|
+
5. **Commit & Pull Request**
|
|
77
|
+
- Committe deine Änderungen und pushe sie in deinen Fork:
|
|
58
78
|
|
|
59
|
-
|
|
79
|
+
```bash
|
|
80
|
+
git add .
|
|
81
|
+
git commit -m "feat(theme-bwst): <deine Änderung>"
|
|
82
|
+
git push origin <dein-branch>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
- Erstelle einen Pull Request auf <https://github.com/public-ui/kolibri/compare>
|
|
86
|
+
|
|
87
|
+
**Hinweise:**
|
|
88
|
+
|
|
89
|
+
- Bitte halte dich an die [Contributing Guidelines](../../../CONTRIBUTING.md).
|
|
90
|
+
- Vor dem Commit immer `pnpm format` und `pnpm lint` ausführen.
|
|
91
|
+
- Für größere Änderungen gerne vorab ein [Issue](https://github.com/public-ui/kolibri/issues/new) eröffnen.
|
|
92
|
+
|
|
93
|
+
## Weitere Informationen
|
|
94
|
+
|
|
95
|
+
- [Dokumentation](https://public-ui.github.io)
|
|
96
|
+
- [Issues](https://github.com/public-ui/kolibri/issues)
|
|
97
|
+
- [Pull Requests](https://github.com/public-ui/kolibri/pulls)
|
|
60
98
|
|
|
61
99
|
Import and register the theme:
|
|
62
100
|
|
|
@@ -67,40 +105,3 @@ import { BWSt } from '@public-ui/theme-bwst';
|
|
|
67
105
|
|
|
68
106
|
register(BWSt, defineCustomElements);
|
|
69
107
|
```
|
|
70
|
-
|
|
71
|
-
For more details and options see [Getting started](https://public-ui.github.io/docs/get-started/first-steps#einbinden-in-ein-bestehendes-projekt).
|
|
72
|
-
|
|
73
|
-
To adjust the design tokens, create a simple stylesheet that overrides the desired custom properties. You do not need to set every property—only those you want to change. Example:
|
|
74
|
-
|
|
75
|
-
```css
|
|
76
|
-
:root {
|
|
77
|
-
--kolibri-border-radius: 3px;
|
|
78
|
-
--kolibri-font-size: 18px;
|
|
79
|
-
--kolibri-spacing: 0.3rem;
|
|
80
|
-
--kolibri-color-primary: #cc006e;
|
|
81
|
-
--kolibri-color-primary-variant: #ff64b9;
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Design Tokens
|
|
86
|
-
|
|
87
|
-
The following tokens are defined in `src/global.scss` and serve as the base for colors, fonts, and spacing across all components.
|
|
88
|
-
|
|
89
|
-
| Token | Default value | Meaning |
|
|
90
|
-
| ------------------------- | ---------------------------------------------------------------------------- | ---------------------------- |
|
|
91
|
-
| `--border-radius` | `var(--kolibri-border-radius, 5px)` | Default border radius |
|
|
92
|
-
| `--font-family` | `var(--kolibri-font-family, Verdana, Arial, Calibri, Helvetica, sans-serif)` | Default font |
|
|
93
|
-
| `--font-size` | `var(--kolibri-font-size, #{to-rem(16)})` | Base font size |
|
|
94
|
-
| `--spacing` | `var(--kolibri-spacing, #{to-rem(4)})` | Standard spacing |
|
|
95
|
-
| `--border-width` | `var(--kolibri-border-width, 1px)` | Border width |
|
|
96
|
-
| `--color-primary` | `var(--kolibri-color-primary, #004b76)` | Primary accent color |
|
|
97
|
-
| `--color-primary-variant` | `var(--kolibri-color-primary-variant, #0077b6)` | Variant of the primary color |
|
|
98
|
-
| `--color-secondary` | `var(--kolibri-color-secondary, #ccebf7)` | Secondary color |
|
|
99
|
-
| `--color-danger` | `var(--kolibri-color-danger, #b4003c)` | Error color |
|
|
100
|
-
| `--color-warning` | `var(--kolibri-color-warning, #c44931)` | Warning color |
|
|
101
|
-
| `--color-success` | `var(--kolibri-color-success, #005c45)` | Success color |
|
|
102
|
-
| `--color-subtle` | `var(--kolibri-color-subtle, #576164)` | Subtle lines and borders |
|
|
103
|
-
| `--color-light` | `var(--kolibri-color-light, #ffffff)` | Light surface color |
|
|
104
|
-
| `--color-text` | `var(--kolibri-color-text, #202020)` | Standard text color |
|
|
105
|
-
| `--color-mute` | `var(--kolibri-color-mute, #f2f3f4)` | Muted color |
|
|
106
|
-
| `--color-mute-variant` | `var(--kolibri-color-mute-variant, #bec5c9)` | Alternate muted color |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "kolicons";
|
|
3
|
+
src: url('kolicons.eot?t=1777369141075'); /* IE9*/
|
|
4
|
+
src: url('kolicons.eot?t=1777369141075#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
5
|
+
url("kolicons.woff2?t=1777369141075") format("woff2"),
|
|
6
|
+
url("kolicons.woff?t=1777369141075") format("woff"),
|
|
7
|
+
url('kolicons.ttf?t=1777369141075') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
|
8
|
+
url('kolicons.svg?t=1777369141075#kolicons') format('svg'); /* iOS 4.1- */
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
@layer kol-component {
|
|
12
|
+
[class^="kolicon-"], [class*=" kolicon-"] {
|
|
13
|
+
font-family: 'kolicons';
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
line-height: 1em;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.kolicon-alert-error::before { content: "\ea01"; }
|
|
21
|
+
.kolicon-alert-error::before { content: "\ea01"; }
|
|
21
22
|
.kolicon-alert-info::before { content: "\ea02"; }
|
|
22
23
|
.kolicon-alert-success::before { content: "\ea03"; }
|
|
23
24
|
.kolicon-alert-warning::before { content: "\ea04"; }
|
|
@@ -45,3 +46,4 @@
|
|
|
45
46
|
.kolicon-up::before { content: "\ea1a"; }
|
|
46
47
|
.kolicon-version::before { content: "\ea1b"; }
|
|
47
48
|
|
|
49
|
+
}
|