@konce-pt/styles 0.1.0 → 0.1.2

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 ADDED
@@ -0,0 +1,75 @@
1
+ <div align="center">
2
+
3
+ # Koncept UI — Base Styles
4
+
5
+ **Base CSS for Koncept UI — reset, cascade layers and neutral light/dark theme.**
6
+
7
+ [![npm version](https://img.shields.io/npm/v/@konce-pt/styles?color=%233b82f6&label=npm)](https://www.npmjs.com/package/@konce-pt/styles)
8
+ [![minzipped size](https://img.shields.io/bundlephobia/minzip/@konce-pt/styles)](https://bundlephobia.com/package/@konce-pt/styles)
9
+ [![license](https://img.shields.io/npm/l/@konce-pt/styles?color=%2310b981)](https://gitlab.com/konce-pt/koncept-ui/-/blob/main/LICENSE)
10
+
11
+ </div>
12
+
13
+ ---
14
+
15
+ The base stylesheet for [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): a modern reset, typography, and CSS **`@layer`** ordering (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) so consumers can override styles without specificity wars. Built on top of [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens).
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ npm i @konce-pt/styles @konce-pt/tokens
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ Load **after** the tokens (it consumes the `--kpt-*` custom properties at runtime).
26
+
27
+ **Angular CLI** — `angular.json → styles[]` (tokens first, then this, then your `src/styles.scss`):
28
+
29
+ ```jsonc
30
+ "styles": [
31
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
32
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
33
+ "node_modules/@konce-pt/styles/index.css",
34
+ "src/styles.scss"
35
+ ]
36
+ ```
37
+
38
+ **Vite / webpack** — import directly (after the tokens CSS):
39
+
40
+ ```ts
41
+ import '@konce-pt/tokens/css';
42
+ import '@konce-pt/tokens/css/dark';
43
+ import '@konce-pt/styles';
44
+ ```
45
+
46
+ Or compose the SCSS source into your own build:
47
+
48
+ ```scss
49
+ @use '@konce-pt/styles/scss';
50
+ ```
51
+
52
+ ## License
53
+
54
+ [MIT](./LICENSE) © konce.pt
55
+
56
+ ---
57
+
58
+ ## 🇵🇱 Wersja polska
59
+
60
+ Bazowy arkusz stylów [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): nowoczesny reset, typografia i warstwy CSS **`@layer`** (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) — łatwe nadpisywanie bez wojen specyficzności. Bazuje na [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens); ładuj **po** tokenach.
61
+
62
+ **Angular CLI** — `angular.json → styles[]` (najpierw tokeny, potem ten plik, na końcu Twój `src/styles.scss`):
63
+
64
+ ```jsonc
65
+ "styles": [
66
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
67
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
68
+ "node_modules/@konce-pt/styles/index.css",
69
+ "src/styles.scss"
70
+ ]
71
+ ```
72
+
73
+ **Vite/webpack** — `import '@konce-pt/tokens/css'; import '@konce-pt/tokens/css/dark'; import '@konce-pt/styles';`
74
+
75
+ Licencja: [MIT](./LICENSE) © konce.pt
package/index.css CHANGED
@@ -5,10 +5,12 @@
5
5
  * Komponenty (@konce-pt/angular) deklarują style w warstwie `kpt.components`,
6
6
  * dzięki czemu aplikacja łatwo je nadpisuje bez wojny specyficzności.
7
7
  *
8
- * Wymaga wcześniejszego zaimportowania tokenów:
9
- * import '@konce-pt/tokens/css';
10
- * import '@konce-pt/tokens/css/dark';
11
- * import '@konce-pt/styles';
8
+ * Wymaga wcześniejszego załadowania tokenów (custom properties --kpt-*).
9
+ * Angular CLI — angular.json → styles[] (kolejność: tokeny, potem ten plik):
10
+ * node_modules/@konce-pt/tokens/dist/css/tokens.css
11
+ * node_modules/@konce-pt/tokens/dist/css/tokens.dark.css
12
+ * node_modules/@konce-pt/styles/index.css
13
+ * Vite/webpack — import '@konce-pt/tokens/css'; import '@konce-pt/tokens/css/dark'; import '@konce-pt/styles';
12
14
  */
13
15
  @layer kpt.reset, kpt.base, kpt.components, kpt.utilities;
14
16
  @layer kpt.reset {
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,23 +1,48 @@
1
1
  {
2
2
  "name": "@konce-pt/styles",
3
- "version": "0.1.0",
4
- "description": "Bazowy CSS Koncept UI — reset, warstwy @layer, style bazowe motywu (źródło SCSS).",
3
+ "version": "0.1.2",
4
+ "description": "Base CSS for Koncept UI — reset, cascade @layer ordering and neutral light/dark theme (SCSS source).",
5
5
  "license": "MIT",
6
6
  "author": "konce.pt",
7
+ "homepage": "https://gitlab.com/konce-pt/koncept-ui#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://gitlab.com/konce-pt/koncept-ui.git",
11
+ "directory": "packages/styles"
12
+ },
13
+ "bugs": {
14
+ "url": "https://gitlab.com/konce-pt/koncept-ui/-/issues"
15
+ },
16
+ "keywords": [
17
+ "css",
18
+ "css-layers",
19
+ "design-system",
20
+ "theme",
21
+ "dark-mode",
22
+ "reset",
23
+ "koncept-ui"
24
+ ],
7
25
  "sideEffects": [
8
26
  "*.css"
9
27
  ],
10
28
  "exports": {
11
- ".": "./index.css",
12
- "./index.css": "./index.css",
29
+ ".": {
30
+ "types": "./index.d.ts",
31
+ "default": "./index.css"
32
+ },
33
+ "./index.css": {
34
+ "types": "./index.d.ts",
35
+ "default": "./index.css"
36
+ },
13
37
  "./scss": "./src/index.scss"
14
38
  },
15
39
  "files": [
16
40
  "index.css",
41
+ "index.d.ts",
17
42
  "src"
18
43
  ],
19
44
  "peerDependencies": {
20
- "@konce-pt/tokens": "0.1.0"
45
+ "@konce-pt/tokens": "0.1.2"
21
46
  },
22
47
  "devDependencies": {
23
48
  "sass": "^1.77.0"
package/src/index.scss CHANGED
@@ -4,10 +4,12 @@
4
4
  * Komponenty (@konce-pt/angular) deklarują style w warstwie `kpt.components`,
5
5
  * dzięki czemu aplikacja łatwo je nadpisuje bez wojny specyficzności.
6
6
  *
7
- * Wymaga wcześniejszego zaimportowania tokenów:
8
- * import '@konce-pt/tokens/css';
9
- * import '@konce-pt/tokens/css/dark';
10
- * import '@konce-pt/styles';
7
+ * Wymaga wcześniejszego załadowania tokenów (custom properties --kpt-*).
8
+ * Angular CLI — angular.json → styles[] (kolejność: tokeny, potem ten plik):
9
+ * node_modules/@konce-pt/tokens/dist/css/tokens.css
10
+ * node_modules/@konce-pt/tokens/dist/css/tokens.dark.css
11
+ * node_modules/@konce-pt/styles/index.css
12
+ * Vite/webpack — import '@konce-pt/tokens/css'; import '@konce-pt/tokens/css/dark'; import '@konce-pt/styles';
11
13
  */
12
14
  @layer kpt.reset, kpt.base, kpt.components, kpt.utilities;
13
15