@stnd/styles 0.10.13 → 0.10.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @stnd/styles
2
2
 
3
+ ## 0.10.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-bumped @stnd/styles due to modified code.
8
+
9
+ ## 0.10.14
10
+
11
+ ### Patch Changes
12
+
13
+ - Auto-bumped @stnd/styles due to modified code.
14
+
3
15
  ## 0.10.13
4
16
 
5
17
  ### Patch Changes
package/TOKENS.md CHANGED
@@ -350,8 +350,8 @@ box-shadow: var(--shadow-inset), var(--shadow-ambient);
350
350
  | ---------------------- | --------------------------- | -------------- |
351
351
  | `--font-weight` | `400` | Body weight |
352
352
  | `--font-weight-bold` | `600` | Bold weight |
353
- | `--font-header-weight` | `700` | Heading weight |
354
- | `--font-weight-h1` | `var(--font-header-weight)` | H1 weight |
353
+ | `--font-weight-header` | `700` | Heading weight |
354
+ | `--font-weight-h1` | `var(--font-weight-header)` | H1 weight |
355
355
  | `--font-weight-h2` | `max(header*0.85, body)` | H2 weight |
356
356
  | `--font-weight-h3` | `max(header*0.85, body)` | H3 weight |
357
357
  | `--font-weight-h4` | `var(--font-weight)` | H4 weight |
@@ -392,8 +392,8 @@ box-shadow: var(--shadow-inset), var(--shadow-ambient);
392
392
  | ---------------------- | -------------------------------------------- | --------------------------- |
393
393
  | `--prose-width` | `42rem` | Optimal reading line length |
394
394
  | `--prose-inset` | `max(calc(var(--space-2) - var(--space)), var(--space))` | Narrow elements margin inset |
395
- | `--prose-breakout` | `minmax(0, var(--space))` | Wide breakout column track |
396
- | `--prose-track-full` | `minmax(0, 1fr)` | Full page breakout track |
395
+ | `--prose-wide` | `minmax(0, var(--space))` | Wide breakout column track |
396
+ | `--prose-full` | `minmax(0, 1fr)` | Full page breakout track |
397
397
 
398
398
  ## Analog (Noise Overlay)
399
399
 
@@ -126,12 +126,12 @@
126
126
  * @description Grid breakout track sizes allowing wide content and full-width elements to extend past the reading measure, plus narrow element insets.
127
127
  *
128
128
  * @property {variable} --prose-inset Narrow layout inset margin (`max(calc(var(--space-2) - var(--space)), var(--space))`).
129
- * @property {variable} --prose-breakout Wide column breakout track width (`minmax(0, var(--space))`).
130
- * @property {variable} --prose-track-full Full-width page breakout track (`minmax(0, 1fr)`).
129
+ * @property {variable} --prose-wide Wide column breakout track width (`minmax(0, var(--space))`).
130
+ * @property {variable} --prose-full Full-width page breakout track (`minmax(0, 1fr)`).
131
131
  */
132
132
  --prose-inset: max(calc(var(--space-2) - var(--space)), var(--space));
133
- --prose-breakout: minmax(0, var(--space));
134
- --prose-track-full: minmax(0, 1fr);
133
+ --prose-wide: minmax(0, var(--space));
134
+ --prose-full: minmax(0, 1fr);
135
135
 
