> For the complete documentation index, see [llms.txt](https://docs.ushahidi.com/platform-developer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ushahidi.com/platform-developer-documentation/dev-legacy-v3/development-and-code/setup_alternatives/setting-up-the-pattern-library-for-development.md).

# Setting up the Pattern Library for development

## Setting up the pattern library for development

The pattern library holds all styles for the platform-client and its here changes to the css is made.

**Note:** If you are not planning to change the css for the Platform-client, you **do not** need to follow this guide.

Clone the pattern library

```
git clone https://github.com/ushahidi/platform-pattern-library.git;
```

Install the dependencies.

```
cd platform-pattern-library;
npm install;
```

Run `gulp build` to generate the fonts and compile the sass the first time.

```
gulp build
```

Start the pattern library in <http://localhost:8000> by running:

```
gulp
```

Once the pattern-library is running, the front-end guidelines and a guide on how to work with the pattern-library and its structure can be found on <http://localhost:8000/assets/html/front-end-guidelines/introduction.html>

### But how do I test my new styles in the Platform?

The pattern-library is installed as a npm-package in the Platform Client. For development, it is not suitable to publish a package for each change, and luckily, there is hack you can do to test the styles locally instead.

1. Make sure the Pattern-library is built through running `gulp build` in the terminal
2. Copy all contents in the "assets" folder
3. Go to your Platform-client folder
4. Navigate to node\_modules/ushahidi-platform-pattern-library folder
5. Remove the contents in the "assets" folder
6. Paste the contents you copied from the assets-folder in the pattern-library&#x20;
7. Done! Now you should be able to see the changes in the Platform Client

## Further reading

After setup, please read the [Platform Pattern Library](/platform-developer-documentation/dev-legacy-v3/front-end-development/changing-ui-styles-introduction-to-the-pattern-library.md) guidelines when working with the Platform Pattern Library.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ushahidi.com/platform-developer-documentation/dev-legacy-v3/development-and-code/setup_alternatives/setting-up-the-pattern-library-for-development.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
