@thalassic/themes 22.17.2 → 22.17.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/themes",
3
- "version": "22.17.2",
3
+ "version": "22.17.3",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^22.0.0",
@@ -0,0 +1,19 @@
1
+ :root {
2
+ --color-black: #000000;
3
+ --color-white: #ffffff;
4
+
5
+ --color-shade-5: hsl(0, 0%, 5%);
6
+ --color-shade-10: hsl(0, 0%, 10%);
7
+ --color-shade-15: hsl(0, 0%, 15%);
8
+ --color-shade-20: hsl(0, 0%, 20%);
9
+ --color-shade-30: hsl(0, 0%, 30%);
10
+ --color-shade-40: hsl(0, 0%, 40%);
11
+ --color-shade-50: hsl(0, 0%, 50%);
12
+ --color-shade-60: hsl(0, 0%, 60%);
13
+ --color-shade-70: hsl(0, 0%, 70%);
14
+ --color-shade-80: hsl(0, 0%, 80%);
15
+ --color-shade-85: hsl(0, 0%, 85%);
16
+ --color-shade-90: hsl(0, 0%, 90%);
17
+ --color-shade-95: hsl(0, 0%, 95%);
18
+ --color-shade-98: hsl(0, 0%, 98%);
19
+ }
@@ -1,4 +1,4 @@
1
- @use '../functions' as functions;
1
+ @use '../../../../../core/src/styles' as core;
2
2
  @use '../mixins' as mixins;
3
3
 
