ssovee-os-web-ui 0.1.5 → 0.1.7
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 +17 -4
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/package.json +3 -1
- package/tailwind.config.js +6 -0
- package/theme.css +3 -0
package/README.md
CHANGED
|
@@ -49,15 +49,28 @@ export default {
|
|
|
49
49
|
};
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
For Tailwind v4,
|
|
52
|
+
For Tailwind v4, import the package theme stylesheet directly in your global CSS. The package theme entry already carries the Tailwind bootstrap and library source scanning for the built dist output, so consumers do not need to repeat the `@source`/`@import "tailwindcss"` lines in their app CSS:
|
|
53
53
|
|
|
54
54
|
```css
|
|
55
|
-
@import "tailwindcss";
|
|
56
|
-
@source "../node_modules/ssovee-os-web-ui/dist";
|
|
57
|
-
@config "../tailwind.config.js";
|
|
58
55
|
@import "ssovee-os-web-ui/theme.css";
|
|
59
56
|
```
|
|
60
57
|
|
|
58
|
+
If you use a project-level `tailwind.config.js`, the package also publishes a ready-to-reference config entry that already applies the preset by default:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
import ssoveePreset from "ssovee-os-web-ui/tailwind-preset";
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
presets: [ssoveePreset],
|
|
65
|
+
};
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
You can also point your app at the published config file directly via the package export:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
import ssoveePreset from "ssovee-os-web-ui/tailwind.config.js";
|
|
72
|
+
```
|
|
73
|
+
|
|
61
74
|
The preset includes the library's semantic colors (`primary`, `secondary`, `surface-*`, `brand-color`, `border-1`, and `muted`). Override the `--ssovee-*` CSS variables in your application to customize the theme.
|
|
62
75
|
|
|
63
76
|
## Usage
|
package/dist/index.css
CHANGED
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme.css"],"sourcesContent":[":root {\n --ssovee-primary: 15 23 42;\n --ssovee-secondary: 30 41 59;\n --ssovee-surface-1: 51 65 85;\n --ssovee-surface-2: 40 53 72;\n --ssovee-surface-3: 30 41 59;\n --ssovee-surface-4: 51 65 85;\n --ssovee-brand-color: 59 130 246;\n --ssovee-border-1: 71 85 105;\n --ssovee-muted: 100 116 139;\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../theme.css"],"sourcesContent":["@import \"tailwindcss\";\n@source \"./dist\";\n\n:root {\n --ssovee-primary: 15 23 42;\n --ssovee-secondary: 30 41 59;\n --ssovee-surface-1: 51 65 85;\n --ssovee-surface-2: 40 53 72;\n --ssovee-surface-3: 30 41 59;\n --ssovee-surface-4: 51 65 85;\n --ssovee-brand-color: 59 130 246;\n --ssovee-border-1: 71 85 105;\n --ssovee-muted: 100 116 139;\n}\n"],"mappings":";;;AACA,QAAQ;AAER;AACE,oBAAkB,GAAG,GAAG;AACxB,sBAAoB,GAAG,GAAG;AAC1B,sBAAoB,GAAG,GAAG;AAC1B,sBAAoB,GAAG,GAAG;AAC1B,sBAAoB,GAAG,GAAG;AAC1B,sBAAoB,GAAG,GAAG;AAC1B,wBAAsB,GAAG,IAAI;AAC7B,qBAAmB,GAAG,GAAG;AACzB,kBAAgB,IAAI,IAAI;AAC1B;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ssovee-os-web-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Reusable UI component library for shared applications.",
|
|
5
5
|
"author": "SSOVEE",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"require": "./dist/index.cjs"
|
|
31
31
|
},
|
|
32
32
|
"./tailwind-preset": "./tailwind-preset.js",
|
|
33
|
+
"./tailwind.config.js": "./tailwind.config.js",
|
|
33
34
|
"./theme.css": "./theme.css"
|
|
34
35
|
},
|
|
35
36
|
"files": [
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"README.md",
|
|
38
39
|
"LICENSE",
|
|
39
40
|
"tailwind-preset.js",
|
|
41
|
+
"tailwind.config.js",
|
|
40
42
|
"theme.css"
|
|
41
43
|
],
|
|
42
44
|
"scripts": {
|