Metadata-Version: 2.2
Name: MonsterUI
Version: 1.0.2
Summary: The simplicity of FastHTML with the power of Tailwind
Home-page: https://github.com/AnswerDotAI/MonsterUI
Author: isaac flath
Author-email: isaac.flath@gmail.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-fasthtml
Requires-Dist: fastcore
Requires-Dist: lxml
Requires-Dist: mistletoe
Provides-Extra: dev
Requires-Dist: pandas; extra == "dev"
Requires-Dist: jinja2; extra == "dev"
Requires-Dist: llms-txt; extra == "dev"
Requires-Dist: pysymbol_llm; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# MonsterUI

> Combine the simplicity of FastHTML with the power of TailwindCSS

## Why

Because UI is too complex and too aggravating, people don't want to need to become a CSS expert to make professional-looking websites.

## Installation

To install this library, uses

`pip install MonsterUI`


## Getting Started


Go to the MonsterUI [Getting Started Page](https://monsterui.answer.ai/getting_started).  It is the #1 best way to learn to get started.

### TLDR

Run `python file.py` on this to start:

```python
from fasthtml.common import *
from monsterui.all import *

# Choose a theme color (blue, green, red, etc)
hdrs = Theme.blue.headers()

# Create your app with the theme
app, rt = fast_app(hdrs=hdrs)

@rt
def index():
    socials = (('github','https://github.com/AnswerDotAI/MonsterUI'),
               ('twitter','https://twitter.com/isaac_flath/'),
               ('linkedin','https://www.linkedin.com/in/isaacflath/'))
    return Titled("Your First App",
        Card(
            H1("Welcome!"),
            P("Your first MonsterUI app", cls=TextPresets.muted_sm),
            P("I'm excited to see what you build with MonsterUI!"),
            footer=DivLAligned(*[UkIconLink(icon,href=url) for icon,url in socials])))

serve()
```

## LLM context files

Using LLMs for development is a best practice way to get started and explore. While LLMs cannot code for you, they can be helpful assistants. You must check, refactor, test, and vet any code any LLM generates for you - but they are helpful productivity tools.  Take a look inside the `llms.txt` file to see links to particularly useful context files!

- [llms.txt](https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/llms.txt): Links to what is included
- [llms-ctx.txt](https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/llms-ctx.txt): MonsterUI Documentation Pages
- [API list](https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/apilist.txt): API list for MonsterUI (included in llms-ctx.txt)

In addition you can add `/md` (for markdown) to a url to get a markdown representation and `/rmd` for rendered markdown representation (nice for looking to see what would be put into context.  

### Step by Step

To get started, check out:

1. Start by importing the modules as follows:

```python
from fasthtml.common import *
from monsterui.all import *
```

2. Instantiate the app with the MonsterUI headers

```python
app = FastHTML(hdrs=Theme.blue.headers())

# Alternatively, using the fast_app method
app, rt = fast_app(hdrs=Theme.slate.headers())
```
>*The color option can be any of the theme options available out of the box*

From here, you can explore the API Reference & examples to see how to implement the components. You can also check out these demo videos in the documentation page

- MonsterUI [Getting Started Page](https://monsterui.answer.ai/getting_started)

More resources and improvements to the documentation will be added here soon!
