@castlabs/ui 7.7.0 → 7.8.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": "@castlabs/ui",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -13,12 +13,18 @@ $sidenav-z-index: $layer-z-sidenav;
13
13
  .cl-nav-top {
14
14
  // first/top line in content area
15
15
  @extend %section-padding;
16
- @extend %cl-color-night;
17
16
 
18
17
  @include spacing-before(0);
19
18
 
20
- background-color: $color-ci-night;
21
- color: $color-ci-eggshell;
19
+ @include cl-colors-ci;
20
+ @include cl-colors-admin;
21
+
22
+ &:not([class*='cl-color-']) {
23
+ @extend %cl-color-night;
24
+ }
25
+
26
+ background-color: var(--cl-color-background);
27
+ color: var(--cl-color-text);
22
28
 
23
29
  .row {
24
30
  #{'--bs-gutter-x'}: $grid-spacing;
@@ -51,7 +57,7 @@ $sidenav-z-index: $layer-z-sidenav;
51
57
  .cl-path {
52
58
  @extend %cl-p-label;
53
59
 
54
- color: $color-ci-eggshell;
60
+ color: var(--cl-color-text);
55
61
  flex-grow: 99;
56
62
  letter-spacing: 0;
57
63
  margin: 0;
@@ -43,3 +43,19 @@ a:hover {
43
43
  background-image: none;
44
44
  }
45
45
  }
46
+
47
+ .cl-nav-top {
48
+ // pick proper night/eggshell version based on nav background
49
+ [class*='cl-asset-logo'] {
50
+ background-image: url('#{$cl-url-prefix}castlabs-logo-eggshell.svg#{$cl-url-postfix}');
51
+ }
52
+
53
+ &.cl-color-eggshell,
54
+ &.cl-color-haze,
55
+ &.cl-color-clay,
56
+ &.cl-color-sky {
57
+ [class*='cl-asset-logo'] {
58
+ background-image: url('#{$cl-url-prefix}castlabs-logo.svg#{$cl-url-postfix}');
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,3 @@
1
+ :root {
2
+ #{'--cl-version'}: 'v7.8.0';
3
+ }
@@ -17,6 +17,7 @@ $castlabs-ui-asset-postfix: '' !default;
17
17
  @use 'layout/color';
18
18
  @use 'layout/grid';
19
19
  @use 'layout/helper';
20
+ @use 'layout/meta';
20
21
  @use 'layout/scrollbar';
21
22
  @use 'layout/section';
22
23
  @use 'layout/spacing';
package/types/index.d.ts CHANGED
@@ -163,3 +163,26 @@ export const NAV: {
163
163
  WM: ClService
164
164
  VTK: ClService
165
165
  }
166
+
167
+ // --- utils/const ----------------------------------------------------------------
168
+
169
+ export const CONST: {
170
+ COLOR: {
171
+ ASH: string,
172
+ BERRY: string,
173
+ BRICK: string,
174
+ CLAY: string,
175
+ EGGSHELL: string,
176
+ HAZE: string,
177
+ HONEY: string,
178
+ LEAF: string,
179
+ NIGHT: string,
180
+ ORCHID: string,
181
+ PETROL: string,
182
+ RED: string,
183
+ SAND: string,
184
+ SEA: string,
185
+ SKY: string,
186
+ STEEL: string
187
+ }
188
+ }