From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit-assets 2/3] material: reduce default spacing to 8px
Date: Thu, 22 Oct 2026 19:41:01 +0200 [thread overview]
Message-ID: <20261022174334.2286071-3-t.lamprecht@proxmox.com> (raw)
In-Reply-To: <20261022174334.2286071-1-t.lamprecht@proxmox.com>
Material Design aligns components to an 8dp grid, with a 4dp grid for
finer elements such as icons and type. A 10px spacer put the spacer
steps at 10, 20, 30 and 40px, off that grid; with 8px they are 8, 16,
24 and 32px.
The 10px default also left a lot of room between controls, on desktops
as well as on phones, and 8px fits more content at the same font size.
Anyone who wants more room can choose Relaxed, and on touch screens
the controls keep a fingertip-sized target.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
scss/material/_theme_config_material.scss | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/scss/material/_theme_config_material.scss b/scss/material/_theme_config_material.scss
index 7e7c040..2eeecb8 100644
--- a/scss/material/_theme_config_material.scss
+++ b/scss/material/_theme_config_material.scss
@@ -1,11 +1,10 @@
/// ### The "Material" Theme
///
-/// This theme is intended for use on mobile/touch devices and uses a very
-/// large `10px` spacer. It is broadly similar to material design as
-/// described in <https://m3.material.io/>.
+/// This theme uses an `8px` default spacer, with relaxed spacing and coarse-pointer control sizing
+/// available. It is broadly similar to Material Design as described in <https://m3.material.io/>.
///
-$spacer: 10px;
+$spacer: 8px;
$button-corner-shape: map-get($shape-corner, full);
$fab-corner-shape: map-get($shape-corner, large);
--
2.47.3
next prev parent reply other threads:[~2026-10-22 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 17:40 [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 1/3] material: give controls a fingertip-sized target on touch screens Thomas Lamprecht
2026-10-22 17:41 ` Thomas Lamprecht [this message]
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 3/3] material: let an application turn the touch-sized controls off Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261022174334.2286071-3-t.lamprecht@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox