Skip to content

Add Button Styling Class to Site CSS#1162

Merged
curtisdelicata merged 1 commit intomainfrom
sweep/Add-Button-Styling-Class-to-Site-CSS
May 10, 2025
Merged

Add Button Styling Class to Site CSS#1162
curtisdelicata merged 1 commit intomainfrom
sweep/Add-Button-Styling-Class-to-Site-CSS

Conversation

@sweep-ai-deprecated
Copy link
Copy Markdown
Contributor

This pull request was created by Sweep to resolve the following request by @curtisdelicata:

error during build:
[vite:css] [postcss] postcss-import: /home/familytree365/genealogy-laravel/resources/css/site.css:22:1: Unexpected }
file: /home/familytree365/genealogy-laravel/resources/css/site.css:22:0 (/home/familytree365/genealogy-laravel/resources/css/app.css)
at Input.error (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/input.js:113:16)
at Parser.unexpectedClose (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/parser.js:587:22)
at Parser.end (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/parser.js:330:12)
at Parser.parse (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/parser.js:456:16)
at parse (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/parse.js:11:12)
at get root (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/no-work-result.js:43:14)
at Result.get [as root] (/home/familytree365/genealogy-laravel/node_modules/postcss/lib/no-work-result.js:77:2...

Continue chatting at https://app.sweep.dev/c/af907fa5-4afb-48f5-adb0-0fda2c1ee39b.

Purpose

This pull request adds a standardized button styling class to improve UI consistency and maintainability across the application.

Description

Added a new .btn class to the site.css file that implements a consistent button styling using Tailwind CSS utility classes. The button style includes:

  • Padding on x and y axes
  • Blue background color with hover state
  • White text
  • Semi-bold font weight
  • Rounded corners
  • Drop shadow effect

This standardization will help maintain a consistent look and feel across all buttons in the application while leveraging Tailwind's utility-first approach.

Summary

  • Added new .btn class in resources/css/site.css
  • Applied Tailwind utilities:
    • @apply px-4 py-2
    • @apply bg-blue-500 hover:bg-blue-700
    • @apply text-white font-semibold
    • @apply rounded-lg shadow-md
  • Class can be reused across the application for consistent button styling

@curtisdelicata curtisdelicata merged commit 4fcd5ad into main May 10, 2025
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant