An open API service indexing awesome lists of open source software.

https://github.com/gsmlg-dev/phoenix-duskmoon-ui

Duskmoon UI for Phoenix Framework
https://github.com/gsmlg-dev/phoenix-duskmoon-ui

duskmoon elixir phoenix phoenix-livecomponents web-components

Last synced: 3 months ago
JSON representation

Duskmoon UI for Phoenix Framework

Awesome Lists containing this project

README

        

# PhoenixDuskmoon

[![release](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/actions/workflows/test-and-release.yml/badge.svg)](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/actions/workflows/test-and-release.yml)

Provides Duskmoon UI for Phoenix project.

Require `tailwindcss >= 4.0` and `daisyui >= 5.0`

See the [docs](https://hexdocs.pm/phoenix_duskmoon/) for more information.

## Install

Add deps in `mix.exs`
```elixir
{:phoenix_duskmoon, "~> 6.0"},
```

Include in phoenix view helpers

```elixir
defp html_helpers do
quote do
# import all duskmoon ui component
use PhoenixDuskmoon.Component
# import all duskmoon ui fun component
use PhoenixDuskmoon.Fun
end
end
```

Import `css`

```css
@config "../tailwind.config.js";

@import "tailwindcss";
@plugin "@tailwindcss/typography";
@plugin "daisyui";
@import "phoenix_duskmoon/theme";
@import "phoenix_duskmoon/components";
```

## Live Storybook

[Live Storybook](https://duskmoon-storybook.gsmlg.dev)

![](screenshots/1.png)
![](screenshots/2.png)
![](screenshots/3.png)
![](screenshots/4.png)