4
4
  .tls-file-input {
@@ -68,14 +68,14 @@
68
68
  &--dragging {
69
69
  --tls-file-input-border-color: var(--color-primary);
70
70
 
71
- background-color: functions.tint(var(--color-primary), 8%);
71
+ background-color: core.tint(var(--color-primary), 8%);
72
72
  }
73
73
 
74
74
  &--rejected {
75
75
  --tls-file-input-border-color: var(--color-danger);
76
76
 
77
77
  color: var(--color-danger);
78
- background-color: functions.tint(var(--color-danger), 8%);
78
+ background-color: core.tint(var(--color-danger), 8%);
79
79
  }
80
80
 
81
81
  &--disabled {
@@ -1,3 +1,4 @@
1
+ @use '../../../../../core/src/styles' as core;
1
2
  @use '../mixins' as mixins;
2
3
 
3
4
  .tls-odometer {
@@ -13,7 +14,7 @@
13
14
  line-height: 1;
14
15
 
15
16
  &__value {
16
- @include mixins.visually-hidden;
17
+ @include core.visually-hidden;
17
18
  }
18
19
 
19
20
  &__row {
@@ -1,11 +1,11 @@
1
+ @use '../../../../../../core/src/styles' as core;
1
2
  @use '../../mixins' as mixins;
2
- @use '../../functions' as functions;
3
3
 
4
4
  .tls-activity-heatmap {
5
5
  // Fill of a day with no activity, and the base every shaded cell is mixed against.
6
6
  --tls-activity-heatmap-empty: var(--color-surface-container-high);
7
7
  // Hairline that keeps a faint cell readable against the surface behind it.
8
- --tls-activity-heatmap-outline: #{functions.tint(var(--color-on-surface), 12%)};
8
+ --tls-activity-heatmap-outline: #{core.tint(var(--color-on-surface), 12%)};
9
9
  // Gap between cells, shared by the grid and the labels aligned to it.
10
10
  --tls-activity-heatmap-gap: var(--spacing-1);
11
11
 
@@ -1,3 +1,4 @@
1
+ @use '../../../../../../core/src/styles' as core;
1
2
  @use '../../mixins' as mixins;
2
3
  @use 'compact';
3
4
  @use 'lines';
@@ -163,7 +164,7 @@
163
164
  }
164
165
 
165
166
  &__markers-label {
166
- @include mixins.visually-hidden;
167
+ @include core.visually-hidden;
167
168
  }
168
169
 
169
170
  &__marker {
@@ -1,3 +1,4 @@
1
+ @use '../../../../../../core/src/styles' as core;
1
2
  @use '../../mixins' as mixins;
2
3
 
3
4
  .tls-stepper {
@@ -145,7 +146,7 @@
145
146
 
146
147
  // State text (completed / invalid) for assistive technology only.
147
148
  &__state {
148
- @include mixins.visually-hidden;
149
+ @include core.visually-hidden;
149
150
  }
150
151
  }
151
152
 
@@ -1,10 +1,10 @@
1
- @use '../../functions' as functions;
1
+ @use '../../../../../../core/src/styles' as core;
2
2
 
3
3
  .tls-tab-header {
4
4
  // Flat
5
5
  &.tls-tab-header--flat {
6
- --tls-tab-header-active-background-color: #{functions.tint(var(--color-primary), 8%)};
7
- --tls-tab-header-active-hover-background-color: #{functions.tint(var(--color-primary), 12%)};
6
+ --tls-tab-header-active-background-color: #{core.tint(var(--color-primary), 8%)};
7
+ --tls-tab-header-active-hover-background-color: #{core.tint(var(--color-primary), 12%)};
8
8
 
9
9
  border-bottom-width: var(--tls-tab-header-border-width);
10
10
  border-bottom-style: solid;
@@ -1,7 +1,7 @@
1
1
  @use '../../mixins' as mixins;
2
2
 
3
3
  .tls-tooltip {
4
- --tls-tooltip-box-shadow: 0 2px 8px -1px var(--color-shade-30);
4
+ --tls-tooltip-box-shadow: 0 2px 8px -1px rgb(var(--color-shadow) / 0.35);
5
5
  --tls-tooltip-padding: var(--spacing-3);
6
6
  --tls-tooltip-border-radius: 8px;
7
7
  --tls-tooltip-arrow-width: 12px;
@@ -1,5 +1,4 @@
1
1
  @forward 'components';
2
- @forward 'functions';
3
2
  @forward 'mixins';
4
3
  @forward 'semantic';
5
4
 
@@ -7,6 +6,7 @@
7
6
  @forward 'colors';
8
7
  @forward 'motion';
9
8
  @forward 'radius';
9
+ @forward 'shade';
10
10
  @forward 'shadow';
11
11
  @forward 'spacing';
12
12
  @forward 'typography';
@@ -1,8 +1,7 @@
1
+ @forward '../../../../../core/src/styles/tools/motion';
1
2
  @forward 'color-variants';
2
3
  @forward 'focus-ring';
3
- @forward 'motion';
4
4
  @forward 'panel-open';
5
5
  @forward 'pop';
6
6
  @forward 'touch-target';
7
7
  @forward 'variant-treatment';
8
- @forward 'visually-hidden';
@@ -1,4 +1,4 @@
1
- @use 'motion';
1
+ @use '../../../../../core/src/styles' as core;
2
2
 
3
3
  @keyframes tls-panel-open {
4
4
  from {
@@ -21,7 +21,7 @@
21
21
 
22
22
  // Panel motion is a functional origin cue, so it belongs to the `essential`
23
23
  // tier and survives reduced motion (resolved by `MotionService`).
24
- @include motion.motion(essential) {
24
+ @include core.motion(essential) {
25
25
  &--enter {
26
26
  animation: tls-panel-open $duration $enter-easing both;
27
27
  }
@@ -1,4 +1,4 @@
1
- @use 'motion';
1
+ @use '../../../../../core/src/styles' as core;
2
2
 
3
3
  // A quick grow-and-settle acknowledging a just-committed selection: the element
4
4
  // scales up to `--tls-pop-scale` and springs back. Only the peak is keyframed —
@@ -18,7 +18,7 @@
18
18
  ) {
19
19
  // Selection feedback is expressive — the committed state already reads
20
20
  // without it — so the pop belongs to the `full` tier only.
21
- @include motion.motion(full) {
21
+ @include core.motion(full) {
22
22
  --tls-pop-scale: #{$scale};
23
23
 
24
24
  animation: tls-pop $duration $easing;
@@ -1 +0,0 @@
1
- @forward 'tint';
@@ -1,13 +0,0 @@
1
- // Produces a translucent wash of a color by mixing it with `transparent`.
2
- // `$amount` is the share of the color that stays opaque (e.g. 8% → the color
3
- // at 8% alpha), the rest being transparent. Ideal for state layers — hover,
4
- // active, selected fills — laid over any background.
5
- //
6
- // Works with custom-property colors (`tint(var(--color-primary), 8%)`), which
7
- // `rgba()` cannot, since the token is not raw channel values.
8
- //
9
- // `$space` is the mixing color space; srgb blends the intuitive "normal RGB"
10
- // way. Override to `oklab` for a perceptually even blend when needed.
11
- @function tint($color, $amount, $space: srgb) {
12
- @return color-mix(in $space, #{$color} $amount, transparent);
13
- }
@@ -1,21 +0,0 @@
1
- // Gates its content on the resolved motion level reflected by `MotionService`
2
- // onto the document root (`data-motion` attribute).
3
- //
4
- // - `essential`: functional motion (panel origin cues, focus). Plays at the
5
- // `essential` and `full` levels.
6
- // - `full`: expressive/decorative motion. Plays only at the `full` level.
7
- //
8
- // At the `none` level (or when no attribute is present) nothing is emitted, so
9
- // the wrapped animation never runs.
10
- @mixin motion($tier: essential) {
11
- @if $tier == full {
12
- :root[data-motion='full'] & {
13
- @content;
14
- }
15
- } @else {
16
- :root[data-motion='essential'] &,
17
- :root[data-motion='full'] & {
18
- @content;
19
- }
20
- }
21
- }
@@ -1,19 +0,0 @@
1
- // Removes an element from the visual layout while leaving it in the accessibility tree, so the
2
- // text keeps naming its control for assistive technology. Use it instead of `display: none`
3
- // whenever hiding content would otherwise strip a control's accessible name.
4
- @mixin visually-hidden {
5
- position: absolute;
6
-
7
- width: 1px;
8
- height: 1px;
9
-
10
- margin: -1px;
11
- padding: 0;
12
-
13
- border: 0;
14
-
15
- white-space: nowrap;
16
- overflow: hidden;
17
-
18
- clip-path: inset(50%);
19
- }