If you’re using a different css file, ofcourse you need to compile it as well with assets.deploy
:
"assets.deploy": ["tailwind default --minify", "tailwind storybook --minify", "esbuild default --minify", "phx.digest"],
Released 0.7.2 with support for local_icons plus color_mode & icon related bugfixes
- feature: support for local icons (read the updated
icons.md
guide for details) - bugfix: fixed missing color mode icons
- bugfix: fixed active dark mode when color_mode is disabled
- change (breaking!): FontAwesome icons are now CSS loaded (cf.
icons.md
guide)
Rendering the source code for a full component module could be too lengthy and slow (think core_components.ex
with a lot of function components in a single module)
You can now decide, per story, to render only your function’s source code.
Shipped, but not released yet.
Released 0.8.0
with a lot of stuff regarding components, attributes, and slots documentation
Function documentation is properly rendering markdown:
Attribute and slots documentation is rendering markdown and can be expanded when written on multiple lines.
It also features a new HTML preview tab for function components
it now requires phoenix_live_view 1.0.0
Full changelog 👇
- change (breaking!): requires
phoenix_live_view ~> 1.0.x
- feature: new tab to preview function components HTML
- improvement: component documentation’s markdown is properly formatted
- improvement: component documentation’s attribute stripping can be opted out by configuration
- improvement: playground attribute documentation is properly formatted and can be expanded
when written on multiple lines. - improvement: nested slot attributes are properly displayed in the playground
- improvement: render only component function’s source code for component stories
- improvement: updated generator with improved core_components’ stories
- improvement: generated code markup is properly wrapped
- improvement: storybook can be disabled per environment
- bugfix: fixed broken playground for stories using templating features
0.8.1 is out, this is the first release ever for which I didn’t produce a single line of code.
Thank you @xxdavid @cschmatzler @sodapopcan for your contributions!
Changelog:
- improvement: better formatting of playground’s HTML - @xxdavid
- improvement: highlight code blocks in components doc - @xxdavid
- improvement: support ESM imports for scripts - @cschmatzler
- improvement: UX tweaks - @sodapopcan