136
136
  /**
137
137
  * @name Stroke, Radius & Filters
@@ -148,8 +148,8 @@
148
148
  --filter-glass: blur(20px);
149
149
  --stroke-width: max(1px, 0.06rem);
150
150
  --stroke-width-lg: calc(var(--stroke-width) * 2);
151
- --radius: var(--leading);
152
- --radius-sm: var(--trim);
151
+ --radius: var(--trim);
152
+ --radius-sm: 4px;
153
153
 
154
154
  /**
155
155
  * @name Shadows & Elevation
@@ -17,7 +17,7 @@
17
17
  * @property --font-instrument-feature OpenType stylistic feature set for Instrument Sans.
18
18
  * @property --font-weight Normal text font weight (`400`).
19
19
  * @property --font-weight-bold Bold text font weight (`600`).
20
- * @property --font-header-weight Heading font weight anchor (`700`).
20
+ * @property --font-weight-header Heading font weight anchor (`700`).
21
21
  * @property --font-weight-h1 Level 1 heading weight.
22
22
  * @property --font-weight-h2 Level 2 heading weight.
23
23
  * @property --font-weight-h3 Level 3 heading weight.
@@ -64,7 +64,7 @@
64
64
  default. A theme or note can still override by setting this explicitly —
65
65
  but defining it here to a literal value would shadow every level's
66
66
  tightness with the same number, which is the bug this avoids. */
67
- --font-header-weight: 700;
67
+ --font-weight-header: 700;
68
68
 
69
69
  /* Interface Tokens */
70
70
  --font-interface-feature: "dlig", "zero";
@@ -73,13 +73,13 @@
73
73
  --font-list-variation: "";
74
74
 
75
75
  /* Heading Weight Hierarchy */
76
- --font-weight-h1: var(--font-header-weight);
76
+ --font-weight-h1: var(--font-weight-header);
77
77
  --font-weight-h2: max(
78
- calc(var(--font-header-weight) * 0.85),
78
+ calc(var(--font-weight-header) * 0.85),
79
79
  var(--font-weight)
80
80
  );
81
81
  --font-weight-h3: max(
82
- calc(var(--font-header-weight) * 0.85),
82
+ calc(var(--font-weight-header) * 0.85),
83
83
  var(--font-weight)
84
84
  );
85
85
  --font-weight-h4: var(--font-weight);
@@ -62,13 +62,13 @@
62
62
  //*
