@chassis-ui/docs 0.1.9 → 0.2.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.
@@ -17,7 +17,7 @@ interface Props {
17
17
  title: string
18
18
  }
19
19
 
20
- const { layout, title } = Astro.props
20
+ const { layout } = Astro.props
21
21
  const { pathname } = Astro.url
22
22
  const isActive = (path: string) => {
23
23
  if (path === '/') {
@@ -31,8 +31,8 @@ const isActive = (path: string) => {
31
31
  }
32
32
  ---
33
33
 
34
- <header class="navbar navbar-expand-large cxd-navbar sticky-top">
35
- <nav class="container-2xlarge" aria-label="Main navigation">
34
+ <header class="navbar large:navbar-expand cxd-navbar sticky-top">
35
+ <nav class="container 2xlarge" aria-label="Main navigation">
36
36
  {
37
37
  layout === 'docs' && (
38
38
  <div class="cxd-navbar-toggle">
@@ -47,14 +47,14 @@ const isActive = (path: string) => {
47
47
  <svg class="icon icon-large" aria-hidden="true">
48
48
  <use href="#bars-solid" />
49
49
  </svg>
50
- <span class="d-none fs-6 pe-2xsmall">Browse</span>
50
+ <span class="d-none large:d-inline fs-6 pe-2xsmall">Browse</span>
51
51
  </button>
52
52
  </div>
53
53
  )
54
54
  }
55
- {layout !== 'docs' && <div class="d-large-none" style="width: 4.25rem;" />}
55
+ {layout !== 'docs' && <div class="large:d-none" style="width: 4.25rem;" />}
56
56
 
57
- <a class="navbar-brand me-large-medium" href="/" aria-label="Chassis">
57
+ <a class="navbar-brand large:me-medium" href="/" aria-label="Chassis">
58
58
  <img src="/static/images/site-logo.svg" alt="Chassis UI" width="123" height="32" />
59
59
  </a>
60
60
 
@@ -62,7 +62,7 @@ const isActive = (path: string) => {
62
62
  <div class="cxd-search" id="docsearch"></div>
63
63
 
64
64
  <button
65
- class="navbar-toggler d-flex d-large-none order-3 p-xsmall"
65
+ class="navbar-toggler d-flex large:d-none order-3 p-xsmall"
66
66
  type="button"
67
67
  data-cx-toggle="offcanvas"
68
68
  data-cx-target="#cxdNavbar"
@@ -74,7 +74,8 @@ const isActive = (path: string) => {
74
74
  </div>
75
75
 
76
76
  <div
77
- class="offcanvas-large offcanvas-end flex-grow-1"
77
+ class="offcanvas large:offcanvas offcanvas-end flex-grow-1"
78
+ role="dialog"
78
79
  tabindex="-1"
79
80
  id="cxdNavbar"
80
81
  aria-labelledby="cxdNavbarOffcanvasLabel"
@@ -89,53 +90,45 @@ const isActive = (path: string) => {
89
90
  data-cx-target="#cxdNavbar"></button>
90
91
  </div>
91
92
 
92
- <div class="offcanvas-body p-large pt-0 p-large-0">
93
- <hr class="d-large-none text-white-50" />
94
- <ul class="navbar-nav flex-row flex-wrap cxd-navbar-nav mx-0 mx-large-medium">
93
+ <div class="offcanvas-body p-large pt-0 large:p-0">
94
+ <hr class="large:d-none" />
95
+ <ul class="navbar-nav flex-row flex-wrap cxd-navbar-nav mx-0 large:mx-medium">
95
96
  <NavLink active={isActive('/tokens')} href="/tokens">Tokens</NavLink>
96
97
  <NavLink active={isActive('/figma')} href="/figma">Figma</NavLink>
97
98
  <NavLink active={isActive('/css')} href="/css">CSS</NavLink>
98
99
  <NavLink active={isActive('/assets')} href="/assets">Assets</NavLink>
99
100
  <NavLink active={isActive('/icons')} href="/icons">Icons</NavLink>
100
- <li class="nav-item dropdown ms-medium">
101
- <a
102
- class="nav-link dropdown-toggle"
103
- href="/#"
104
- role="button"
105
- data-cx-toggle="dropdown"
106
- aria-expanded="false">More</a
107
- >
108
- <ul class="dropdown-menu">
109
- <li><a class="dropdown-item" href="/examples">Examples</a></li>
110
- <li><a class="dropdown-item" href="/blog">Blog</a></li>
111
- </ul>
101
+ <li class="nav-item col-12 large:col-auto large:d-flex">
102
+ <div class="vr d-none large:d-flex my-auto large:mx-2"></div>
103
+ <hr class="large:d-none" />
112
104
  </li>
105
+ <NavLink active={isActive('/examples')} href="/examples">Examples</NavLink>
113
106
  </ul>
114
107
 
115
- <hr class="d-large-none" />
108
+ <hr class="large:d-none" />
116
109
 
117
- <ul class="navbar-nav flex-row flex-wrap ms-medium-auto align-items-center">
110
+ <ul class="navbar-nav flex-row flex-wrap medium:ms-auto align-items-center">
118
111
  <NavLink
119
- class="nav-link px-0 px-large-2"
112
+ class="nav-link px-0 large:px-2"
120
113
  href={getConfig().github_org}
121
114
  target="_blank"
122
115
  rel="noopener"
123
116
  >
124
117
  <svg class="icon"><title>GitHub</title><use href="#github-brand"></use></svg>
125
- <small class="d-large-none ms-xsmall">GitHub</small>
118
+ <small class="large:d-none ms-xsmall">GitHub</small>
126
119
  </NavLink>
127
120
  <NavLink
128
- class="nav-link px-0 px-large-2"
121
+ class="nav-link px-0 large:px-2"
129
122
  href={`https://x.com/${getConfig().x}`}
130
123
  target="_blank"
131
124
  rel="noopener"
132
125
  >
133
126
  <svg class="icon"><title>X</title><use href="#x-twitter-brand"></use></svg>
134
- <small class="d-large-none ms-xsmall">X</small>
127
+ <small class="large:d-none ms-xsmall">X</small>
135
128
  </NavLink>
136
- <li class="nav-item col-12 col-large-auto">
137
- <div class="vr d-none d-large-flex h-100 mx-large-2 text-white"></div>
138
- <hr class="d-large-none" />
129
+ <li class="nav-item col-12 large:col-auto">
130
+ <div class="vr d-none large:d-flex h-100 large:mx-2"></div>
131
+ <hr class="large:d-none" />
139
132
  </li>
140
133
 
141
134
  <li class="nav-item dropdown">
@@ -16,7 +16,7 @@ const { layout } = Astro.props
16
16
  ---
17
17
 
18
18
  <div class="skippy visually-hidden-focusable overflow-hidden">
19
- <div class="container-xlarge">
19
+ <div class="container xlarge">
20
20
  <a class="d-inline-flex p-xsmall m-xsmall" href="#content">Skip to main content</a>
21
21
  {
22
22
  layout === 'docs' && (
package/src/libs/utils.ts CHANGED
@@ -107,9 +107,12 @@ export function getSiteUrl(config: any) {
107
107
  return `http://${host}:${port}`
108
108
  }
109
109
 
110
- // Vercel Production: Live production deployment
110
+ // Vercel Production: Prefer config.baseURL because it already has the correct
111
+ // path-prefixed chassis-ui.com URL (e.g. https://chassis-ui.com/tokens/).
112
+ // VERCEL_PROJECT_PRODUCTION_URL is the sub-project's own custom domain
113
+ // (e.g. tokens.chassis-ui.com) which is NOT the canonical URL we want in sitemaps.
111
114
  if (process.env.VERCEL_ENV === 'production') {
112
- return `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
115
+ return config.baseURL || `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
113
116
  }
114
117
 
115
118
  // Vercel Preview: Branch deployments and previews
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  .cxd-callout {
6
- --#{$prefix}link-main-color-rgb: var(--cxd-callout-link);
6
+ --#{$prefix}link-main-color: var(--cxd-callout-link);
7
7
  --#{$prefix}code-color: var(--cxd-callout-code-color);
8
8
 
9
9
  padding: 1.25rem;
@@ -1,53 +1,68 @@
1
1
  // stylelint-disable selector-class-pattern
2
2
 
3
3
  :root {
4
+ /* Colors */
4
5
  --docsearch-primary-color: var(--cx-primary);
6
+ --docsearch-soft-primary-color: var(--cx-primary-fg-subtle);
7
+ --docsearch-subtle-color: var(--cx-border-subtle);
5
8
  --docsearch-text-color: var(--cx-fg-main);
6
- --docsearch-spacing: var(--cx-space-medium);
7
- // --docsearch-icon-stroke-width: 1.4;
8
- --docsearch-highlight-color: var(--cx-primary);
9
- --docsearch-muted-color: var(--cx-fg-subtle);
9
+ --docsearch-error-color: var(--cx-danger-fg-main);
10
+ --docsearch-success-color: var(--cx-success-fg-main);
11
+ --docsearch-secondary-text-color: var(--cx-fg-subtle);
12
+ --docsearch-background-color: var(--cx-bg-main);
13
+ --docsearch-icon-color: var(--cx-fg-subtle);
10
14
  --docsearch-container-background: var(--cx-black-dim-main);
11
15
  --docsearch-logo-color: var(--cx-primary);
12
- // --docsearch-modal-width: 560px;
16
+ --docsearch-muted-color: var(--cx-fg-subtle);
17
+ --docsearch-muted-color-darker: var(--cx-fg-slight);
18
+
19
+ /* Spacing & Layout */
20
+ --docsearch-spacing: var(--cx-space-medium);
21
+ --docsearch-border-radius: var(--cx-border-radius-medium);
22
+ --docsearch-icon-stroke-width: var(--cx-border-width-medium);
23
+
24
+ /* Highlights & Focus */
25
+ --docsearch-focus-color: var(--cx-primary);
26
+ --docsearch-highlight-color: var(--cx-primary);
27
+
28
+ /* Button */
29
+ --docsearch-search-button-background: var(--cx-bg-main);
30
+ --docsearch-search-button-text-color: var(--cx-fg-subtle);
31
+
32
+ /* Modal */
33
+ --docsearch-modal-width: 640px;
13
34
  // --docsearch-modal-height: 600px;
35
+ // --docsearch-modal-variable-height: 60dvh;
14
36
  --docsearch-modal-background: var(--cx-bg-even);
15
- --docsearch-modal-shadow: var(--cx-box-shadow-large); // inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
37
+ --docsearch-modal-shadow: var(--cx-box-shadow-large);
38
+
39
+ /* Searchbox */
16
40
  // --docsearch-searchbox-height: 56px;
17
- --docsearch-searchbox-background: var(--cx-bg-main);
18
- --docsearch-searchbox-focus-background: var(--cx-bg-hover);
19
- // --docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color);
41
+ // --docsearch-searchbox-initial-height: 56px;
42
+ --docsearch-searchbox-background: var(--cx-bg-even);
43
+ --docsearch-searchbox-focus-background: var(--cx-bg-main);
44
+ // --docsearch-actions-width: 99px;
45
+ // --docsearch-actions-height: 44px;
46
+
47
+ /* Hit */
20
48
  // --docsearch-hit-height: 56px;
21
49
  --docsearch-hit-color: var(--cx-fg-main);
22
- --docsearch-hit-active-color: var(--cx-primary-fg-solid);
50
+ --docsearch-hit-highlight-color: var(--cx-bg-highlight);
23
51
  --docsearch-hit-background: var(--cx-bg-main);
24
- --docsearch-hit-shadow: none;
25
- // --docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
26
- // --docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgba(3, 4, 9, .3);
27
- // --docsearch-key-pressed-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 1px 0 rgba(30, 35, 90, .4);
28
- // --docsearch-footer-height: 44px;
52
+
53
+ /* Key */
54
+ --docsearch-key-background: var(--cx-bg-main);
55
+ --docsearch-key-color: var(--cx-fg-subtle);
56
+ --docsearch-key-pressed-shadow: var(--cx-box-shadow-small);
57
+
58
+ /* Footer */
59
+ --docsearch-footer-height: 52px;
29
60
  --docsearch-footer-background: var(--cx-bg-evident);
30
- --docsearch-footer-shadow: none; // inset 0 1px 0 0 rgba(73, 76, 106, .5), 0 -4px 8px 0 rgba(0, 0, 0, .2);
31
- }
61
+ --docsearch-footer-shadow: var(--cx-box-shadow-small);
32
62
 
33
- @include color-mode(dark, true) {
34
- // From here, the values are copied from https://cdn.jsdelivr.net/npm/@docsearch/css@3
35
- // in html[data-theme="dark"] selector
36
- // and are slightly modified for formatting purpose
37
- // --docsearch-text-color: var(--cx-fg-main);
38
- // --docsearch-container-background: var(--cx-dim-main);
39
- // --docsearch-modal-background: var(--cx-bg-even);
40
- // --docsearch-modal-shadow: var(--cx-box-shadow-large); // inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
41
- // --docsearch-searchbox-background: var(--cx-bg-main, #fc0);
42
- // --docsearch-searchbox-focus-background: var(--cx-bg-hover, #fc0);
43
- // --docsearch-hit-color: #bec3c9;
44
- // --docsearch-hit-shadow: none;
45
- // --docsearch-hit-background: #090a11;
46
- // --docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
47
- // --docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgba(3, 4, 9, .3);
48
- // --docsearch-footer-background: #1e2136;
49
- // --docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, .5), 0 -4px 8px 0 rgba(0, 0, 0, .2);
50
- // --docsearch-muted-color: #7f8497;
63
+ /* Dropdown Menu */
64
+ --docsearch-dropdown-menu-background: var(--docsearch-hit-background);
65
+ --docsearch-dropdown-menu-item-hover-background: var(--docsearch-modal-background);
51
66
  }
52
67
 
53
68
  .cxd-search {
@@ -61,17 +76,11 @@
61
76
  }
62
77
  @include media-breakpoint-up(2xlarge) {
63
78
  left: 50%;
64
- width: 280px;
65
- margin-left: 12rem;
79
+ margin-left: 16rem;
66
80
  }
67
-
68
-
69
81
  }
70
82
 
71
83
  .DocSearch-Container {
72
- // --docsearch-muted-color: var(--cx-fg-subtle);
73
- // --docsearch-hit-shadow: none;
74
-
75
84
  position: fixed;
76
85
  z-index: 2000; // Make sure to be over all components showcased in the documentation
77
86
  cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://github.com/algolia/docsearch/issues/1370 is tackled.
@@ -82,15 +91,8 @@
82
91
  }
83
92
 
84
93
  .DocSearch-Button {
85
- --docsearch-searchbox-background: var(--cx-bg-main);
86
- --docsearch-searchbox-color: var(--cx-fg-subtle);
87
- --docsearch-searchbox-focus-background: var(--cx-bg-hover);
88
- --docsearch-searchbox-shadow: none;
89
- --docsearch-text-color: var(--cx-fg-subtle);
90
- --docsearch-muted-color: var(--cx-fg-subtle);
91
-
92
94
  width: 100%;
93
- height: 38px; // Match Chassis - CSS inputs
95
+ height: 38px; // Match Chassis inputs
94
96
  margin: 0;
95
97
  border: var(--cx-border-width-medium) solid var(--cx-border-subtle);
96
98
  @include border-radius(var(--cx-border-radius-medium));
@@ -102,8 +104,6 @@
102
104
  &:active,
103
105
  &:focus,
104
106
  &:hover {
105
- // border-color: rgba($cxd-accent, 1);
106
-
107
107
  .DocSearch-Search-Icon {
108
108
  opacity: 1;
109
109
  }
@@ -132,7 +132,7 @@
132
132
 
133
133
  .DocSearch-Button-Keys {
134
134
  min-width: 0;
135
- padding: .25rem;
135
+ padding: .125rem .5rem;
136
136
  background: var(--cx-bg-evident);
137
137
  @include border-radius(var(--cx-border-radius-small));
138
138
  }
@@ -140,31 +140,29 @@
140
140
  .DocSearch-Button-Key {
141
141
  top: 0;
142
142
  width: auto;
143
- // height: 1.25rem;
144
- padding-right: .125rem;
145
- padding-left: .125rem;
146
- margin-right: 0;
147
- // font-size: .875rem;
143
+ padding: 0;
144
+ @include font-size(.875rem);
148
145
  background: none;
146
+ border: 0;
149
147
  box-shadow: none;
150
148
  }
151
149
 
152
150
  .DocSearch-Commands-Key {
153
- // padding-left: 1px;
154
- // font-size: .875rem;
155
- // background-color: rgba($black, .1);
156
- background-image: none;
151
+ width: 16px;
152
+ height: 16px;
153
+ padding: 0;
154
+ color: var(--cx-icon-subtle);
155
+ background: none;
157
156
  box-shadow: none;
157
+ @include border-radius(var(--cx-border-radius-small));
158
+ .DocSearch-Escape-Key {
159
+ @include font-size(var(--cx-font-size-xsmall));
160
+ }
158
161
  }
159
162
 
160
- .DocSearch-Form {
161
- @include border-radius(var(--cx-border-radius));
162
- }
163
-
164
- .DocSearch-Hits {
165
- mark {
166
- padding: 0;
167
- }
163
+ .DocSearch-Action:hover,
164
+ .DocSearch-AskAi-Return:hover {
165
+ background: none;
168
166
  }
169
167
 
170
168
  .DocSearch-Hit {
@@ -174,12 +172,12 @@
174
172
  a {
175
173
  @include border-radius(0);
176
174
  border: solid var(--cx-border-subtle);
177
- border-width: 0 1px 1px;
175
+ border-width: 0 var(--cx-border-width) var(--cx-border-width);
178
176
  }
179
177
 
180
178
  &:first-child a {
181
179
  @include border-top-radius(var(--cx-border-radius));
182
- border-top-width: 1px;
180
+ border-top-width: var(--cx-border-width);
183
181
  }
184
182
  &:last-child a {
185
183
  @include border-bottom-radius(var(--cx-border-radius));
@@ -189,6 +187,22 @@
189
187
  .DocSearch-Hit-icon {
190
188
  display: flex;
191
189
  align-items: center;
190
+ margin-right: var(--cx-space-xsmall);
191
+ }
192
+
193
+ .DocSearch-Hit-content-wrapper {
194
+ gap: 0;
195
+ }
196
+
197
+ .DocSearch-Hit-action-button:focus,
198
+ .DocSearch-Hit-action-button:hover {
199
+ color: var(--cx-primary-fg-main);
200
+ background: none;
201
+ }
202
+
203
+ .DocSearch-Hit-action-button:focus path,
204
+ .DocSearch-Hit-action-button:hover path {
205
+ fill: none;
192
206
  }
193
207
 
194
208
  // Fix --docsearch-logo-color that doesn't do anything
@@ -23,7 +23,9 @@
23
23
 
24
24
  .cxd-intro {
25
25
  grid-area: intro;
26
- margin-top: 2rem;
26
+ width: 100%;
27
+ max-width: 960px;
28
+ margin: 2rem auto 0;
27
29
  }
28
30
 
29
31
  .cxd-main {
@@ -60,13 +62,16 @@
60
62
 
61
63
  .cxd-content {
62
64
  grid-area: content;
63
- min-width: 1px; // Fix width when cxd-content contains a `<pre>` https://github.com/chassis-ui/css/issues/25410
64
- }
65
-
66
- .cxd-content,
67
- .cxd-intro {
65
+ justify-self: center;
68
66
  width: 100%;
67
+ min-width: 1px; // Fix width when cxd-content contains a `<pre>` https://github.com/chassis-ui/css/issues/25410
69
68
  max-width: 960px;
70
- margin-right: auto;
71
- margin-left: auto;
72
69
  }
70
+
71
+ // .cxd-content,
72
+ // .cxd-intro {
73
+ // width: 100%;
74
+ // max-width: 960px;
75
+ // margin-right: auto;
76
+ // margin-left: auto;
77
+ // }
@@ -2,7 +2,7 @@
2
2
  // box-shadow: 0 .5rem 1rem rgba($black, .15), inset 0 -1px 0 rgba($white, .15);
3
3
  padding: 0;
4
4
  // padding: .75rem 0;
5
- background-color: rgba(var(--cx-bg-main-rgb), var(--cx-opacity-dim-main));
5
+ background-color: to-opacity(var(--cx-bg-main), var(--cx-opacity-dim-main));
6
6
  backdrop-filter: blur(24px);
7
7
  border-bottom: var(--cx-border-width-medium) solid var(--cx-border-subtle);
8
8
 
@@ -16,7 +16,6 @@
16
16
  z-index: -1;
17
17
  display: block;
18
18
  content: "";
19
- // background-image: linear-gradient(rgba(var(--cxd-subtle-rgb), 1), rgba(var(--cxd-subtle-rgb), .95));
20
19
  }
21
20
 
22
21
  .cxd-navbar-toggle {
@@ -81,7 +80,7 @@
81
80
  vertical-align: -.125rem;
82
81
  }
83
82
 
84
- .offcanvas-large {
83
+ .#{large\:}offcanvas {
85
84
  background-color: var(--cxd-subtle-bg);
86
85
  border-left: 0;
87
86
 
@@ -101,8 +100,6 @@
101
100
  --cx-dropdown-min-width: 12rem;
102
101
  --cx-dropdown-padding-x: .25rem;
103
102
  --cx-dropdown-padding-y: .25rem;
104
- --cx-dropdown-link-hover-bg: rgba(var(--cxd-subtle-rgb), .1);
105
- --cx-dropdown-link-active-bg: rgba(var(--cxd-subtle-rgb), 1);
106
103
  @include rfs(.875rem, --cx-dropdown-font-size);
107
104
  @include font-size(.875rem);
108
105
  @include border-radius(.5rem);
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  @include media-breakpoint-down(large) {
25
- .offcanvas-large {
25
+ .#{large\:}offcanvas {
26
26
  border-right-color: var(--cx-border-color);
27
27
  box-shadow: var(--cx-box-shadow-large);
28
28
  }
@@ -96,7 +96,7 @@
96
96
 
97
97
  &:focus,
98
98
  &[aria-expanded="true"] {
99
- box-shadow: 0 0 0 3px rgba(var(--cxd-subtle-rgb), .25);
99
+ box-shadow: 0 0 0 3px #{to-opacity(var(--cxd-subtle), .25)};
100
100
  }
101
101
  }
102
102
  }
@@ -2,9 +2,8 @@
2
2
  // $cxd-main: $primary-base-color;
3
3
  // $cxd-subtle: lighten(saturate($cxd-main, 5%), 15%); // stylelint-disable-line function-disallowed-list
4
4
  // $cxd-main-light: lighten(saturate($cxd-main, 5%), 45%); // stylelint-disable-line function-disallowed-list
5
- // $cxd-accent: $secondary-base-color;
6
5
  $cxd-main: var(--cx-primary-base-color);
7
- $cxd-subtle: var(--cx-primary-bg-evident);
6
+ $cxd-subtle: var(--cx-primary-40);
8
7
  $cxd-main-light: var(--cx-primary-fg-main);
9
8
  $cxd-accent: var(--cx-primary-base-color);
10
9
 
@@ -15,30 +14,26 @@ $cxd-callout-variants: info, warning, danger, default !default;
15
14
  [data-cx-theme="light"] {
16
15
  --cxd-main: #{$cxd-main};
17
16
  --cxd-subtle: #{$cxd-subtle};
18
- --cxd-accent: #{$cxd-accent};
19
- --cxd-main-rgb: var(--cx-primary-base-color-rgb);
20
- --cxd-subtle-rgb: var(--cx-primary-40-rgb);
21
- --cxd-accent-rgb: var(--cx-secondary-base-color-rgb);
22
17
  --cxd-pink-rgb: #{to-rgb($pink-500)};
23
18
  --cxd-teal-rgb: #{to-rgb($teal-500)};
24
19
  --cxd-main-bg: var(--cxd-main);
25
20
  --cxd-subtle-bg: var(--cxd-subtle);
26
21
  --cxd-toc-color: var(--cxd-main);
27
22
  --cxd-sidebar-link-bg: var(--cx-bg-highlight);
28
- --cxd-callout-link: #{to-rgb($blue-600)};
29
- --cxd-callout-code-color: #{$pink-600};
23
+ --cxd-callout-link: #{to-color($blue-600)};
24
+ --cxd-callout-code-color: #{to-color($pink-600)};
30
25
  // --cxd-pre-bg: var(--cx-bg-even);
31
26
  }
32
27
 
33
28
  @if $enable-dark-mode {
34
29
  @include color-mode(dark, true) {
35
30
  color-scheme: dark;
36
- --cxd-subtle: var(--cx-primary-60-rgb);
31
+ --cxd-subtle: var(--cx-primary-60);
37
32
  --cxd-subtle-bg: #{$cxd-subtle};
38
33
  // --cxd-toc-color: var(--#{$prefix}fg-subtle);
39
34
  --cxd-sidebar-link-bg: var(--cx-primary-40);
40
- --cxd-callout-link: #{to-rgb($blue-300)};
41
- --cxd-callout-code-color: #{$pink-300};
35
+ --cxd-callout-link: #{to-color($blue-300)};
36
+ --cxd-callout-code-color: #{to-color($pink-300)};
42
37
  //--cxd-pre-bg: #{adjust-color($gray-900, $lightness: -2.5%)}; // stylelint-disable-line scss/at-function-named-arguments
43
38
  --cxd-pre-bg: var(--cx-bg-evident);
44
39
  }
@@ -5,7 +5,6 @@
5
5
  @import "fonts";
6
6
 
7
7
  @import "navbar";
8
- // @import "masthead";
9
8
  @import "content";
10
9
  @import "skippy";
11
10
  @import "sidebar";
@@ -42,7 +41,7 @@
42
41
 
43
42
  .docs-body .navbar,
44
43
  .docs-body .cxd-footer {
45
- .container-2xlarge {
44
+ .container.#{\32 xlarge} {
46
45
  max-width: 100%;
47
46
  }
48
47
  .cxd-search {
@@ -1,25 +0,0 @@
1
- ---
2
- /**
3
- * Icons Layout
4
- *
5
- * Specialized layout for icon documentation pages with scrollspy navigation.
6
- */
7
-
8
- import type { LayoutOverridesHTMLAttributes } from '../libs/layout'
9
- import BaseLayout from './BaseLayout.astro'
10
-
11
- const bodyProps: LayoutOverridesHTMLAttributes<'body'> = {}
12
-
13
- bodyProps['id'] = 'icons-body'
14
- bodyProps['data-cx-spy'] = 'scroll'
15
- bodyProps['data-cx-target'] = '#icons-nav'
16
- ---
17
-
18
- <BaseLayout {...Astro.props} layout="icons" overrides={{ body: bodyProps }}>
19
- <div
20
- slot="main"
21
- class="container-2xlarge px-medium px-medium-4xlarge cxd-gutter icon-docs icon-reset pt-medium-large pb-medium-large"
22
- >
23
- <slot />
24
- </div>
25
- </BaseLayout>