Skip to content

Conversation

@dhanavadh
Copy link
Contributor

Summary

Implement global CSS management and design system components with Tailwind integration

Design System Components: Add ButtonFd, ButtonRpkm, Frame, and Popup components with SVG-based styling
Typography System: Implement Figma-based design tokens with IBM Plex Sans Thai font support use fontsource
Icon Integration: Add Lucide icons support across components

Key Features

  • ButtonFd: Cut-edge design button with 7 color themes, 3 sizes, fill/stroke variants
  • ButtonRpkm: button with gradient backgrounds and edge-cut design
  • Frame: Decorative container with 4 sizes, 2 color themes
  • Popup: Modal component with 2 sizes, 6 color themes

Ref Ticket
[FD] setup global component -> เทรุ

dhanavadh added 9 commits July 5, 2025 15:07
Added webp format background images:
- bg-all-1.webp
- bg-blue-1.webp
- bg-blue-2.webp
- bg-purple-1.webp

note* WebP image with a quality range of 80
Export svg from Figma Component Asset and use as reusable popup

Ref:[FD] setup global component -> เทรุ
```
โหลดภาพ popup ทำเป็น component ที่ใส่ <slot /> ไปตรงกลาง
variance
size : large, small
color : ตั้งชื่อได้เลยๆ แต่อยากได้ doc แปะชื่อคู่สีที่แสดง
```
Docs and example will be added later
- Add 8 frame SVG assets
- Add reusable Frame.astro component with size and color props
- Add frame-demo and frame-test pages for testing

Ref:[FD] setup global component -> เทรุ
```
frame : RPKM ทำเหมือน popup
```
- Add @fontsource packages for Orbitron, IBM Plex Sans Thai, and Zen Dots fonts
- Import fonts in MainLayout for global availability

Remarks* I rely on design token in figma first but the h1 is typically larger than the h2 and so on. but in figma design, the h5 is larger than h4 and so on krub.
- Add @lucide/astro package for icon components

Ref:
[FD] setup global component -> เทรุ
```
icon -> (maybe lucide icon?)
```
After discussion about H1-H5 hierarchy conflict between Design System and CSS Settings, the typography will be removed and will be using Tailwind System.
- Add ButtonFd component
- SVG-based styling with glow effects and transitions
- Slot-based icon system for flexible icon placement
- Add ButtonRpkm component with RPKM design system styling

*Remarks
Button behavior still needs to be fixed.
- add docstring for each components
- rm redundant css styling and use tailwind
@dhanavadh dhanavadh requested a review from MasterIceZ July 7, 2025 15:44
Copy link
Member

@MasterIceZ MasterIceZ left a comment

Choose a reason for hiding this comment

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

Please try merging the 'dev' branch first, as it has some conflicts.

@dhanavadh
Copy link
Contributor Author

Resolved conflicts, please review.

@dhanavadh dhanavadh requested a review from MasterIceZ July 7, 2025 16:29
Copy link
Member

@MasterIceZ MasterIceZ left a comment

Choose a reason for hiding this comment

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

Just one change, kub. Everything else is okay.

Comment on lines 5 to 7
import "@fontsource-variable/orbitron";
import "@fontsource/ibm-plex-sans-thai";
import "@fontsource/zen-dots"
Copy link
Member

Choose a reason for hiding this comment

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

Please move these to global.css

dhanavadh added 2 commits July 7, 2025 23:50
 - Remove font imports from MainLayout.astro
Change @fontsource-variable/ibm-plex-sans-thai to @fontsource/ibm-plex-sans-thai
Copy link
Member

@MasterIceZ MasterIceZ left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏻

@MasterIceZ MasterIceZ merged commit 719cd8a into dev Jul 7, 2025
7 checks passed
@dhanavadh dhanavadh deleted the feature/global-css-management branch July 8, 2025 02:14
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.

2 participants