b12-mui-theme 1.0.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.
@@ -0,0 +1,2 @@
1
+ export { customTheme, customThemeOptions } from "./theme";
2
+ export type { ThemeOptions } from "@mui/material/styles";
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customThemeOptions = exports.customTheme = void 0;
4
+ var theme_1 = require("./theme");
5
+ Object.defineProperty(exports, "customTheme", { enumerable: true, get: function () { return theme_1.customTheme; } });
6
+ Object.defineProperty(exports, "customThemeOptions", { enumerable: true, get: function () { return theme_1.customThemeOptions; } });
@@ -0,0 +1,3 @@
1
+ import { ThemeOptions } from "@mui/material";
2
+ export declare const customThemeOptions: ThemeOptions;
3
+ export declare const customTheme: import("@mui/material").Theme;
package/dist/theme.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customTheme = exports.customThemeOptions = void 0;
4
+ const material_1 = require("@mui/material");
5
+ exports.customThemeOptions = {
6
+ palette: {
7
+ mode: "dark",
8
+ background: {
9
+ default: "#1a1b1e", // Deep dark background
10
+ paper: "#2c2e33", // Sidenav and Header surface
11
+ },
12
+ primary: {
13
+ main: "#4a90e2", // The Filter Blue
14
+ },
15
+ success: {
16
+ main: "#4caf50", // The View Mode Green
17
+ },
18
+ warning: {
19
+ main: "#e67e22", // The Language Orange
20
+ },
21
+ text: {
22
+ primary: "#ffffff",
23
+ secondary: "#a0a0a0",
24
+ },
25
+ },
26
+ shape: {
27
+ borderRadius: 8, // Rounded corners as seen in the design
28
+ },
29
+ components: {
30
+ MuiButton: {
31
+ styleOverrides: {
32
+ root: {
33
+ textTransform: "uppercase",
34
+ fontWeight: 700,
35
+ },
36
+ },
37
+ },
38
+ MuiPaper: {
39
+ styleOverrides: {
40
+ root: {
41
+ backgroundImage: "none", // Removes the default MUI overlay in dark mode
42
+ border: "1px solid rgba(255, 255, 255, 0.05)",
43
+ },
44
+ },
45
+ },
46
+ MuiCard: {
47
+ styleOverrides: {
48
+ root: {
49
+ backgroundColor: "#373a40", // Slightly lighter for cards
50
+ },
51
+ },
52
+ },
53
+ MuiCheckbox: {
54
+ styleOverrides: {
55
+ root: {
56
+ color: "#a0a0a0",
57
+ "&.Mui-checked": {
58
+ color: "#4a90e2",
59
+ },
60
+ },
61
+ },
62
+ },
63
+ },
64
+ };
65
+ exports.customTheme = (0, material_1.createTheme)(exports.customThemeOptions);
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "b12-mui-theme",
3
+ "version": "1.0.0",
4
+ "description": "B12 styled MUI theme for internal apps",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "prepare": "npm run build"
13
+ },
14
+ "peerDependencies": {
15
+ "@mui/material": "^7.0.0",
16
+ "react": "^19.0.0"
17
+ },
18
+ "devDependencies": {
19
+ "@mui/material": "^7.0.0",
20
+ "@types/react": "^19.0.0",
21
+ "react": "^19.0.0",
22
+ "typescript": "^5.0.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://gitlab.vbash.pp.ua/b12-drones/mui-theme.git"
27
+ },
28
+ "author": "B12 Dev Team",
29
+ "publishConfig": {
30
+ "@b12-drones:registry": "https://gitlab.vbash.pp.ua/api/v4/projects/PROJECT_ID/packages/npm/"
31
+ }
32
+ }