-
Notifications
You must be signed in to change notification settings - Fork 0
Shadcn UI - like UI #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
37df0c9
Add Tailwind CSS and DaisyUI setup with build and watch scripts
yamcodes ea43237
Merge branch 'main' into 10-add-tailwind-css
yamcodes 47f2bdb
Add run configurations for "Contacts (Full)" and "Watch CSS"
yamcodes 3a98aee
Refactor and redesign contact management templates for improved user …
yamcodes ef5cbb1
Refactor contact management templates to use DaisyUI fieldsets and ta…
yamcodes 2b0c3f6
Improve search form SVG usability and update color theme configuration
yamcodes d73e9c7
Configure static resources in `application.yaml` with caching disabled
yamcodes 9508906
Update template prefix, add dictionary word, and improve branding text
yamcodes 45e1af8
Configure DevTools for additional restart paths and exclude HTML file…
yamcodes 46dc83a
Resolve merge conflicts with main
yamcodes c0cd77f
Configure Dev environment, refactor templates, and update run configu…
yamcodes 1eac456
Fix conditional rendering for contact initials in template
yamcodes 2f13ab9
Simplify contact initials rendering logic in view template
yamcodes 5e0a945
Redesign contact list rows with enhanced UI and interactivity
yamcodes 730eee3
Refactor delete button to use `th:attr` for dynamic `hx-delete` attri…
yamcodes 4ac0936
Update delete button to use `hx-push-url` and adjust `hx-target` for …
yamcodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| spring: | ||
| thymeleaf: | ||
| cache: false | ||
| prefix: file:src/main/resources/templates/ | ||
| devtools: | ||
| livereload: | ||
| enabled: true | ||
| restart: | ||
| additional-paths: src/main/resources/templates/ | ||
| additional-exclude: "**/*.html" | ||
| web: | ||
| resources: | ||
| static-locations: | ||
| - file:src/main/resources/static/ | ||
| - classpath:/static/ | ||
| cache: | ||
| period: 0 | ||
| chain: | ||
| cache: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,69 @@ | ||
| @import "tailwindcss"; | ||
| @source "../../templates"; | ||
|
|
||
| @plugin "daisyui"; | ||
|
|
||
| /* noinspection CssUnknownProperty */ | ||
| @plugin "daisyui/theme" { | ||
| name: "shadcn"; | ||
| default: true; | ||
| color-scheme: light; | ||
|
|
||
| /* Surfaces */ | ||
| --color-base-100: oklch(100% 0 0); | ||
| --color-base-200: oklch(97.8% 0 0); | ||
| --color-base-300: oklch(94.5% 0 0); | ||
| --color-base-content: oklch(14.1% 0 0); | ||
|
|
||
| /* Primary — zinc-900 */ | ||
| --color-primary: oklch(14.1% 0 0); | ||
| --color-primary-content: oklch(100% 0 0); | ||
|
|
||
| /* Secondary — zinc-100 */ | ||
| --color-secondary: oklch(94.5% 0 0); | ||
| --color-secondary-content: oklch(20.5% 0 0); | ||
|
|
||
| /* Accent — same as primary */ | ||
| --color-accent: oklch(14.1% 0 0); | ||
| --color-accent-content: oklch(100% 0 0); | ||
|
|
||
| /* Neutral */ | ||
| --color-neutral: oklch(27.4% 0 0); | ||
| --color-neutral-content: oklch(100% 0 0); | ||
|
|
||
| /* States */ | ||
| --color-error: oklch(57.7% 0.245 27.3); | ||
| --color-error-content: oklch(100% 0 0); | ||
| --color-warning: oklch(76.9% 0.188 70.1); | ||
| --color-warning-content: oklch(14.1% 0 0); | ||
| --color-success: oklch(64.8% 0.15 160); | ||
| --color-success-content: oklch(100% 0 0); | ||
| --color-info: oklch(60% 0.12 230); | ||
| --color-info-content: oklch(100% 0 0); | ||
|
|
||
| /* Shape — matches shadcn's rounded-md */ | ||
| --radius-selector: 0.375rem; | ||
| --radius-field: 0.375rem; | ||
| --radius-box: 0.5rem; | ||
|
|
||
| /* Flat — no depth/emboss effects */ | ||
| --depth: 0; | ||
| --noise: 0; | ||
|
|
||
| --border: 1px; | ||
|
|
||
| /* Button — match shadcn sizing and weight */ | ||
| --size-field: 0.225rem; /* × 10 = 2.25rem = h-9, shadcn default */ | ||
| --fontsize: 0.875rem; | ||
| } | ||
|
|
||
| @layer base { | ||
| body { font-family: Geist, sans-serif; } | ||
| } | ||
|
|
||
| @layer components { | ||
| .btn { | ||
| font-weight: 500; | ||
| letter-spacing: 0; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: yamcodes/contacts
Length of output: 9695
🏁 Script executed:
Repository: yamcodes/contacts
Length of output: 1067
Configure stylelint to recognize Tailwind v4 at-rules.
The
@source,@plugin, and@plugin "daisyui/theme"directives on lines 2, 4, and 7 are valid in Tailwind v4 but your current stylelint configuration extendsstylelint-config-standard-scss, which flags these as unknown at-rules and will fail CI lint checks. Add these directives to theat-rule-no-unknownrule'signoreAtRuleslist in.stylelintrc.json:Example fix
{ "extends": ["stylelint-config-standard-scss"], "rules": { "at-rule-no-unknown": [true, { "ignoreAtRules": ["tailwind", "layer", "source", "plugin", "import"] }], ... } }🧰 Tools
🪛 Stylelint (17.4.0)
[error] 2-2: Unexpected unknown at-rule "@source" (scss/at-rule-no-unknown)
(scss/at-rule-no-unknown)
[error] 4-4: Unexpected unknown at-rule "@plugin" (scss/at-rule-no-unknown)
(scss/at-rule-no-unknown)
[error] 7-7: Unexpected unknown at-rule "@plugin" (scss/at-rule-no-unknown)
(scss/at-rule-no-unknown)
🤖 Prompt for AI Agents