Update tailwind.config.js and .air.toml, remove stylegen/package.json and modify base.css and main.go
This commit is contained in:
19
stylegen/base.css
vendored
19
stylegen/base.css
vendored
@ -1,12 +1,15 @@
|
||||
@import url('daisyui.css') layer(base);
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
html,
|
||||
container,
|
||||
body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
position: fixed;
|
||||
}
|
||||
@layer base {
|
||||
html,
|
||||
container,
|
||||
body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
position: fixed;
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
20
stylegen/daisyui.css
vendored
Normal file
20
stylegen/daisyui.css
vendored
Normal file
File diff suppressed because one or more lines are too long
46
stylegen/gen.sh
Executable file
46
stylegen/gen.sh
Executable file
@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
|
||||
OS=$(uname -s)
|
||||
ARCH=$(uname -m)
|
||||
|
||||
# Normalize OS and ARCH identifiers
|
||||
case $OS in
|
||||
"Darwin")
|
||||
OS="macos"
|
||||
;;
|
||||
"Linux")
|
||||
OS="linux"
|
||||
;;
|
||||
"CYGWIN"*|"MINGW"*|"MSYS"*)
|
||||
OS="windows"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown operating system: $OS"
|
||||
exit 1
|
||||
;;
|
||||
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"
|
||||
else
|
||||
# Set execute permissions on the binary
|
||||
chmod +x $BINARY
|
||||
fi
|
||||
|
||||
# Run the binary
|
||||
$BINARY build -i ./base.css -o ../public/css/styles.css --minify
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"scripts": {
|
||||
"gen": "tailwindcss build ./base.css -o ../public/css/styles.css --minify",
|
||||
"watch": "tailwindcss build ./base.css -o ../public/css/styles.css --watch --minify"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"daisyui": "^4.6.0",
|
||||
"tailwindcss": "^3.4.1"
|
||||
}
|
||||
}
|
2
stylegen/tailwind.config.js
vendored
2
stylegen/tailwind.config.js
vendored
@ -7,6 +7,6 @@ module.exports = {
|
||||
daisyui: {
|
||||
themes: ["night"],
|
||||
},
|
||||
plugins: [require("daisyui"), require('@tailwindcss/typography')],
|
||||
plugins: [require('@tailwindcss/typography')],
|
||||
}
|
||||
|
||||
|
BIN
stylegen/tw/linux-arm64
Normal file
BIN
stylegen/tw/linux-arm64
Normal file
Binary file not shown.
BIN
stylegen/tw/linux-x64
Normal file
BIN
stylegen/tw/linux-x64
Normal file
Binary file not shown.
BIN
stylegen/tw/macos-arm64
Executable file
BIN
stylegen/tw/macos-arm64
Executable file
Binary file not shown.
BIN
stylegen/tw/macos-x64
Normal file
BIN
stylegen/tw/macos-x64
Normal file
Binary file not shown.
BIN
stylegen/tw/windows-arm64.exe
Normal file
BIN
stylegen/tw/windows-arm64.exe
Normal file
Binary file not shown.
BIN
stylegen/tw/windows-x64.exe
Normal file
BIN
stylegen/tw/windows-x64.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user