yew-duskmoon
Duskmoon UI components for Yew applications.
Links
Install
[]
= { = "0.23", = ["csr"] }
= "0.4"
The default full feature enables the feature-gated components: AppHeader, Button, Card, Link, and Typography.
For explicit feature selection:
[]
= { = "0.4", = false, = ["button", "card"] }
CSS
This crate renders Duskmoon CSS class names. Include Duskmoon UI styles in the consuming app.
The repository demo uses Tailwind CSS 4 with @duskmoon-dev/core:
@@//
If your CSS build removes unused classes, make sure it scans your Yew source files and the component sources you use.
Usage
use *;
use ;
Markdown rendering
DmMarkdown renders initial YAML front matter by default and adds color previews to inline code containing a complete HEX, RGB(A), or HSL(A) color value. Named colors and unrecognized CSS expressions remain ordinary inline code.
use *;
use ;
html!
Relative Markdown link and image destinations are preserved by default. Set base_url to resolve them, plus href and src attributes in allowed raw HTML, against a directory URL; absolute, external, fragment, and query-only destinations remain unchanged.
For direct string rendering, configure the same behavior with DmMarkdownOptions and render_markdown_to_html_with_options. FrontMatterMode::Hidden removes initial front matter while keeping the body, and FrontMatterMode::Disabled parses the complete source as ordinary Markdown.
Components
Common exports include Accordion, Alert, Appbar, Autocomplete, Avatar, Badge, BottomNavigation, Breadcrumbs, Button, Card, Checkbox, Chip, CodeBlock, CodeEditor, DatePicker, Dialog, DmMarkdown, Drawer, FileUpload, Form, Grid, Input, Link, List, MarkdownBody, Menu, Modal, Pagination, Progress, Radio, Select, Switch, Table, Tabs, Textarea, ThemeController, Toast, Tooltip, TreeSelect, and Typography.
See the demo for the full catalog and component examples.