The edits mix linea_ui.install makes to the app's assets/css/app.css, as pure functions
from the file's contents to its new contents.
Every edit is idempotent: it finds what it would add and leaves the file alone when it is there.
Summary
Functions
Adds the Hugeicons Tailwind plugin after the LineaUI styles import. Unchanged when present.
Adds @source for LineaUI's templates, which Tailwind needs when source(none) turned its
automatic detection off. Unchanged when the stylesheet already has it.
Whether the stylesheet still loads daisyUI.
Imports LineaUI's fonts and styles after Tailwind's import.
Removes the daisyUI and heroicons @plugin blocks (with the comment above each) and the
data-theme dark variant Phoenix generates next to them, which LineaUI's .dark class replaces.
Whether the stylesheet turns Tailwind's automatic source detection off with source(none).
Whether the stylesheet imports Tailwind, the anchor the other edits are placed after.
Functions
Adds the Hugeicons Tailwind plugin after the LineaUI styles import. Unchanged when present.
Adds @source for LineaUI's templates, which Tailwind needs when source(none) turned its
automatic detection off. Unchanged when the stylesheet already has it.
Whether the stylesheet still loads daisyUI.
Imports LineaUI's fonts and styles after Tailwind's import.
Returns the stylesheet unchanged when it has no Tailwind import or already imports both.
Removes the daisyUI and heroicons @plugin blocks (with the comment above each) and the
data-theme dark variant Phoenix generates next to them, which LineaUI's .dark class replaces.
Whether the stylesheet turns Tailwind's automatic source detection off with source(none).
Whether the stylesheet imports Tailwind, the anchor the other edits are placed after.