2.0.39 • Published 4 months ago

@moises.ai/design-system v2.0.39

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

@moises.ai/design-system

A comprehensive design system built on Radix UI components with custom theming and components.

Installation

npm install @moises.ai/design-system

Usage

Basic Components

Import components from the main package:

import { Box, Flex, Hello, World, Header } from "@moises.ai/design-system";

function App() {
  return (
    <Box>
      <Header title="My App" />
      <Flex>
        <Hello name="Developer" />
        <World />
      </Flex>
    </Box>
  );
}

Icons

Import icons from the icons subpackage:

import { PlayIcon, RecordIcon } from "@moises.ai/design-system/icons";

function IconDemo() {
  return (
    <div>
      <PlayIcon />
      <RecordIcon />
    </div>
  );
}

Primitives

Import primitive components:

import { Hello, World } from "@moises.ai/design-system/primitives";

function PrimitivesDemo() {
  return (
    <>
      <Hello />
      <World />
    </>
  );
}

CSS Styles

Import the CSS styles:

import "@moises.ai/design-system/styles.css";

Make sure to import this at the root of your application to ensure all styles are loaded correctly.

Note: The styles.css file includes imports to Radix UI themes and custom colors. These paths are resolved when you install the package, so there's no need to install or configure anything additional.

Development

  1. Clone this repository
  2. Install dependencies: npm install
  3. Start development mode: npm run dev
  4. Build: npm run build

Local Testing

To test the package locally in another project before publishing to npm:

  1. Install yalc globally:

    npm install -g yalc
  2. In the design system directory, temporarily update the version in package.json to a unique version (e.g., "50.0.1")

  3. Publish the package locally:

    yalc publish
  4. In the target project where you want to test the design system:

    yalc add @moises.ai/design-system@50.0.1
  5. When finished testing, remove the local package:

    # In the target project
    yalc remove @moises.ai/design-system@50.0.1
    npm install # or yarn to restore the published version

License

MIT

2.0.39

4 months ago

2.0.38

5 months ago

2.0.37

5 months ago

2.0.36

5 months ago

2.0.35

5 months ago

2.0.34

5 months ago

2.0.33

5 months ago

2.0.32

5 months ago

2.0.31

5 months ago

2.0.30

5 months ago

2.0.29

5 months ago

2.0.28

5 months ago

2.0.27

5 months ago

2.0.26

5 months ago

2.0.25

5 months ago

2.0.24

5 months ago

2.0.23

5 months ago

2.0.22

5 months ago

2.0.21

5 months ago

2.0.20

5 months ago

2.0.19

5 months ago

2.0.18

5 months ago

2.0.17

5 months ago

2.0.16

5 months ago

2.0.15

5 months ago

2.0.14

5 months ago

2.0.13

5 months ago

2.0.12

5 months ago

2.0.11

5 months ago

2.0.10

5 months ago

2.0.9

5 months ago

2.0.8

5 months ago

2.0.7

5 months ago

2.0.6

5 months ago

2.0.5

5 months ago

2.0.4

5 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.0.30

5 months ago

1.0.29

5 months ago

1.0.28

5 months ago

1.0.27

5 months ago

1.0.26

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.23

5 months ago

1.0.22

5 months ago

1.0.21

5 months ago

1.0.19

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

6 months ago