@moser-inc/moser-labs-themes 0.1.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 +11 -0
- package/dist/base.d.mts +6 -0
- package/dist/base.mjs +67 -0
- package/dist/labs.d.mts +6 -0
- package/dist/labs.mjs +13 -0
- package/package.json +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Moser Labs Themes [](https://npmjs.com/package/@moser-inc/moser-labs-themes)
|
|
2
|
+
|
|
3
|
+
PrimeUIX themes for the Moser Labs suite of applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @primeuix/themes @moser-inc/moser-labs-themes
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
package/dist/base.d.mts
ADDED
package/dist/base.mjs
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { definePreset } from "@primeuix/themes";
|
|
2
|
+
import Lara from "@primeuix/themes/lara";
|
|
3
|
+
|
|
4
|
+
//#region src/presets/base.ts
|
|
5
|
+
const Base = definePreset(Lara, { semantic: { colorScheme: {
|
|
6
|
+
light: {
|
|
7
|
+
primary: {
|
|
8
|
+
color: "{primary.500}",
|
|
9
|
+
hoverColor: "{primary.600}",
|
|
10
|
+
activeColor: "{primary.700}"
|
|
11
|
+
},
|
|
12
|
+
secondary: {
|
|
13
|
+
color: "{secondary.500}",
|
|
14
|
+
hoverColor: "{secondary.600}",
|
|
15
|
+
activeColor: "{secondary.700}"
|
|
16
|
+
},
|
|
17
|
+
surface: {
|
|
18
|
+
0: "#ffffff",
|
|
19
|
+
50: "{gray.50}",
|
|
20
|
+
100: "{gray.100}",
|
|
21
|
+
200: "{gray.200}",
|
|
22
|
+
300: "{gray.300}",
|
|
23
|
+
400: "{gray.400}",
|
|
24
|
+
500: "{gray.500}",
|
|
25
|
+
600: "{gray.600}",
|
|
26
|
+
700: "{gray.700}",
|
|
27
|
+
800: "{gray.800}",
|
|
28
|
+
900: "{gray.900}",
|
|
29
|
+
950: "{gray.950}"
|
|
30
|
+
},
|
|
31
|
+
formField: { background: "{surface.100}" },
|
|
32
|
+
content: {
|
|
33
|
+
background: "{surface.100}",
|
|
34
|
+
hoverBackground: "{surface.0}"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dark: {
|
|
38
|
+
primary: {
|
|
39
|
+
color: "{primary.500}",
|
|
40
|
+
hoverColor: "{primary.400}",
|
|
41
|
+
activeColor: "{primary.300}"
|
|
42
|
+
},
|
|
43
|
+
secondary: {
|
|
44
|
+
color: "{secondary.500}",
|
|
45
|
+
hoverColor: "{secondary.400}",
|
|
46
|
+
activeColor: "{secondary.300}"
|
|
47
|
+
},
|
|
48
|
+
surface: {
|
|
49
|
+
0: "#ffffff",
|
|
50
|
+
50: "{gray.50}",
|
|
51
|
+
100: "{gray.100}",
|
|
52
|
+
200: "{gray.200}",
|
|
53
|
+
300: "{gray.300}",
|
|
54
|
+
400: "{gray.400}",
|
|
55
|
+
500: "{gray.500}",
|
|
56
|
+
600: "{gray.600}",
|
|
57
|
+
700: "{gray.700}",
|
|
58
|
+
800: "{gray.800}",
|
|
59
|
+
900: "{gray.900}",
|
|
60
|
+
950: "{gray.950}"
|
|
61
|
+
},
|
|
62
|
+
formField: { background: "{surface.900}" }
|
|
63
|
+
}
|
|
64
|
+
} } });
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { Base };
|
package/dist/labs.d.mts
ADDED
package/dist/labs.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Base } from "./base.mjs";
|
|
2
|
+
import { definePreset, palette } from "@primeuix/themes";
|
|
3
|
+
|
|
4
|
+
//#region src/presets/labs.ts
|
|
5
|
+
const primaryLight = "#a51080";
|
|
6
|
+
const primaryDark = "#dc19a4";
|
|
7
|
+
const Labs = definePreset(Base, { semantic: { colorScheme: {
|
|
8
|
+
light: { primary: palette(primaryLight) },
|
|
9
|
+
dark: { primary: palette(primaryDark) }
|
|
10
|
+
} } });
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Labs };
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@moser-inc/moser-labs-themes",
|
|
3
|
+
"description": "PrimeUIX themes for Moser Labs applications.",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/moser-inc/moser-labs.git"
|
|
9
|
+
},
|
|
10
|
+
"author": "Moser Consulting",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./base": "./dist/base.mjs",
|
|
13
|
+
"./labs": "./dist/labs.mjs",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"provenance": false,
|
|
22
|
+
"registry": "https://registry.npmjs.org/"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsdown",
|
|
26
|
+
"lint": "eslint",
|
|
27
|
+
"prepack": "npm run build",
|
|
28
|
+
"type-check": "tsc"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@primeuix/themes": ">=2.0.3 <3.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@moser-inc/eslint-config": "^3.0.3",
|
|
35
|
+
"@tsconfig/node24": "^24.0.4",
|
|
36
|
+
"eslint": "^9.39.3",
|
|
37
|
+
"prettier": "^3.8.1",
|
|
38
|
+
"tsdown": "^0.20.3",
|
|
39
|
+
"typescript": "~5.9.3"
|
|
40
|
+
}
|
|
41
|
+
}
|