mapbox / mapbox/assembly

Rework color variants in order to reduce file size

Open
#993 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2 dunkagroo estimate-2 estimate-4 icebox jira-sync-complete p2
Dominant language
CSS
Stars
138
Forks
26
Avg merge
1d 7h
Merged PRs (30d)
3

Description

Our best bet for cutting down on Assembly's built file size is to rework the color variant build process. We generate a lot of CSS in order to support multi-color forms. Most apps only need one checkbox color, but often apps will want a few different button colors. Can the color variant API be adjusted so user may declare which form elements they'd like to color which colors?

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 by tracing Assembly's color variant build process and current color variant API, then measure how much CSS is generated for multi-color forms. Done means users can declare which form elements receive which colors while reducing the built file size without losing the supported variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
build-system, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.