Skip to content

Commit

Permalink
update steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Nov 22, 2023
1 parent 8b54457 commit b75ed78
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions content/en/docs/tutorials/dashboard-branding.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,26 @@ To create your own theme, follow these steps:
1. Clone the repository by running the following command:

```sh
git clone https://github.com/plgd-dev/shared-ui.git
git clone --recursive --branch v2.15.0 https://github.com/plgd-dev/hub.git
```

2. Navigate to the cloned directory and install the necessary packages:

```sh
cd shared-ui
npm install
npm install --save-dev babel-cli
cd hub/http-gateway/web
yarn install
```

3. Create your own theme within the `./src/components/Atomic/_theme/mycompany.ts` directory. You can refer to `./src/components/Atomic/_theme/plgd.ts` as an example.
3. Create your own theme within the `./packages/shared-ui/src/components/Atomic/_theme/mycompany.ts` directory. You can refer to `./packages/shared-ui/src/components/Atomic/_theme/plgd.ts` as an example.

```sh
cp ./src/components/Atomic/_theme/plgd.ts ./src/components/Atomic/_theme/mycompany.ts
cp ./packages/shared-ui/src/components/Atomic/_theme/plgd.ts ./packages/shared-ui/src/components/Atomic/_theme/mycompany.ts
```

4. Build your theme by executing the following command:

```sh
./packages/shared-ui/scripts/build.theme.js --themes=mycompany
node ./packages/shared-ui/scripts/build.theme.js --themes=mycompany
```

The generated theme will be stored in `./build/theme/theme.json`.
Expand Down

0 comments on commit b75ed78

Please sign in to comment.