raystack / raystack/apsara

[Grid] Add CSS Module, inline prop, and reduce inline styles

Open
#618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component triage
Dominant language
TypeScript
Stars
70
Forks
13
Avg merge
2d 5h
Merged PRs (30d)
8

Description

Summary

Grid is a custom layout primitive using Radix Slot for asChild support. Uses all inline styles with no CSS Module.

Improvements

1. Add CSS Module

Grid has no CSS Module — all styles are inline. Add a CSS Module for consistency with other components and to enable design token usage.

2. Use CSS custom properties for dynamic values

Instead of inline styles, use CSS custom properties set via style prop and referenced in the CSS Module. This allows easier theming and override.

4. Add inline prop for inline-grid

No way to use display: inline-grid.

Moved to Cross-Cutting Issues

The following items have been moved to cross-cutting issues that address them across all components:

  • Add displayName (#676)

Files

  • packages/raystack/raystack/components/grid/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/raystack/raystack/components/grid/ and inspect the Grid entry point and its current inline-style implementation. Compare the styling pattern used by other components, then verify that the CSS Module, CSS custom properties, and inline prop cover the requested improvements without changing existing layout behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.