@vantagecompute/docusaurus-theme 0.2.1 → 0.2.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": "@vantagecompute/docusaurus-theme",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Shared Vantage Compute Docusaurus theme — design system, brand assets, and common theme overrides for all vantagecompute documentation sites.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.cjs",
@@ -792,24 +792,63 @@ html[data-theme='dark'] .provider-showcase-item {
792
792
  }
793
793
 
794
794
  /* ── Navbar (Vantage dark navigation) ──────────────────────────────── */
795
+ /*
796
+ * Customisable via CSS custom properties — set any of these in your
797
+ * project's custom.css :root {} block to override the defaults:
798
+ *
799
+ * --vantage-navbar-bg Navbar background colour
800
+ * --vantage-navbar-border Bottom border colour
801
+ * --vantage-navbar-shadow Box-shadow value
802
+ * --vantage-navbar-text Text / link colour
803
+ * --vantage-navbar-link-hover Link hover colour
804
+ * --vantage-navbar-logo-height Logo height
805
+ * --vantage-navbar-logo-hide-bp Breakpoint below which logo hides
806
+ * --vantage-navbar-brand-pl Left padding on the brand area
807
+ * --vantage-navbar-items-gap Gap between right-side items
808
+ * --vantage-footer-bg Footer background colour
809
+ * --vantage-footer-text Footer text colour
810
+ * --vantage-footer-title-color Footer section-title colour
811
+ * --vantage-footer-link-hover Footer link hover colour
812
+ * --vantage-footer-separator Footer separator colour
813
+ * --vantage-footer-logo-max-h Footer logo max-height
814
+ */
795
815
  :root {
796
816
  --ifm-navbar-height: 64px;
817
+
818
+ /* Navbar defaults */
819
+ --vantage-navbar-bg: #18123B;
820
+ --vantage-navbar-border: rgba(255, 255, 255, 0.05);
821
+ --vantage-navbar-shadow: 0 1px 0 rgba(15, 16, 32, 0.08);
822
+ --vantage-navbar-text: #ffffff;
823
+ --vantage-navbar-link-hover: var(--iris-100);
824
+ --vantage-navbar-logo-height: 2.25rem;
825
+ --vantage-navbar-logo-hide-bp: 1024px;
826
+ --vantage-navbar-brand-pl: 6px;
827
+ --vantage-navbar-items-gap: 10px;
828
+
829
+ /* Footer defaults */
830
+ --vantage-footer-bg: var(--iris-900);
831
+ --vantage-footer-text: #ffffff;
832
+ --vantage-footer-title-color: var(--iris-200);
833
+ --vantage-footer-link-hover: var(--iris-200);
834
+ --vantage-footer-separator: rgba(255, 255, 255, 0.12);
835
+ --vantage-footer-logo-max-h: 60px;
797
836
  }
798
837
 
799
838
  .navbar {
800
- background-color: #18123B;
801
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
802
- box-shadow: 0 1px 0 rgba(15, 16, 32, 0.08);
839
+ background-color: var(--vantage-navbar-bg);
840
+ border-bottom: 1px solid var(--vantage-navbar-border);
841
+ box-shadow: var(--vantage-navbar-shadow);
803
842
  }
804
843
 
805
844
  .navbar__title,
806
845
  .navbar__item,
807
846
  .navbar__link {
808
- color: white;
847
+ color: var(--vantage-navbar-text);
809
848
  }
810
849
 
811
850
  .navbar__items--right {
812
- gap: 10px;
851
+ gap: var(--vantage-navbar-items-gap);
813
852
  }
814
853
 
815
854
  /* Remove default horizontal padding from search container - gap handles spacing */
@@ -827,15 +866,15 @@ html[data-theme='dark'] .provider-showcase-item {
827
866
  }
828
867
 
829
868
  .navbar__brand {
830
- padding-left: 6px;
869
+ padding-left: var(--vantage-navbar-brand-pl);
831
870
  }
832
871
 
833
872
  .navbar__logo {
834
- height: 2.25rem;
873
+ height: var(--vantage-navbar-logo-height);
835
874
  }
836
875
 
837
876
  .navbar__link:hover {
838
- color: var(--iris-100) !important;
877
+ color: var(--vantage-navbar-link-hover) !important;
839
878
  }
840
879
 
841
880
  @media (max-width: 1024px) {
@@ -1246,19 +1285,19 @@ details summary[onclick]:hover {
1246
1285
 
1247
1286
  /* ── Footer ────────────────────────────────────────────────────────── */
1248
1287
  .footer {
1249
- background-color: var(--iris-900) !important;
1250
- border-top: 1px solid rgba(255, 255, 255, 0.05);
1288
+ background-color: var(--vantage-footer-bg) !important;
1289
+ border-top: 1px solid var(--vantage-navbar-border);
1251
1290
  }
1252
1291
 
1253
1292
  .footer--dark {
1254
- background-color: var(--iris-900) !important;
1293
+ background-color: var(--vantage-footer-bg) !important;
1255
1294
  }
1256
1295
 
1257
1296
  .footer__title,
1258
1297
  .footer__item,
1259
1298
  .footer__link-item,
1260
1299
  .footer__copyright {
1261
- color: white !important;
1300
+ color: var(--vantage-footer-text) !important;
1262
1301
  }
1263
1302
 
1264
1303
  .footer__title {
@@ -1266,15 +1305,15 @@ details summary[onclick]:hover {
1266
1305
  text-transform: uppercase;
1267
1306
  letter-spacing: 0.08em;
1268
1307
  font-weight: 700;
1269
- color: var(--iris-200) !important;
1308
+ color: var(--vantage-footer-title-color) !important;
1270
1309
  }
1271
1310
 
1272
1311
  .footer__link-item:hover {
1273
- color: var(--iris-200) !important;
1312
+ color: var(--vantage-footer-link-hover) !important;
1274
1313
  }
1275
1314
 
1276
1315
  .footer__separator {
1277
- background-color: rgba(255, 255, 255, 0.12) !important;
1316
+ background-color: var(--vantage-footer-separator) !important;
1278
1317
  }
1279
1318
 
1280
1319
  .footer__links {
@@ -1288,7 +1327,7 @@ details summary[onclick]:hover {
1288
1327
  .footer__logo {
1289
1328
  height: auto !important;
1290
1329
  width: auto !important;
1291
- max-height: 60px;
1330
+ max-height: var(--vantage-footer-logo-max-h);
1292
1331
  }
1293
1332
 
1294
1333
  .footer__link-social {
@@ -1,14 +0,0 @@
1
- import Tabs from '@theme/Tabs';
2
- import TabItem from '@theme/TabItem';
3
- import MDXComponents from '@theme-original/MDXComponents';
4
-
5
- // Global MDX components available to all MDX files
6
- const CustomMDXComponents = {
7
- // Import all the default components (including headings with anchor links)
8
- ...MDXComponents,
9
- // Add our custom components
10
- Tabs,
11
- TabItem,
12
- };
13
-
14
- export default CustomMDXComponents;