The current Front-end of Lychee is using Tailwindcss, AlpineJS, TypeScript and Blade templates. In order to modify it you will need to recompile it.
In order to compile the front-end, you have to install the following dependencies:
nodeNode.js v20.0.0 or laternpmNode Packaged Modules
After installing Node.js you can use the included npm package manager to download all dependencies:
npm installIn order to generate the front-end visual you will need to run the following:
npm run devThis will create the files required to run Lychee.
When running in production, you should use instead:
npm run buildThis will create a public/build folder with the associated files.
To ease your development, some pain points are to be considered:
- names of variables (attributes) in blade templates must use camelCase.
- try to keep the alpine components code in the
.tsfiles. - TailwindCSS is doing tree-shaking, this means that any unused css class will not be provided in the production build.
When using classes programatically (e.g. in php), make sure to add them to
tailwind.config.js