This theme requires npm (or similar) package manager for development. Every time a css or template file changes, the main.css file in css/ must be recompiled using tailwind. If you have yarn or npm installed you can use it to trigger the compile step:
-
From within the stanford_decanter theme directory run:
npm install && npm run build;
-
You can recompile automatically while developing by running:
npm run watch
If you have docker or a compatible container engine installed, you can compile the theme using the official Node docker image.
-
From within the stanford_decanter theme directory run:
docker run -it --rm -v "$(pwd)":/usr/src/app -w /usr/src/app node:alpine npm install && \ docker run -it --rm -v "$(pwd)":/usr/src/app -w /usr/src/app node:alpine npm run build;
The following files are compiled automatically and should not be directly edited:
dist/main.compiled.css(Editsrc/main.cssinstead)
This theme supports custom colors using the Color module. To keep this support please make sure to update css/skin.css, theme-settings.php and color/color.inc files.
Github actions will build and commit the output upon push.
Please submit any suggested changes as a github pull request.
You can also use github to file bug reports and support requests.
To take a reference capture of the test site run:
docker compose run backstop reference --config=/config.js