guardicore / guardicore/monkey

Document styling pattern for UI refactoring

Open
#3,796 2 comments 0 reactions 0 assignees View on GitHub
Documentation Refactor Spike UI
Dominant language
Python
Stars
7.1k
Forks
830
PR merge metrics
No merged PRs in 30d

Description

# Spike

We need to agree upon which CSS styling pattern we want to use as there are [numerous options](https://blog.logrocket.com/best-styling-options-nextjs/)

# Patterns to consider

## Styled components

Example libraries: [Emotion](https://emotion.sh/docs/introduction), [styled-jsx](https://github.com/vercel/styled-jsx)

Pros:
- Makes components more self-contained
Cons:
- Code duplication

## Utility classes

Example library: [Tailwind](https://tailwindcss.com/docs/utility-first)

Pros:
- Reusable css
Cons:
- Less straightforward,

## Other

We might mix the two, use global stylesheets in addition.

## Output

Styling pattern is chosen and documented in UI guidelines.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.