Replies: 2 comments
-
|
Also, why does this setting: "justify-items": "flex-start",output With modern CSS, Why no CSS Grid support?Additionally, why is this implementation seemingly limited to Wouldn’t it make more sense to provide broader support for both Flexbox and Grid to let developers choose the best layout tool for their specific needs? This restriction seems unnecessary and limiting. https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content |
Beta Was this translation helpful? Give feedback.
-
|
Why are you using a hyphen in CSS universally uses Consistency with established CSS standards is crucial for developers, as it reduces the learning curve and avoids potential mistakes. I don’t see a valid reason to deviate from the standard |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current implementation of the
style.spacing_panelin Shopify's theme architecture restricts spacing values to percentages (%) and pixels (px). This approach poses challenges for teams that employ a Predefined Spacing System using CSS variables to maintain design consistency across storefronts.Challenges with the Current Implementation:
Inconsistency in Design: Allowing only
%andpxunits can lead to discrepancies when developers or merchants apply arbitrary values, potentially disrupting the visual harmony established by a spacing system.Maintenance Complexity: Manually ensuring that all components adhere to a consistent spacing standard becomes cumbersome without the flexibility to utilize predefined variables.
Proposal:
Allow Number-Only Input: Instead of limiting the
style.spacing_panelto predefined units like%orpx, allow developers to define spacing values as raw numbers. This gives flexibility to decide later in the code how those numbers are used, without imposing specific units.For example:
25into thestyle.spacing_panel, it could be used directly in the theme code like this:Optional Unit Handling: For developers who want to use units (e.g.,
px,rem), the raw numbers can still be paired with the desired units in the code:or:
Maintain Developer Control: This approach ensures that developers remain in full control of how spacing values are applied, whether via a tokenized spacing system (
var(--space-N)) or by explicitly appending units. The system remains unit-agnostic, making it more versatile for different use cases.Benefits:
Design Consistency, Simplified Maintenance, Alignment with Modern Practices, More control over our designs.
Beta Was this translation helpful? Give feedback.
All reactions