Skip to content

Standardize styling approach across frontend #43

Description

@bitcoinbrisbane

Priority: MEDIUM

Problem

The codebase mixes three styling approaches inconsistently:

  1. CSS Modules (Primary)

    • Table.css (485 LOC)
    • Footer.css (219 LOC)
    • Badge.css (214 LOC)
  2. Inline Styles (Common in modals)

    style={{ backgroundColor: colors.ui.bgDark, border: \`1px solid \${colors.ui.borderColor}\` }}
  3. Tailwind Classes (Layout)

    className="flex justify-between gap-1 lg:gap-2 mb-1 rounded-lg"

Issues:

  • Inconsistent patterns make code harder to maintain
  • Inline styles scattered throughout (especially modals)
  • Duplicate gradient definitions across files
  • No design system established

Solution

  1. Standardize on CSS Modules + Tailwind
  2. Move all inline styles to CSS modules
  3. Use CSS variables for colors (leverage existing colorConfig.ts)
  4. Create shared gradient/style variables

Acceptance Criteria

  • Audit all inline styles in components
  • Migrate inline styles to CSS modules
  • Create CSS variables for common colors
  • Document styling conventions
  • Update contributing guide with styling standards

Related

Parent issue: #45

Metadata

Metadata

Assignees

Labels

architectureArchitecture and code structure improvementsenhancementNew feature or requestgood first issueGood for newcomerstech debtTechnical debtuxUX related issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions