@streamscloud/kit 0.94.2 → 0.94.3

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.
@@ -1,9 +1,6 @@
1
1
  <script lang="ts">"use strict";
2
2
  let { mark = false, subheading = null, variant = 'mono', ariaLabel } = $props();
3
- // Resolve fills per variant. `mono` keeps the existing currentColor behavior;
4
- // `standard` paints the mark in the brand accent and the type in primary text,
5
- // matching the Figma master Standard lockup.
6
- const markFill = $derived(variant === 'standard' ? 'var(--sc-kit--color--accent)' : 'currentColor');
3
+ const markFill = $derived(variant === 'standard' ? 'var(--_logo--mark-color)' : 'currentColor');
7
4
  const typeFill = $derived(variant === 'standard' ? 'var(--sc-kit--color--text--primary)' : 'currentColor');
8
5
  // Path data per subheading. All positioned at y ≈ 135 in the lockup viewBox.
9
6
  // Source: Figma export — paths preserved verbatim so kerning / letter shapes
@@ -56,21 +53,16 @@ const label = $derived(ariaLabel ?? (subheading ? `Streams ${subheading}` : 'Str
56
53
 
57
54
  <!--
58
55
  @component
59
- Logo — the StreamsCloud brand mark, optionally locked up with the "Streams"
60
- wordmark and a sub-product name. Renders inline SVG using `currentColor`, so
61
- the consumer sets color via the parent's CSS `color` property.
56
+ Logo — the StreamsCloud brand mark, optionally locked up with the "Streams" wordmark and a sub-product name.
57
+ The `mono` variant paints in `currentColor`; `standard` paints the mark in Streams blue, which a workspace theme does not recolor.
62
58
 
63
- Examples:
64
- <Logo /> mark + Streams, inherits color
65
- <Logo subheading="cloud" /> + Cloud subheading
66
- <Logo mark /> mark only
67
-
68
- Wrap in a colored container to set the fill:
69
- <div style="color: var(--sc-kit--color--accent)">
70
- <Logo subheading="studio" />
71
- </div>
59
+ ### CSS Custom Properties
60
+ | Property | Description | Default |
61
+ |---|---|---|
62
+ | `--sc-kit--logo--mark-color` | Mark color in the `standard` variant | Streams blue (`#144ab0` light, `#5a8dec` dark) |
72
63
  -->
73
64
  <style>.logo {
65
+ --_logo--mark-color: var(--sc-kit--logo--mark-color, light-dark(#144ab0, #5a8dec));
74
66
  display: block;
75
67
  width: 100%;
76
68
  height: auto;
@@ -8,7 +8,7 @@ type Props = {
8
8
  /**
9
9
  * Color treatment.
10
10
  * - `mono`: every path inherits `currentColor`. Compose with the parent's CSS color.
11
- * - `standard`: brand-canonical two-tone — mark in `--sc-kit--color--accent`, wordmark in `--sc-kit--color--text--primary`.
11
+ * - `standard`: brand-canonical two-tone — mark in `--sc-kit--logo--mark-color` (Streams blue, independent of the theme accent), wordmark in `--sc-kit--color--text--primary`.
12
12
  * @default 'mono'
13
13
  */
14
14
  variant?: Variant;
@@ -16,19 +16,13 @@ type Props = {
16
16
  ariaLabel?: string;
17
17
  };
18
18
  /**
19
- * Logo — the StreamsCloud brand mark, optionally locked up with the "Streams"
20
- * wordmark and a sub-product name. Renders inline SVG using `currentColor`, so
21
- * the consumer sets color via the parent's CSS `color` property.
19
+ * Logo — the StreamsCloud brand mark, optionally locked up with the "Streams" wordmark and a sub-product name.
20
+ * The `mono` variant paints in `currentColor`; `standard` paints the mark in Streams blue, which a workspace theme does not recolor.
22
21
  *
23
- * Examples:
24
- * <Logo /> mark + Streams, inherits color
25
- * <Logo subheading="cloud" /> + Cloud subheading
26
- * <Logo mark /> mark only
27
- *
28
- * Wrap in a colored container to set the fill:
29
- * <div style="color: var(--sc-kit--color--accent)">
30
- * <Logo subheading="studio" />
31
- * </div>
22
+ * ### CSS Custom Properties
23
+ * | Property | Description | Default |
24
+ * |---|---|---|
25
+ * | `--sc-kit--logo--mark-color` | Mark color in the `standard` variant | Streams blue (`#144ab0` light, `#5a8dec` dark) |
32
26
  */
33
27
  declare const Cmp: import("svelte").Component<Props, {}, "">;
34
28
  type Cmp = ReturnType<typeof Cmp>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.94.2",
3
+ "version": "0.94.3",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",