You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c87cb0c
Browse filesBrowse the repository at this point in the historyBrowse files
experimental theme: a seventh round of fixes (how lists, one-mode shadows and borders, offline pictures) (#11779)
[experimental] `astryx experimental theme editor how` reads more questions through its shared readers:
- **Lists:** a two-item list of variants or states before a single ask names each one for that ask: "primary and ghost buttons rounder", "hovered and pressed buttons orange", in an except list too. "except disabled buttons" keeps that state. An except covers the whole ask before it. A prohibition said before the ask ("never round the inputs; make everything rounder", "don't make cards rounder, make everything rounder") is read the same as one said after it.
- **One-mode shadows:**
- A one-mode shadow on a part reads the shared shadows to their layers.
- It refuses with the true reason when the other mode is unknown, or when nothing of the part's own is there to remove.
- **Ringed parts:** a resting shadow, or its removal, is not offered on a part that draws its hover and focus rings in its box-shadow, in either mode.
- **One-mode lines:** a line the part already draws (a border, one side of it, an outline) takes its color by mode. When `set --mode` refuses such a line, it now names working steps instead of ones that repaint the other mode.
- **Accent colors:** on a theme whose modes show a color in different hues, or that shows only dark mode, a lighter, darker, warmer or cooler accent moves each mode's colors from their own values.
- **Swaps:** swapping two role colors also swaps their text, icon, wash and label colors in every mode.
- **Corners:** comparisons read the radius each part is built with (stone's pill buttons). A button group's corners step by a px amount.
- **Gradients:** gradients named by theme colors ("from the accent to the danger color") use those colors.
- **Hyphens:** a part or phrase written with hyphens or underscores ("focus-ring", "table_row") reads the same as with spaces.
- **Other readings:**
- A text-only part's color is its text color ("the top nav heading white").
- "What color is the header" answers its fill.
- "Bigger but no more than 20px" takes one step of the theme's scale, held to the bound.
- "Everything serif except headings" keeps the headings' font.
- "The hover tint stronger" changes the shared hover wash, not the page.
- "The body text 1px bigger" steps the text size.
`box-shadow none` on a card now also removes Core's elevation shadow. The selection ring stays.
[experimental] `astryx experimental theme editor undo`: with no `--mode`, a setting saved for one mode only is removed, and the result names its mode; one saved for each mode gets an undo line per mode instead of a refusal that contradicts itself.
[experimental] `astryx experimental theme editor` pictures (`--png`) never wait on a network: the picture's browser loads the page's own files only, so a remote stylesheet, font or image a page names (a base theme's Google Fonts import, a template's photo) fails at once instead of holding the picture until the time limit when the machine is offline or has no direct internet.
[experimental]`astryx experimental theme editor how` reads more questions through its shared readers:
6
+
7
+
-**Lists:** a two-item list of variants or states before a single ask names each one for that ask: "primary and ghost buttons rounder", "hovered and pressed buttons orange", in an except list too. "except disabled buttons" keeps that state. An except covers the whole ask before it. A prohibition said before the ask ("never round the inputs; make everything rounder", "don't make cards rounder, make everything rounder") is read the same as one said after it.
8
+
-**One-mode shadows:**
9
+
- A one-mode shadow on a part reads the shared shadows to their layers.
10
+
- It refuses with the true reason when the other mode is unknown, or when nothing of the part's own is there to remove.
11
+
-**Ringed parts:** a resting shadow, or its removal, is not offered on a part that draws its hover and focus rings in its box-shadow, in either mode.
12
+
-**One-mode lines:** a line the part already draws (a border, one side of it, an outline) takes its color by mode. When `set --mode` refuses such a line, it now names working steps instead of ones that repaint the other mode.
13
+
-**Accent colors:** on a theme whose modes show a color in different hues, or that shows only dark mode, a lighter, darker, warmer or cooler accent moves each mode's colors from their own values.
14
+
-**Swaps:** swapping two role colors also swaps their text, icon, wash and label colors in every mode.
15
+
-**Corners:** comparisons read the radius each part is built with (stone's pill buttons). A button group's corners step by a px amount.
16
+
-**Gradients:** gradients named by theme colors ("from the accent to the danger color") use those colors.
17
+
-**Hyphens:** a part or phrase written with hyphens or underscores ("focus-ring", "table_row") reads the same as with spaces.
18
+
-**Other readings:**
19
+
- A text-only part's color is its text color ("the top nav heading white").
20
+
- "What color is the header" answers its fill.
21
+
- "Bigger but no more than 20px" takes one step of the theme's scale, held to the bound.
22
+
- "Everything serif except headings" keeps the headings' font.
23
+
- "The hover tint stronger" changes the shared hover wash, not the page.
24
+
- "The body text 1px bigger" steps the text size.
25
+
26
+
`box-shadow none` on a card now also removes Core's elevation shadow. The selection ring stays.
[experimental]`astryx experimental theme editor undo`: with no `--mode`, a setting saved for one mode only is removed, and the result names its mode; one saved for each mode gets an undo line per mode instead of a refusal that contradicts itself.
[experimental]`astryx experimental theme editor` pictures (`--png`) never wait on a network: the picture's browser loads the page's own files only, so a remote stylesheet, font or image a page names (a base theme's Google Fonts import, a template's photo) fails at once instead of holding the picture until the time limit when the machine is offline or has no direct internet.
? `--mode takes a plain color; ${prop} mixes a color with ${words.length>1 ? 'other words' : 'nothing else'}, so its color goes per mode through ${alt}${shapeLines.length ? `, and its ${prop==='text-decoration' ? 'line and style' : 'width and style'} for both modes` : ''}.`
5995
-
: colorWord&&/shadow$/.test(prop)
5996
-
? `--mode takes a plain color; ${prop} mixes a color with sizes, so --mode cannot hold it. Its color can still differ between light and dark: write it in the value as light-dark(<light>, <dark>).`
5997
-
: `--mode works on plain colors; ${prop} is not a color, so it is set for both modes.`,
6034
+
alt&&undrawn
6035
+
? `--mode takes a plain color; ${s.on} draws no ${prop} now, and a line's width and style are the same in both modes, so it would show in the other mode too. Write its color in the value as light-dark(<light>, <dark>), with transparent for the mode that shows none.`
6036
+
: alt
6037
+
? `--mode takes a plain color; ${prop} mixes a color with ${words.length>1 ? 'other words' : 'nothing else'}, so its color goes per mode through ${alt}${shapeLines.length ? `, and its ${prop==='text-decoration' ? 'line and style' : 'width and style'} for both modes` : ''}.`
6038
+
: colorWord&&/shadow$/.test(prop)
6039
+
? `--mode takes a plain color; ${prop} mixes a color with sizes, so --mode cannot hold it. Its color can still differ between light and dark: write it in the value as light-dark(<light>, <dark>).`
6040
+
: `--mode works on plain colors; ${prop} is not a color, so it is set for both modes.`,
0 commit comments