Files
Modrinth-plus/docs/routes/index.md

38 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: Introduction
---
2022-03-09 23:17:28 -08:00
## What is Omorphia?
2022-03-09 22:18:22 -08:00
Omorphia is Modrinth's style and reusable component library for use in all of its frontend applications, including [knossos](https://github.com/modrinth/knossos) (modrinth.com), [theseus](https://github.com/modrinth/theseus) (launcher), and planned projects such as Modrinth's in-house auth and ad-server.
2022-03-10 00:08:59 -08:00
It uses [Svelte](https://svelte.dev/) to deliver the best performance with the least boilerplate.
## Getting started
2022-03-10 00:08:59 -08:00
Adding Omorphia to your project is as easy as:
2022-03-10 00:08:59 -08:00
```bash
pnpm add omorphia
2022-03-10 00:08:59 -08:00
```
### Components
2022-03-10 00:08:59 -08:00
Use a component by importing from `omorphia`. For example, use the [Button component](/components/Button) like so:
2022-03-10 00:08:59 -08:00
```svelte example raised
<script lang="ts">
2022-06-04 00:46:23 -07:00
import { Button } from 'omorphia'
</script>
2022-03-10 00:08:59 -08:00
<Button color="primary">I'm a button!</Button>
2022-03-10 00:08:59 -08:00
```
For more information on each component, check out the pages on the sidebar navigation.
> To get Svelte language support in your code editor, [use this list of extensions.](https://sveltesociety.dev/tools#editor-support)
2022-03-10 00:08:59 -08:00
### Using icons and styles
2022-03-10 00:08:59 -08:00
2022-05-20 00:10:45 -07:00
Follow the guides on the sidebar to learn how to use [icons](/getting-started/icons) and general concepts.