@dax-ui/theme 0.0.0-stage → 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # @dax-ui/theme
2
+
3
+ ## 0.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bbb8ff9]
8
+ - @dax-ui/tokens@0.2.0
9
+
10
+ ## 0.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - First public release: design tokens, theme and UIProvider, Button, TextField, the
15
+ @dax-ui/react bundle, and @dax-ui/nextjs for Next.js App Router.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @dax-ui/tokens@0.1.0
package/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2026 Digital Auxilius. All rights reserved.
2
+
3
+ This software and its source code are proprietary. They are made publicly available
4
+ for viewing and installation only. No license is granted to use, copy, modify, merge,
5
+ publish, distribute, sublicense or sell copies of this software, in whole or in part,
6
+ except under a separate written agreement with Digital Auxilius.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
9
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
10
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
11
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF OR
12
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,121 @@
1
- # Temporary Holding Version
1
+ # @dax-ui/theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The dax-ui theme and `UIProvider`. Every app wraps its tree in `UIProvider` once;
4
+ every other `@dax-ui` component needs it.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ pnpm add @dax-ui/theme
10
+ ```
11
+
12
+ MUI and Emotion are included; the app only needs React 18 or 19. Don't add
13
+ `@mui/material` to the app as well: a second copy wouldn't share the dax-ui theme.
14
+
15
+ ## Usage
16
+
17
+ Wrap the app once, at the root:
18
+
19
+ ```tsx
20
+ import { UIProvider } from '@dax-ui/theme';
21
+
22
+ export function App({ children }) {
23
+ return <UIProvider defaultMode="system">{children}</UIProvider>;
24
+ }
25
+ ```
26
+
27
+ ### Next.js App Router
28
+
29
+ Use [`@dax-ui/nextjs`](https://www.npmjs.com/package/@dax-ui/nextjs) instead: its `UIProvider` adds server-side style
30
+ collection and the color-mode script, and it re-exports everything else from this package.
31
+
32
+ ### Other server rendering
33
+
34
+ Render `ColorSchemeScript` first inside `<body>` so the page doesn't flash the wrong
35
+ color mode before React loads:
36
+
37
+ ```tsx
38
+ <body>
39
+ <ColorSchemeScript />
40
+ <UIProvider>{children}</UIProvider>
41
+ </body>
42
+ ```
43
+
44
+ ### Light/dark toggle
45
+
46
+ ```tsx
47
+ import { useColorScheme } from '@dax-ui/theme';
48
+
49
+ function ModeToggle() {
50
+ const { mode, setMode } = useColorScheme();
51
+ return (
52
+ <button onClick={() => setMode(mode === 'dark' ? 'light' : 'dark')}>
53
+ Switch to {mode === 'dark' ? 'light' : 'dark'} mode
54
+ </button>
55
+ );
56
+ }
57
+ ```
58
+
59
+ ### App-specific overrides
60
+
61
+ `createAppTheme` deep-merges overrides onto the dax-ui defaults:
62
+
63
+ ```tsx
64
+ import { UIProvider, createAppTheme } from '@dax-ui/theme';
65
+
66
+ const appTheme = createAppTheme({ shape: { borderRadius: 12 } });
67
+
68
+ <UIProvider theme={appTheme}>{children}</UIProvider>;
69
+ ```
70
+
71
+ ### Styling your own elements
72
+
73
+ `styled` and `useTheme` read the same theme, including the custom `brand` color:
74
+
75
+ ```tsx
76
+ import { styled, useTheme } from '@dax-ui/theme';
77
+
78
+ const Panel = styled('section')(({ theme }) => ({
79
+ padding: theme.spacing(2),
80
+ borderRadius: theme.shape.borderRadius,
81
+ borderLeft: `4px solid ${theme.palette.brand.main}`,
82
+ }));
83
+
84
+ function Example() {
85
+ const theme = useTheme();
86
+ return <p style={{ color: theme.palette.text.secondary }}>...</p>;
87
+ }
88
+ ```
89
+
90
+ Every dax-ui component also accepts an `sx` prop: `<Button sx={{ mt: 2 }}>Save</Button>`.
91
+
92
+ ## Exports
93
+
94
+ | Export | What it is |
95
+ | --- | --- |
96
+ | `UIProvider` | The provider; props below |
97
+ | `ColorSchemeScript` | Prevents a color-mode flash with server rendering; props below |
98
+ | `useColorScheme` | `{ mode, setMode }` for reading and changing the color mode |
99
+ | `createAppTheme(overrides)` | The dax-ui theme with overrides deep-merged on top |
100
+ | `styled`, `useTheme` | Style custom elements / read the theme in components |
101
+ | `theme`, `themeOptions` | The default theme and the options it's built from |
102
+ | `Theme`, `ThemeOptions` | Types |
103
+
104
+ ## UIProvider props
105
+
106
+ <!-- props:start UIProvider -->
107
+ | Prop | Type | Default | Description |
108
+ | --- | --- | --- | --- |
109
+ | `children` *(required)* | `ReactNode` | | The app. Every @dax-ui component must render inside the provider. |
110
+ | `defaultMode` | `"light" \| "dark" \| "system"` | `system` | Color mode on first visit. `system` follows the OS setting. After that, the user's choice made through `useColorScheme().setMode()` is remembered. |
111
+ | `disableCssBaseline` | `boolean` | `false` | Skips MUI's CSS reset (`CssBaseline`), for apps that already ship their own. |
112
+ | `theme` | `Theme` | `createAppTheme()` | Replaces the default theme, e.g. `createAppTheme({ ...overrides })`. |
113
+ <!-- props:end -->
114
+
115
+ ## ColorSchemeScript props
116
+
117
+ <!-- props:start ColorSchemeScript -->
118
+ | Prop | Type | Default | Description |
119
+ | --- | --- | --- | --- |
120
+ | `defaultMode` | `"light" \| "dark" \| "system"` | `system` | Color mode on first visit. Must match `UIProvider`'s `defaultMode`. |
121
+ <!-- props:end -->
package/lib/index.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ import { ThemeOptions, Theme } from '@mui/material/styles';
2
+ export { Theme, ThemeOptions, styled, useColorScheme, useTheme } from '@mui/material/styles';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ declare module '@mui/material/styles' {
7
+ interface Palette {
8
+ brand: Palette['primary'];
9
+ }
10
+ interface PaletteOptions {
11
+ brand?: PaletteOptions['primary'];
12
+ }
13
+ }
14
+ /** Raw theme options the default theme is built from. To extend them, use `createAppTheme`. */
15
+ declare const themeOptions: ThemeOptions;
16
+ /**
17
+ * Builds a theme from the dax-ui defaults with app-specific overrides deep-merged on top,
18
+ * so apps can adjust the theme without importing MUI. Pass the result to `UIProvider`.
19
+ */
20
+ declare function createAppTheme(overrides?: ThemeOptions): Theme;
21
+ /** The default dax-ui theme. */
22
+ declare const theme: Theme;
23
+
24
+ interface UIProviderProps {
25
+ /** The app. Every @dax-ui component must render inside the provider. */
26
+ children: ReactNode;
27
+ /**
28
+ * Replaces the default theme, e.g. `createAppTheme({ ...overrides })`.
29
+ * @default theme
30
+ */
31
+ theme?: Theme;
32
+ /**
33
+ * Color mode on first visit. `system` follows the OS setting. After that, the user's
34
+ * choice made through `useColorScheme().setMode()` is remembered.
35
+ * @default 'system'
36
+ */
37
+ defaultMode?: 'light' | 'dark' | 'system';
38
+ /**
39
+ * Skips MUI's CSS reset (`CssBaseline`), for apps that already ship their own.
40
+ * @default false
41
+ */
42
+ disableCssBaseline?: boolean;
43
+ }
44
+ /**
45
+ * Applies the dax-ui theme, color mode and CSS reset.
46
+ * Wrap the app in it once, at the root; every @dax-ui component needs it.
47
+ */
48
+ declare function UIProvider({ children, theme, defaultMode, disableCssBaseline, }: UIProviderProps): react.JSX.Element;
49
+
50
+ interface ColorSchemeScriptProps {
51
+ /**
52
+ * Color mode on first visit. Must match `UIProvider`'s `defaultMode`.
53
+ * @default 'system'
54
+ */
55
+ defaultMode?: 'light' | 'dark' | 'system';
56
+ }
57
+ /**
58
+ * Applies the saved color mode before the page paints, so server-rendered apps
59
+ * (e.g. Next.js) don't flash the wrong mode. Render it first inside `<body>`.
60
+ */
61
+ declare function ColorSchemeScript({ defaultMode }: ColorSchemeScriptProps): react.JSX.Element;
62
+
63
+ export { ColorSchemeScript, type ColorSchemeScriptProps, UIProvider, type UIProviderProps, createAppTheme, theme, themeOptions };
package/lib/index.js ADDED
@@ -0,0 +1,102 @@
1
+ "use client";
2
+
3
+ // src/theme.ts
4
+ import { createTheme } from "@mui/material/styles";
5
+ import deepmerge from "@mui/utils/deepmerge";
6
+ import { tokens } from "@dax-ui/tokens";
7
+ var { color, radius, font } = tokens;
8
+ var themeOptions = {
9
+ // CSS variables give flicker-free dark mode and SSR-safe theming.
10
+ cssVariables: { colorSchemeSelector: "class" },
11
+ colorSchemes: {
12
+ light: {
13
+ palette: {
14
+ primary: { main: color.brand[600], light: color.brand[300], dark: color.brand[700] },
15
+ brand: { main: color.brand[500], light: color.brand[100], dark: color.brand[900] },
16
+ success: { main: color.success },
17
+ warning: { main: color.warning },
18
+ error: { main: color.error },
19
+ info: { main: color.info },
20
+ background: { default: color.neutral[50], paper: color.neutral[0] },
21
+ text: { primary: color.neutral[900], secondary: color.neutral[600] },
22
+ divider: color.neutral[200]
23
+ }
24
+ },
25
+ dark: {
26
+ palette: {
27
+ primary: { main: color.brand[300], light: color.brand[100], dark: color.brand[500] },
28
+ brand: { main: color.brand[300], light: color.brand[100], dark: color.brand[700] },
29
+ success: { main: color.success },
30
+ warning: { main: color.warning },
31
+ error: { main: color.error },
32
+ info: { main: color.info },
33
+ background: { default: color.neutral[950], paper: color.neutral[900] },
34
+ text: { primary: color.neutral[50], secondary: color.neutral[400] },
35
+ divider: color.neutral[800]
36
+ }
37
+ }
38
+ },
39
+ shape: { borderRadius: radius.md },
40
+ spacing: tokens.spacingUnit,
41
+ typography: {
42
+ fontFamily: font.family,
43
+ fontWeightRegular: font.weight.regular,
44
+ fontWeightMedium: font.weight.medium,
45
+ fontWeightBold: font.weight.bold,
46
+ button: { textTransform: "none", fontWeight: font.weight.semibold }
47
+ },
48
+ components: {
49
+ MuiButton: {
50
+ defaultProps: { disableElevation: true },
51
+ styleOverrides: {
52
+ root: { borderRadius: radius.md }
53
+ }
54
+ },
55
+ MuiOutlinedInput: {
56
+ styleOverrides: {
57
+ root: { borderRadius: radius.md }
58
+ }
59
+ }
60
+ }
61
+ };
62
+ function createAppTheme(overrides = {}) {
63
+ return createTheme(deepmerge(themeOptions, overrides));
64
+ }
65
+ var theme = createAppTheme();
66
+
67
+ // src/UIProvider.tsx
68
+ import CssBaseline from "@mui/material/CssBaseline";
69
+ import { ThemeProvider } from "@mui/material/styles";
70
+ import { jsx, jsxs } from "react/jsx-runtime";
71
+ function UIProvider({
72
+ children,
73
+ theme: theme2 = theme,
74
+ defaultMode = "system",
75
+ disableCssBaseline = false
76
+ }) {
77
+ return /* @__PURE__ */ jsxs(ThemeProvider, { theme: theme2, defaultMode, children: [
78
+ !disableCssBaseline && /* @__PURE__ */ jsx(CssBaseline, { enableColorScheme: true }),
79
+ children
80
+ ] });
81
+ }
82
+
83
+ // src/ColorSchemeScript.tsx
84
+ import InitColorSchemeScript from "@mui/material/InitColorSchemeScript";
85
+ import { jsx as jsx2 } from "react/jsx-runtime";
86
+ function ColorSchemeScript({ defaultMode = "system" }) {
87
+ return /* @__PURE__ */ jsx2(InitColorSchemeScript, { attribute: "class", defaultMode });
88
+ }
89
+
90
+ // src/index.ts
91
+ import { styled, useColorScheme, useTheme } from "@mui/material/styles";
92
+ export {
93
+ ColorSchemeScript,
94
+ UIProvider,
95
+ createAppTheme,
96
+ styled,
97
+ theme,
98
+ themeOptions,
99
+ useColorScheme,
100
+ useTheme
101
+ };
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme.ts","../src/UIProvider.tsx","../src/ColorSchemeScript.tsx","../src/index.ts"],"sourcesContent":["import { createTheme, type Theme, type ThemeOptions } from '@mui/material/styles';\nimport deepmerge from '@mui/utils/deepmerge';\nimport { tokens } from '@dax-ui/tokens';\n\n// Custom theme values. Kept in this module (not a side-effect import) so the\n// augmentation always ships in the published .d.ts files.\ndeclare module '@mui/material/styles' {\n interface Palette {\n brand: Palette['primary'];\n }\n interface PaletteOptions {\n brand?: PaletteOptions['primary'];\n }\n}\n\nconst { color, radius, font } = tokens;\n\n/** Raw theme options the default theme is built from. To extend them, use `createAppTheme`. */\nexport const themeOptions: ThemeOptions = {\n // CSS variables give flicker-free dark mode and SSR-safe theming.\n cssVariables: { colorSchemeSelector: 'class' },\n colorSchemes: {\n light: {\n palette: {\n primary: { main: color.brand[600], light: color.brand[300], dark: color.brand[700] },\n brand: { main: color.brand[500], light: color.brand[100], dark: color.brand[900] },\n success: { main: color.success },\n warning: { main: color.warning },\n error: { main: color.error },\n info: { main: color.info },\n background: { default: color.neutral[50], paper: color.neutral[0] },\n text: { primary: color.neutral[900], secondary: color.neutral[600] },\n divider: color.neutral[200],\n },\n },\n dark: {\n palette: {\n primary: { main: color.brand[300], light: color.brand[100], dark: color.brand[500] },\n brand: { main: color.brand[300], light: color.brand[100], dark: color.brand[700] },\n success: { main: color.success },\n warning: { main: color.warning },\n error: { main: color.error },\n info: { main: color.info },\n background: { default: color.neutral[950], paper: color.neutral[900] },\n text: { primary: color.neutral[50], secondary: color.neutral[400] },\n divider: color.neutral[800],\n },\n },\n },\n shape: { borderRadius: radius.md },\n spacing: tokens.spacingUnit,\n typography: {\n fontFamily: font.family,\n fontWeightRegular: font.weight.regular,\n fontWeightMedium: font.weight.medium,\n fontWeightBold: font.weight.bold,\n button: { textTransform: 'none', fontWeight: font.weight.semibold },\n },\n components: {\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: { borderRadius: radius.md },\n },\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: { borderRadius: radius.md },\n },\n },\n },\n};\n\n/**\n * Builds a theme from the dax-ui defaults with app-specific overrides deep-merged on top,\n * so apps can adjust the theme without importing MUI. Pass the result to `UIProvider`.\n */\nexport function createAppTheme(overrides: ThemeOptions = {}): Theme {\n return createTheme(deepmerge(themeOptions, overrides));\n}\n\n/** The default dax-ui theme. */\nexport const theme = createAppTheme();\n","import type { ReactNode } from 'react';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport { ThemeProvider, type Theme } from '@mui/material/styles';\nimport { theme as defaultTheme } from './theme';\n\nexport interface UIProviderProps {\n /** The app. Every @dax-ui component must render inside the provider. */\n children: ReactNode;\n /**\n * Replaces the default theme, e.g. `createAppTheme({ ...overrides })`.\n * @default theme\n */\n theme?: Theme;\n /**\n * Color mode on first visit. `system` follows the OS setting. After that, the user's\n * choice made through `useColorScheme().setMode()` is remembered.\n * @default 'system'\n */\n defaultMode?: 'light' | 'dark' | 'system';\n /**\n * Skips MUI's CSS reset (`CssBaseline`), for apps that already ship their own.\n * @default false\n */\n disableCssBaseline?: boolean;\n}\n\n/**\n * Applies the dax-ui theme, color mode and CSS reset.\n * Wrap the app in it once, at the root; every @dax-ui component needs it.\n */\nexport function UIProvider({\n children,\n theme = defaultTheme,\n defaultMode = 'system',\n disableCssBaseline = false,\n}: UIProviderProps) {\n return (\n <ThemeProvider theme={theme} defaultMode={defaultMode}>\n {!disableCssBaseline && <CssBaseline enableColorScheme />}\n {children}\n </ThemeProvider>\n );\n}\n","import InitColorSchemeScript from '@mui/material/InitColorSchemeScript';\n\nexport interface ColorSchemeScriptProps {\n /**\n * Color mode on first visit. Must match `UIProvider`'s `defaultMode`.\n * @default 'system'\n */\n defaultMode?: 'light' | 'dark' | 'system';\n}\n\n/**\n * Applies the saved color mode before the page paints, so server-rendered apps\n * (e.g. Next.js) don't flash the wrong mode. Render it first inside `<body>`.\n */\nexport function ColorSchemeScript({ defaultMode = 'system' }: ColorSchemeScriptProps) {\n // `attribute` must match the theme's `colorSchemeSelector: 'class'`.\n return <InitColorSchemeScript attribute=\"class\" defaultMode={defaultMode} />;\n}\n","export { createAppTheme, theme, themeOptions } from './theme';\nexport { UIProvider } from './UIProvider';\nexport type { UIProviderProps } from './UIProvider';\nexport { ColorSchemeScript } from './ColorSchemeScript';\nexport type { ColorSchemeScriptProps } from './ColorSchemeScript';\n// Re-exported so apps can style things and read the theme without installing MUI.\nexport { styled, useColorScheme, useTheme } from '@mui/material/styles';\nexport type { Theme, ThemeOptions } from '@mui/material/styles';\n"],"mappings":"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","names":["theme","jsx"]}
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "@dax-ui/theme",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "dax-ui MUI theme and UIProvider",
5
+ "keywords": [
6
+ "dax-ui",
7
+ "react",
8
+ "design-system",
9
+ "theme",
10
+ "mui",
11
+ "dark-mode"
12
+ ],
13
+ "author": "Digital Auxilius",
14
+ "homepage": "https://github.com/FaaizHussain26/DAX-UI/tree/main/packages/theme#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/FaaizHussain26/DAX-UI.git",
18
+ "directory": "packages/theme"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/FaaizHussain26/DAX-UI/issues"
22
+ },
23
+ "license": "UNLICENSED",
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "main": "lib/index.js",
27
+ "types": "lib/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./lib/index.d.ts",
31
+ "default": "./lib/index.js"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "files": [
36
+ "lib",
37
+ "CHANGELOG.md"
38
+ ],
39
+ "dependencies": {
40
+ "@emotion/react": "^11.14.0",
41
+ "@emotion/styled": "^11.14.0",
42
+ "@mui/material": "^9.5.0",
43
+ "@mui/utils": "^9.5.0",
44
+ "@dax-ui/tokens": "^0.2.0"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^18.0.0 || ^19.0.0",
48
+ "react-dom": "^18.0.0 || ^19.0.0"
49
+ },
50
+ "devDependencies": {
51
+ "@dax-ui/builder": "^0.0.0"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "scripts": {
57
+ "build": "builder"
58
+ }
6
59
  }