@n1kname/components 0.61.0 → 0.62.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n1kname/components",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -251,10 +251,11 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, meta && `${uid}-meta`
251
251
  color: #fff;
252
252
  text-decoration: none;
253
253
  background:
254
+ /* The words sit top left, so the gradient starts at the tone itself there and only darkens
255
+ * away from them: a lighter stop under the copy took the meta line below AA. */
254
256
  linear-gradient(
255
257
  150deg,
256
- color-mix(in oklab, var(--tile-tone), white 10%),
257
- var(--tile-tone) 50%,
258
+ var(--tile-tone) 40%,
258
259
  color-mix(in oklab, var(--tile-tone), black 32%)
259
260
  );
260
261
  transition:
@@ -300,7 +301,7 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, meta && `${uid}-meta`
300
301
  margin: var(--sp-2) 0 0;
301
302
  font-size: var(--text-caption);
302
303
  letter-spacing: 0.02em;
303
- color: rgb(255 255 255 / 0.74);
304
+ color: rgb(255 255 255 / 0.92);
304
305
  }
305
306
 
306
307
  .title {
@@ -319,7 +320,7 @@ const labelledby = [`${uid}-title`, text && `${uid}-text`, meta && `${uid}-meta`
319
320
  max-width: 36ch;
320
321
  font-size: clamp(1rem, 2.6cqw, 1.2rem);
321
322
  line-height: 1.45;
322
- color: rgb(255 255 255 / 0.88);
323
+ color: #fff;
323
324
  text-wrap: pretty;
324
325
  }
325
326
 
@@ -119,7 +119,8 @@ const markIcon: Partial<Record<Mark, IconName>> = { gain: 'circle-check', gap: '
119
119
  [data-tone='accent'] {
120
120
  --edge: var(--c-accent-edge);
121
121
  --soft: var(--c-surface-tint);
122
- --mark: var(--c-accent);
122
+ /* The readable orange: the raw accent on its own tint is 2.6:1. */
123
+ --mark: var(--c-text-accent);
123
124
  }
124
125
 
125
126
  [data-tone='cool'] {
package/src/CopyTag.astro CHANGED
@@ -95,7 +95,7 @@ const svg = { width: 15, height: 15, viewBox: '0 0 24 24', fill: 'none', stroke:
95
95
  .copy-tag :global(a.tag:hover),
96
96
  .copy:hover {
97
97
  border-color: transparent;
98
- background: color-mix(in oklab, var(--c-surface-tint), var(--c-accent) 14%);
98
+ background: color-mix(in oklab, var(--c-surface-tint), var(--c-accent) 6%);
99
99
  }
100
100
 
101
101
  .ico {
@@ -116,7 +116,8 @@ const tones: Tone[] = ['accent', 'cool'];
116
116
  [data-tone='accent'] {
117
117
  --edge: var(--c-accent-edge);
118
118
  --soft: var(--c-surface-tint);
119
- --mark: var(--c-accent);
119
+ /* The readable orange: the raw accent on its own tint is 2.6:1. */
120
+ --mark: var(--c-text-accent);
120
121
  }
121
122
 
122
123
  [data-tone='cool'] {
package/src/Tracks.astro CHANGED
@@ -128,7 +128,8 @@ const trackTones: Tone[] = ['accent', 'cool'];
128
128
  [data-tone='accent'] {
129
129
  --fill: color-mix(in oklab, var(--c-accent) 16%, var(--c-surface));
130
130
  --edge: var(--c-accent-edge);
131
- --mark: var(--c-accent);
131
+ /* The readable orange: the raw accent on its own tint is 2.6:1. */
132
+ --mark: var(--c-text-accent);
132
133
  }
133
134
 
134
135
  [data-tone='cool'] {