@undefine-ui/design-system 2.0.0 → 2.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 CHANGED
@@ -10,6 +10,8 @@ pnpm add @undefine-ui/design-system
10
10
  pnpm add @mui/material @mui/x-data-grid @emotion/react @emotion/styled react react-dom react-hook-form
11
11
  ```
12
12
 
13
+ **Note**: Fonts (Work Sans and Geist) are bundled with the package and automatically loaded by the `ThemeProvider`. You don't need to install or import `@fontsource` packages separately.
14
+
13
15
  ## Usage
14
16
 
15
17
  ### Providers
@@ -29,7 +31,7 @@ export function DesignSystemApp({ children }: { children: React.ReactNode }) {
29
31
  ```
30
32
 
31
33
  - `SettingsProvider` exposes the design-system preferences (mode, contrast, fonts, nav layout) through the `useSettings` hook. Provide your own `settings` object if you want different defaults or if you persist user choices.
32
- - `ThemeProvider` wraps MUIs CssVarsProvider with the Define theme (`createTheme`). It accepts any React children and automatically injects `CssBaseline`.
34
+ - `ThemeProvider` wraps MUI's CssVarsProvider with the Define theme (`createTheme`). It accepts any React children and automatically injects `CssBaseline` and loads the required fonts (Work Sans and Geist).
33
35
  - Both providers are exported from the package root so you can colocate them with your router/root layout.
34
36
 
35
37
  ### Theming hooks
Binary file
Binary file
Binary file
package/dist/index.cjs CHANGED
@@ -5562,6 +5562,17 @@ var getInitColorSchemeScript = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5562
5562
  // src/theme/ThemeProvider.tsx
5563
5563
  var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"), 1);
5564
5564
  var import_styles31 = require("@mui/material/styles");
5565
+ var import__ = require("@fontsource/work-sans/300.css");
5566
+ var import__2 = require("@fontsource/work-sans/400.css");
5567
+ var import__3 = require("@fontsource/work-sans/500.css");
5568
+ var import__4 = require("@fontsource/work-sans/600.css");
5569
+ var import__5 = require("@fontsource/work-sans/700.css");
5570
+ var import__6 = require("@fontsource/geist/300.css");
5571
+ var import__7 = require("@fontsource/geist/400.css");
5572
+ var import__8 = require("@fontsource/geist/500.css");
5573
+ var import__9 = require("@fontsource/geist/600.css");
5574
+ var import__10 = require("@fontsource/geist/700.css");
5575
+ var import_satoshi = require("./satoshi-4X3TX4PE.css");
5565
5576
  var import_jsx_runtime36 = require("react/jsx-runtime");
5566
5577
  var ThemeProvider = ({ children }) => {
5567
5578
  const settings = useSettings();