···88```
99## Usage
10101111-You can use chilp as any Lustre component, the main module has an easy builder which allows you to input typed `Anchors` (links to posts from which we fetch comments) instead of using attributes. If you prefer, you could also use `widget.element()` or create a Chilp widget yourself using element.element. As long as `widget.register()` is ran Chilp should be able to pick it up.
1111+Make sure to call `chilp.register()` in your `main()` function, and after that you can use `chilp.widget()` anywhere you want to place the comment widget! It'll take two labeled options, `bluesky:` and `mastodon:`, which take 'anchors' to the posts you want to load your comments from.
12121313-Also see [Styling Chilp](https://hexdocs.pm/chilp/styling.html)!
1313+Do your Chilp widgets look a little bleak? See [Styling Chilp](https://hexdocs.pm/chilp/styling.html)!
1414+1515+Further documentation can be found at <https://hexdocs.pm/chilp>.
14161517### Examples
1618···2325- `hide`: Commenting `-chilp hide` on a comment hides that particular comment and all it's children.
2426- `silence`: Commenting `-chilp silence` on a comment shows that particular comment but hides all it's children.
25272626-Further documentation can be found at <https://hexdocs.pm/chilp>.
2727-2828## Development
29293030```sh
3131cd examples/lustre_chilp_app
3232bun install
3333-tailwindcss -i ./src/input.css -o ./assets/styled.css
3434-gleam run -m lustre/dev start
3333+just run-example
3534```
+2-1
docs/changelog.md
···55Change in one line:
66> Chilp v1 was wrapping itself in a Lustre component, Chilp v2 _is_ a Lustre component.
7788-- Add Bluesky as a anchor option, equal to Mastodon.
88+- Add Bluesky as a anchor option, equal to Mastodon. Chilp is now able to fetch from Misskey and Sharkey instances as well.
99- Change styling to use DaisyUI by default, allowing it to adapt to your site's theme, or for you to just match on classes if you want to use your own css.
1010- Remove DOMPurify dependency, instead Chilp now parses and rebuilds Mastodon post content by itself, to keep dangerous code from sneaking in.
1111- Introduced commands, allowing to hide certain comments from view even if they abide community guidelines for the backing platform.
1212+- Chilp now only comes in a singular, documented module. This keeps the chaos out!
+15-1
docs/styling.md
···11# Styling the Chilp widget
2233+- [With DaisyUI](#daisyui)
44+- [With Oat](#oat)
55+- [With vanilla CSS](#vanilla)
66+77+88+39## With DaisyUI
4101111+<a id="daisyui"></a>
1212+513Chilp v2 or newer does not inline it's own CSS, but instead comes with [DaisyUI](https://daisyui.com/)-compatible classes, this means you can optimally have Chilp adapted to your own site's theme.
614715Do note, Tailwind may need to be pointed to the classes Chilp uses, so make sure to either source it on the `./dist` folder AFTER build, or
···13211422Try something like the above. You could of course also point to the `build/dev/javascript`, especially if you work with a path dependency (in which case the `widget.gleam` file won't be in `./build/`).
15231616-## Styling with OatUI
2424+2525+2626+## Styling with Oat
2727+2828+<a id="oat"></a>
17291830[Oat](https://oat.ink/) is an ultra-lightweight HTML + CSS, semantic UI component library with no framework, build, or other dependencies. OatUI can style most of Chilp out of the box without even including it's javascript. Chilp applies mostly semantic HTML and has some extra attributes added for enhanced compatibility with Oat.
1931···7486But with this, Oat can fully style Chilp widgets as well!
75877688## Styling with vanilla CSS
8989+9090+<a id="vanilla"></a>
77917892If you'd like to not use DaisyUI or OatUI, styling the widget yourself is very viable, all elements are queryable using css classes.
7993