63
63
  > :where(:is(#{$rhythm-tags})) ~ :where(:is(h1, h2)) {
64
64
  margin-block-start: calc(
65
- var(--space) * calc(var(--rhythm-block-scale, 2) + 2)
65
+ var(--space) * calc(var(--rhythm-block-scale, 2) + 3)
66
66
  );
67
67
  }
68
68
 
69
69
  > :where(:is(#{$rhythm-tags})) ~ :where(:is(h3, h4, h5, h6)) {
70
70
  margin-block-start: calc(
71
- var(--space) * calc(var(--rhythm-block-scale, 2) + 1)
71
+ var(--space) * calc(var(--rhythm-block-scale, 2) + 2)
72
72
  );
73
73
  }
74
74
 
@@ -11,7 +11,7 @@
11
11
  * @property .prose Main article/content grid container for readable prose with named tracks.
12
12
  * @property .prose.left Left-aligned prose variant hugging the left edge.
13
13
  * @property .narrow Inset element narrower than prose reading column (`var(--prose-inset)`).
14
- * @property .wide Breakout column extending past prose reading column (`var(--prose-breakout)`).
14
+ * @property .wide Breakout column extending past prose reading column (`var(--prose-wide)`).
15
15
  * @property .full Full container width breakout track spanning to `--page-max-width`.
16
16
  * @property .full-bleed Full viewport width breakout track (`100vw`).
17
17
  * @property --prose-width Active reading column measure.
@@ -56,11 +56,11 @@
56
56
  }
57
57
 
58
58
  grid-template-columns:
59
- [full-start hero-start] var(--prose-track-full, minmax(0, 1fr))
60
- [wide-start] var(--prose-breakout, minmax(0, var(--space)))
59
+ [full-start hero-start] var(--prose-full, minmax(0, 1fr))
60
+ [wide-start] var(--prose-wide, minmax(0, var(--space)))
61
61
  [content-start] min(100%, var(--prose-width)) [content-end]
62
- var(--prose-breakout, minmax(0, var(--space))) [wide-end]
63
- var(--prose-track-full, minmax(0, 1fr)) [hero-end full-end];
62
+ var(--prose-wide, minmax(0, var(--space))) [wide-end]
63
+ var(--prose-full, minmax(0, 1fr)) [hero-end full-end];
64
64
 
65
65
  transition: grid-template-columns var(--transition);
66
66
 
@@ -204,10 +204,12 @@ dt {
204
204
  /* Safe default containment for direct body children:
205
205
  every element placed directly in body is centered and padded
206
206
  unless explicitly marked full-bleed, a header, or a footer. */
207
- body > :not(.full-bleed, .stnd-header, .stnd-footer, [data-full-bleed], script, style, template, astro-island) {
207
+ /*
208
+ body > :not(.full-bleed, .stnd-header, .stnd-footer, [data-full-bleed], script, style, template, astro-island) {
208
209
  width: 100%;
209
210
  max-width: var(--page-max-width);
210
211
  margin-inline: auto;
211
212
  padding-inline: var(--page-padding);
212
213
  box-sizing: border-box;
213
214
  }
215
+ */
@@ -146,13 +146,13 @@ ol:where(.flex, [style*="display: flex"], [style*="display:flex"]) li {
146
146
 
147
147
  /* Dataview-style `[key:: value]` inline fields, tagged by the same plugin. */
148
148
  .task-field {
149
- display: inline-block;
149
+ display: inline-flex;
150
150
  font-family: var(--font-monospace);
151
151
  font-size: var(--scale-d5);
152
152
  color: var(--color-subtle);
153
153
  background: var(--color-surface-dark-1);
154
154
  border: var(--border);
155
155
  border-radius: var(--radius-sm);
156
- padding: 0 var(--space-d4);
156
+ padding: 0 var(--trim);
157
157
  margin-inline-end: var(--space-d6);
158
158
  }
@@ -103,6 +103,8 @@ select {
103
103
  @extend %padding-text;
104
104
  font-size: 1em;
105
105
 
106
+
107
+
106
108
  border-radius: var(--radius-sm);
107
109
  color: var(--color-muted);
108
110
  background-color: var(--color-surface-dark-1);
@@ -113,7 +115,9 @@ select {
113
115
  cursor: pointer;
114
116
  text-align: left;
115
117
  text-shadow: none !important;
116
- text-box-trim: none;
118
+ text-box-trim: trim;
119
+
120
+ padding: 0 var(--trim);
117
121
 
118
122
  appearance: none;
119
123
  /* Match Combobox double-chevron */
@@ -36,7 +36,7 @@
36
36
  transition: all var(--transition);
37
37
 
38
38
  pre {
39
- padding: var(--space);
39
+ padding: var(--leading);
40
40
  background: transparent;
41
41
  box-shadow: none;
42
42
  border: none;
@@ -648,11 +648,10 @@ card.inset {
648
648
  */
649
649
  .callout {
650
650
  /* Raised effect for callout cards */
651
- box-shadow: var(--shadow-raised), var(--shadow-ring);
651
+ box-shadow: var(--shadow);
652
652
 
653
653
  border-radius: var(--radius);
654
- padding: var(--space-d8);
655
- padding-top: 0;
654
+ padding: calc(var(--trim)/2);
656
655
  --color-callout: var(--color-surface-light-1);
657
656
  --color-border: oklch(from var(--color-callout) l c h / 0.15);
658
657
  background: color-mix(
@@ -675,7 +674,7 @@ card.inset {
675
674
  font-weight: var(--font-weight-bold, bold);
676
675
 
677
676
  user-select: none;
678
- padding: var(--space-d2);
677
+ padding: var(--leading);
679
678
  margin: 0 !important;
680
679
 
681
680
  .callout-title-inner {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stnd/styles",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "type": "module",
5
5
  "author": "Francis Fontaine",
6
6
  "license": "MIT",