Skip to content

Commit

Permalink
fix: lib/makefile/css hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
axzilla committed Oct 12, 2024
1 parent bc54e1c commit 29e04c0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 18 deletions.
19 changes: 6 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,17 @@ server:
--build.stop_on_error "false" \
--misc.clean_on_exit true

tailwind:
tailwind-app:
npx tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --watch

tailwind-goilerplate:
npx tailwindcss -c ./tailwind.config.lib.js -i ./assets/css/input.css -o ./pkg/styles/goilerplate.css --watch

dev:
make -j3 templ server tailwind
make -j4 templ server tailwind-app tailwind-goilerplate

debug:
make -j2 templ tailwind
make -j3 templ tailwind-app tailwind-goilerplate

# Package Tools
generate-icons:
go run cmd/icongen/main.go

generate-lib:
templ generate ./pkg/...

generate-lib-css:
npx tailwindcss -c ./tailwind.config.lib.js -i ./assets/css/input.css -o ./pkg/styles/goilerplate.css

update-package: generate-lib-css generate-lib
@echo "Package updated successfully"
48 changes: 43 additions & 5 deletions pkg/styles/goilerplate.css
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,10 @@ body {
margin-left: 0.25rem;
}

.ml-2 {
margin-left: 0.5rem;
}

.ml-auto {
margin-left: auto;
}
Expand Down Expand Up @@ -791,6 +795,10 @@ body {
height: 4rem;
}

.h-4 {
height: 1rem;
}

.h-5 {
height: 1.25rem;
}
Expand Down Expand Up @@ -835,6 +843,10 @@ body {
width: 75%;
}

.w-4 {
width: 1rem;
}

.w-56 {
width: 14rem;
}
Expand Down Expand Up @@ -875,6 +887,10 @@ body {
flex-shrink: 1;
}

.shrink-0 {
flex-shrink: 0;
}

.-translate-x-full {
--tw-translate-x: -100%;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
Expand Down Expand Up @@ -1045,6 +1061,10 @@ body {
border-radius: calc(var(--radius) - 2px);
}

.rounded-sm {
border-radius: calc(var(--radius) - 4px);
}

.border {
border-width: 1px;
}
Expand Down Expand Up @@ -1094,6 +1114,11 @@ body {
border-color: hsl(var(--input) / var(--tw-border-opacity));
}

.border-primary {
--tw-border-opacity: 1;
border-color: hsl(var(--primary) / var(--tw-border-opacity));
}

.border-transparent {
border-color: transparent;
}
Expand Down Expand Up @@ -1175,11 +1200,6 @@ body {
padding: 1.5rem;
}

.px-0 {
padding-left: 0px;
padding-right: 0px;
}

.px-0\.5 {
padding-left: 0.125rem;
padding-right: 0.125rem;
Expand Down Expand Up @@ -1676,6 +1696,24 @@ body {
opacity: 1;
}

.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
cursor: not-allowed;
}

.peer:disabled ~ .peer-disabled\:opacity-70 {
opacity: 0.7;
}

.data-\[state\=checked\]\:bg-primary[data-state="checked"] {
--tw-bg-opacity: 1;
background-color: hsl(var(--primary) / var(--tw-bg-opacity));
}

.data-\[state\=checked\]\:text-primary-foreground[data-state="checked"] {
--tw-text-opacity: 1;
color: hsl(var(--primary-foreground) / var(--tw-text-opacity));
}

.dark\:text-gray-200:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(229 231 235 / var(--tw-text-opacity));
Expand Down

0 comments on commit 29e04c0

Please sign in to comment.