Used a modified TailwindCLI with DaisyUI

This commit is contained in:
2024-01-28 17:51:56 -07:00
parent d9b0bc44fb
commit bd28ff5324
11 changed files with 28 additions and 65 deletions

1
stylegen/base.css vendored
View File

@ -1,4 +1,3 @@
@import url('daisyui.css') layer(base);
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -20,27 +20,34 @@ case $OS in
;;
esac
case $ARCH in
"x86_64")
ARCH="x64"
;;
"arm64")
ARCH="arm64"
;;
*)
echo "Unsupported architecture: $ARCH"
exit 1
;;
esac
# Construct the binary file name
BINARY="./tw/${OS}-${ARCH}"
if [ "$OS" = "windows" ]; then
BINARY="${BINARY}.exe"
# For macOS, we use a single binary called 'macos'
if [ "$OS" = "macos" ]; then
BINARY="./tw/macos"
else
# Set execute permissions on the binary
chmod +x $BINARY
case $ARCH in
"x86_64")
ARCH="x64"
;;
"arm64")
ARCH="arm64"
;;
*)
echo "Unsupported architecture: $ARCH"
exit 1
;;
esac
# Construct the binary file name
BINARY="./tw/${OS}-${ARCH}"
if [ "$OS" = "windows" ]; then
BINARY="${BINARY}.exe"
else
# Set execute permissions on the binary
chmod +x $BINARY
fi
fi
echo $BINARY
# Run the binary
$BINARY build -i ./base.css -o ../public/css/styles.css --minify

View File

@ -7,6 +7,6 @@ module.exports = {
daisyui: {
themes: ["night"],
},
plugins: [require('@tailwindcss/typography')],
plugins: [require('daisyui'), require('@tailwindcss/typography')],
}

Binary file not shown.

Binary file not shown.

BIN
stylegen/tw/macos-x64 → stylegen/tw/macos Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.