argyleink / argyleink/open-props

Negative prop packs

Open
#527 10 comments 2 reactions 0 assignees View on GitHub
enhancement new props
Dominant language
HTML
Stars
5.5k
Forks
216
PR merge metrics
No merged PRs in 30d

Description

`calc(-1 * var(--size-3))` is annoying to write and unintuitive to read. @felix-bohlin suggested in Discord to use `var(--size-3-)` with a trailing `-` to signify a negative value.

thoughts on this naming?
have alt naming suggestions?

These negative/inverted value props would be individual imports (aka not part of the main bundle) but would be included in the JS bundle for use with jit-props.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by reviewing the existing custom-property naming and import/bundle conventions, then resolve the proposed trailing-`-` syntax and its individual-import and JIT-bundle scope. Done means the naming decision and implementation scope are agreed.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.