Skip to content

Conversation

@Vivekk0712
Copy link

Description

Beautified the tags section that appears at the bottom of blog reading posts (technology and community pages).

Changes Made

  • Changed heading from "Tagged" to "Tags" for better clarity
  • Implemented colorful styling with 8 pastel color variants (pink, teal, rose, purple, blue, amber, emerald, indigo)
  • Added proper contrast with darker text colors (700 shade) for accessibility
  • Added subtle borders matching each color theme
  • Enhanced hover states for better user experience
  • Updated border radius from rounded to rounded-lg for modern look
  • Updated Tailwind config safelist to include new color classes

Technical Details

  • Modified components/tag.tsx to implement color logic
  • Each tag gets a consistent color based on its name (using character code hash)
  • Updated tailwind.config.js safelist to ensure color classes are included in build

Screenshots

Screenshot 2025-12-31 203250

Testing

  • Tested on blog reading pages: /blog/technology/[slug] and /blog/community/[slug]
  • Verified colors display correctly with good contrast
  • Confirmed hover states work as expected

Fixes keploy/keploy#3437

Copilot AI review requested due to automatic review settings December 31, 2025 15:10
- Changed heading from 'Tagged' to 'Tags'
- Added colorful styling with 8 different pastel color variants
- Improved visual contrast with darker text colors (700 shade)
- Added subtle borders matching each color theme
- Enhanced hover states for better UX
- Updated Tailwind safelist to include new color classes

Fixes #3437

Signed-off-by: Vivekk0712 <vivekkashyap0712@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the visual appearance of the tags section in blog reading posts by introducing colorful pastel styling with improved user experience.

  • Changed the section heading from "Tagged" to "Tags" for better clarity
  • Implemented 8 pastel color variants (pink, teal, rose, purple, blue, amber, emerald, indigo) that are consistently assigned to tags based on their names
  • Enhanced styling with borders, improved hover states, and larger border radius for a modern look

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
components/tag.tsx Implemented colorful tag styling with a hash-based color assignment system and updated the heading text
tailwind.config.js Added safelist entries for all tag color classes to ensure they are included in the Tailwind build

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Moved COLOR_VARIANTS constant outside renderTagButton function
to avoid unnecessary array allocations on each render

Signed-off-by: Vivekk0712 <vivekkashyap0712@gmail.com>
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.

[blog-website]: beautify tags on blog reading posts

1 participant