@moises.ai/design-system 0.0.1

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 ADDED
@@ -0,0 +1,43 @@
1
+ # @moises.ai/design-system
2
+
3
+ Design System package based on @radix-ui/themes with custom defaults.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @moises.ai/design-system
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```jsx
14
+ import { Theme, Button, Text } from '@moises.ai/design-system';
15
+ // Import the styles directly from @moises.ai/design-system
16
+ import '@moises.ai/design-system/styles.css';
17
+
18
+ function App() {
19
+ return (
20
+ <Theme>
21
+ <Button>Click me</Button>
22
+ <Text>Hello world</Text>
23
+ </Theme>
24
+ );
25
+ }
26
+ ```
27
+
28
+ ## Theme Defaults
29
+
30
+ The Theme component comes with the following default props:
31
+
32
+ - `accentColor="cyan"`
33
+ - `appearance="dark"`
34
+ - `radius="small"`
35
+ - `panelBackground="solid"`
36
+
37
+ You can override these defaults by passing your own props:
38
+
39
+ ```jsx
40
+ <Theme accentColor="blue" appearance="light">
41
+ {/* content */}
42
+ </Theme>
43
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Theme as a } from "@radix-ui/themes";
3
+ export * from "@radix-ui/themes";
4
+ const p = ({ children: r, ...e }) => /* @__PURE__ */ o(
5
+ a,
6
+ {
7
+ accentColor: "cyan",
8
+ appearance: "dark",
9
+ radius: "small",
10
+ panelBackground: "solid",
11
+ ...e,
12
+ children: r
13
+ }
14
+ );
15
+ export {
16
+ p as Theme
17
+ };
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@moises.ai/design-system",
3
+ "version": "0.0.1",
4
+ "description": "Design System package based on @radix-ui/themes with custom defaults",
5
+ "private": false,
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "style": "styles.css",
10
+ "files": [
11
+ "dist",
12
+ "styles.css"
13
+ ],
14
+ "scripts": {
15
+ "build": "vite build",
16
+ "prepare": "npm run build"
17
+ },
18
+ "dependencies": {
19
+ "@radix-ui/themes": "^2.0.0"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "*",
23
+ "react-dom": "*"
24
+ },
25
+ "peerDependenciesMeta": {
26
+ "react": {
27
+ "optional": true
28
+ },
29
+ "react-dom": {
30
+ "optional": true
31
+ }
32
+ },
33
+ "devDependencies": {
34
+ "vite": "^5.1.0",
35
+ "@vitejs/plugin-react": "^4.2.1",
36
+ "react": "^18.2.0",
37
+ "react-dom": "^18.2.0"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ }
42
+ }
package/styles.css ADDED
@@ -0,0 +1 @@
1
+ @import '@radix-ui/themes/styles.css';