diff --git a/apps/collection/app/_layout.tsx b/apps/collection/app/_layout.tsx
index d36e1a3d7..8b821413c 100644
--- a/apps/collection/app/_layout.tsx
+++ b/apps/collection/app/_layout.tsx
@@ -1,3 +1,4 @@
+import { MagnoliaProvider } from "@highlanderrobotics/magnolia-react-native";
import { TrainingConnection } from "../lib/training/TrainingConnection";
import { SplashScreen, Stack } from "expo-router";
import { NativeModules } from "react-native";
@@ -130,20 +131,22 @@ export default function Layout() {
}
return (
-
-
-
-
-
-
+
+
+
+
+
+
+
+
);
}
diff --git a/apps/collection/jest.config.cjs b/apps/collection/jest.config.cjs
index 87318d352..12bd0b9b6 100644
--- a/apps/collection/jest.config.cjs
+++ b/apps/collection/jest.config.cjs
@@ -5,6 +5,11 @@ module.exports = {
"/test/jest/**/*.test.tsx",
],
setupFilesAfterEnv: ["/test/jest/setup.ts"],
+ // Jest transforms tests to CommonJS; map the package's real ESM entry explicitly.
+ moduleNameMapper: {
+ "^@highlanderrobotics/magnolia-tokens$":
+ "/node_modules/@highlanderrobotics/magnolia-tokens/dist/index.js",
+ },
clearMocks: true,
restoreMocks: true,
coverageDirectory: "test-report/coverage",
@@ -27,6 +32,6 @@ module.exports = {
["jest-junit", { outputDirectory: "test-report", outputName: "junit.xml" }],
],
transformIgnorePatterns: [
- "node_modules/(?!((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|expo-router|@react-navigation/.*|react-native-svg|react-native-safe-area-context|uuid|jotai|zustand))",
+ "node_modules/(?!((jest-)?react-native|@react-native(-community)?|@highlanderrobotics/.*|expo(nent)?|@expo(nent)?/.*|expo-router|@react-navigation/.*|react-native-svg|react-native-safe-area-context|uuid|jotai|zustand))",
],
};
diff --git a/apps/collection/lib/colors.ts b/apps/collection/lib/colors.ts
index 3f936ffc3..8d07aeea8 100644
--- a/apps/collection/lib/colors.ts
+++ b/apps/collection/lib/colors.ts
@@ -1,3 +1,6 @@
+import { tokens } from "@highlanderrobotics/magnolia-tokens";
+const theme = tokens.themes.dark;
+
export type ColorSet = {
default: string;
hover: string;
@@ -6,30 +9,30 @@ export type ColorSet = {
export const colors = {
victoryPurple: {
- default: "#b59aff",
- hover: "#bbaaf0",
- faded: "#564b75",
+ default: theme.primary,
+ hover: theme.primaryHover,
+ faded: theme.primaryDisabled,
},
gray: {
- default: "#424242",
- hover: "#585858",
- faded: "#2d2d2d",
+ default: theme.secondary,
+ hover: theme.secondaryHover,
+ faded: theme.secondaryDisabled,
},
danger: {
- default: "#b13b3b",
- hover: "#ab5858",
- faded: "#563333",
+ default: theme.danger,
+ hover: theme.dangerHover,
+ faded: theme.dangerDisabled,
},
secondaryContainer: {
- default: "#292929",
+ default: theme.surface,
},
background: {
- default: "#1f1f1f",
+ default: theme.background,
},
onBackground: {
- default: "#e0e0e0",
+ default: theme.onBackground,
},
body: {
- default: "#b8b8b8",
+ default: theme.muted,
},
} as const satisfies Record>;
diff --git a/apps/collection/lib/components/TextField.tsx b/apps/collection/lib/components/TextField.tsx
index 21831f0e5..e2fe13f9f 100644
--- a/apps/collection/lib/components/TextField.tsx
+++ b/apps/collection/lib/components/TextField.tsx
@@ -1,107 +1,31 @@
-import { KeyboardTypeOptions } from "react-native";
-import { colors } from "../colors";
-import { TextInput } from "react-native";
-import {
- ComponentRef,
- forwardRef,
- ForwardRefRenderFunction,
- useState,
-} from "react";
+import { TextField as MagnoliaTextField } from "@highlanderrobotics/magnolia-react-native";
+import { forwardRef, type ComponentProps } from "react";
+import type { TextInput } from "react-native";
-type TextInputProps = {
- density?: "comfortable" | "compact";
- placeholder?: string;
- autoFocus?: boolean;
- autoCapitalize?: "none" | "sentences" | "words" | "characters";
- autoCorrect?: boolean;
- returnKeyType?: "done" | "go" | "next" | "search" | "send";
- onChangeText?: (text: string) => void;
- onSubmitEditing?: () => void;
- editable?: boolean;
- error?: boolean;
- value?: string;
- keyboardType?: KeyboardTypeOptions;
- multiline?: boolean;
- onFocus?: () => void;
- onBlur?: () => void;
-};
+type Props = Omit, "ref">;
-const TextField: ForwardRefRenderFunction<
- ComponentRef,
- TextInputProps
-> = (
- {
- density = "comfortable",
- placeholder = "",
- autoFocus,
- autoCapitalize,
- autoCorrect,
- returnKeyType,
- onChangeText,
- onSubmitEditing,
- editable = true,
- error,
- value,
- keyboardType,
- multiline,
- onFocus,
- onBlur,
- },
- ref,
-) => {
- const [isFocused, setIsFocused] = useState(false);
-
- return (
- (
+ ({ multiline, density = "comfortable", style, ...props }, ref) => (
+ {
- setIsFocused(true);
- if (onFocus) onFocus();
- }}
- onBlur={() => {
- setIsFocused(false);
- if (onBlur) onBlur();
- }}
- submitBehavior={multiline ? "newline" : "blurAndSubmit"}
- value={value}
+ density={density}
multiline={multiline}
- // Let the form own scrolling while multiline fields grow with their text.
- scrollEnabled={multiline ? false : undefined}
+ accessibilityLabel={props.accessibilityLabel ?? props.placeholder}
+ submitBehavior={
+ props.submitBehavior ?? (multiline ? "newline" : "blurAndSubmit")
+ }
+ scrollEnabled={multiline ? false : props.scrollEnabled}
+ style={[
+ {
+ textAlignVertical: multiline ? "top" : "auto",
+ lineHeight: density === "comfortable" ? 23.5 : 20.56,
+ },
+ style,
+ ]}
/>
- );
-};
-
-export default forwardRef(TextField);
+ ),
+);
+TextField.displayName = "CollectionTextField";
+export default TextField;
diff --git a/apps/collection/lib/components/text/BodyMedium.tsx b/apps/collection/lib/components/text/BodyMedium.tsx
index 5eabb1f72..c5b175fe0 100644
--- a/apps/collection/lib/components/text/BodyMedium.tsx
+++ b/apps/collection/lib/components/text/BodyMedium.tsx
@@ -1,4 +1,4 @@
-import { Text } from "react-native";
+import { Text } from "@highlanderrobotics/magnolia-react-native";
import { colors } from "../../colors";
import React from "react";
diff --git a/apps/collection/lib/components/text/Heading1Small.tsx b/apps/collection/lib/components/text/Heading1Small.tsx
index e1701674e..d54c53d40 100644
--- a/apps/collection/lib/components/text/Heading1Small.tsx
+++ b/apps/collection/lib/components/text/Heading1Small.tsx
@@ -1,4 +1,5 @@
-import { StyleProp, Text, TextStyle } from "react-native";
+import { Text } from "@highlanderrobotics/magnolia-react-native";
+import { StyleProp, TextStyle } from "react-native";
import { colors } from "../../colors";
const Heading1Small = ({
diff --git a/apps/collection/lib/components/text/LabelSmall.tsx b/apps/collection/lib/components/text/LabelSmall.tsx
index 300840c7f..c3cabfefb 100644
--- a/apps/collection/lib/components/text/LabelSmall.tsx
+++ b/apps/collection/lib/components/text/LabelSmall.tsx
@@ -1,4 +1,4 @@
-import { Text } from "react-native";
+import { Text } from "@highlanderrobotics/magnolia-react-native";
import { colors } from "../../colors";
const LabelSmall = ({
diff --git a/apps/collection/lib/components/text/TitleLarge.tsx b/apps/collection/lib/components/text/TitleLarge.tsx
index 90b17f057..38e82101e 100644
--- a/apps/collection/lib/components/text/TitleLarge.tsx
+++ b/apps/collection/lib/components/text/TitleLarge.tsx
@@ -1,4 +1,4 @@
-import { Text } from "react-native";
+import { Text } from "@highlanderrobotics/magnolia-react-native";
import { colors } from "../../colors";
const TitleLarge = ({
diff --git a/apps/collection/lib/components/text/TitleMedium.tsx b/apps/collection/lib/components/text/TitleMedium.tsx
index a41352d3f..4d307eaa0 100644
--- a/apps/collection/lib/components/text/TitleMedium.tsx
+++ b/apps/collection/lib/components/text/TitleMedium.tsx
@@ -1,4 +1,4 @@
-import { Text } from "react-native";
+import { Text } from "@highlanderrobotics/magnolia-react-native";
import { colors } from "../../colors";
const TitleMedium = ({
diff --git a/apps/collection/package-lock.json b/apps/collection/package-lock.json
index d0a76d744..7a5526339 100644
--- a/apps/collection/package-lock.json
+++ b/apps/collection/package-lock.json
@@ -9,6 +9,8 @@
"version": "1.0.0",
"hasInstallScript": true,
"dependencies": {
+ "@highlanderrobotics/magnolia-react-native": "0.2.0",
+ "@highlanderrobotics/magnolia-tokens": "0.2.0",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-native-community/datetimepicker": "9.2.1",
"@react-native-community/slider": "5.2.1",
@@ -2871,6 +2873,25 @@
"excpretty": "build/cli.js"
}
},
+ "node_modules/@highlanderrobotics/magnolia-react-native": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/@highlanderrobotics/magnolia-react-native/-/magnolia-react-native-0.2.0.tgz",
+ "integrity": "sha512-vazlneSrsfh1i1VVnkuCtR0M7ep1SSDHIQKhS7Zje177bSpgw9FyDRBFmyuAO8fJ43xPHl4RBvSAjpGxRACEXQ==",
+ "license": "UNLICENSED",
+ "dependencies": {
+ "@highlanderrobotics/magnolia-tokens": "0.2.0"
+ },
+ "peerDependencies": {
+ "react": ">=19 <20",
+ "react-native": ">=0.81 <1"
+ }
+ },
+ "node_modules/@highlanderrobotics/magnolia-tokens": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/@highlanderrobotics/magnolia-tokens/-/magnolia-tokens-0.2.0.tgz",
+ "integrity": "sha512-N45ex3hNLd5l5nxHk/PDjeUcoA3yEpkfJ+gEC99mzc9NvWmlw8n/oqrYL+CdRJIvzpFYHv9gmBiVAx7f3Cn/cw==",
+ "license": "UNLICENSED"
+ },
"node_modules/@humanfs/core": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
diff --git a/apps/collection/package.json b/apps/collection/package.json
index 844490d8d..27ae1be3d 100644
--- a/apps/collection/package.json
+++ b/apps/collection/package.json
@@ -69,7 +69,9 @@
"typescript": "~6.0.3",
"uuid": "^14.0.3",
"zod": "^4.6.7",
- "zustand": "^5.0.16"
+ "zustand": "^5.0.16",
+ "@highlanderrobotics/magnolia-react-native": "0.2.0",
+ "@highlanderrobotics/magnolia-tokens": "0.2.0"
},
"devDependencies": {
"@babel/core": "^7.29.7",
diff --git a/apps/collection/test/jest/magnolia.test.tsx b/apps/collection/test/jest/magnolia.test.tsx
new file mode 100644
index 000000000..d65f378c1
--- /dev/null
+++ b/apps/collection/test/jest/magnolia.test.tsx
@@ -0,0 +1,54 @@
+import React, { createRef } from "react";
+import { expect, jest, test } from "@jest/globals";
+import { fireEvent, render, screen } from "@testing-library/react-native";
+import { TextInput } from "react-native";
+import { MagnoliaProvider } from "@highlanderrobotics/magnolia-react-native";
+import TextField from "../../lib/components/TextField";
+import BodyMedium from "../../lib/components/text/BodyMedium";
+import { colors } from "../../lib/colors";
+
+test("shared fields retain Collection's multiline behavior, refs and callbacks", async () => {
+ const change = jest.fn();
+ const ref = createRef();
+ await render(
+
+
+ ,
+ );
+ const input = screen.getByLabelText("Match notes");
+ expect(input.props.submitBehavior).toBe("newline");
+ expect(input.props.scrollEnabled).toBe(false);
+ expect(ref.current).toBeTruthy();
+ await fireEvent.changeText(input, "Scored in auto");
+ expect(change).toHaveBeenCalledWith("Scored in auto");
+});
+
+test("shared fields retain single-line submission and disabled state", async () => {
+ await render(
+
+
+ ,
+ );
+ const input = screen.getByLabelText("Team");
+ expect(input.props.submitBehavior).toBe("blurAndSubmit");
+ expect(input.props.editable).toBe(false);
+});
+
+test("text wrappers retain bundled fonts and semantic colors", async () => {
+ await render(
+
+ Report caption
+ ,
+ );
+ expect(screen.getByText("Report caption")).toHaveStyle({
+ fontFamily: "Heebo_400Regular",
+ color: colors.body.default,
+ fontSize: 14,
+ });
+});
diff --git a/apps/dashboard/lib/color_schemes.g.dart b/apps/dashboard/lib/color_schemes.g.dart
index 3f6f03263..140f304f7 100644
--- a/apps/dashboard/lib/color_schemes.g.dart
+++ b/apps/dashboard/lib/color_schemes.g.dart
@@ -1,89 +1,22 @@
import 'package:flutter/material.dart';
+import 'package:magnolia_ui/magnolia_ui.dart';
-const lightColorScheme = ColorScheme(
- brightness: Brightness.light,
- primary: Color(0xFF350868),
- onPrimary: Color(0xFFFFFFFF),
- primaryContainer: Color(0xFFF3E9FF),
- onPrimaryContainer: Color(0xFF350868),
- secondary: Color(0xFF350868),
- onSecondary: Color(0xFFFFFFFF),
- secondaryContainer: Color(0xFFF3E9FF),
- onSecondaryContainer: Color(0xFF350868),
- tertiary: Color(0xFF350868),
- onTertiary: Color(0xFFFFFFFF),
- tertiaryContainer: Color(0xFFF3E9FF),
- onTertiaryContainer: Color(0xFF350868),
- error: Color(0xFFBA1A1A),
- errorContainer: Color(0xFFFFDAD6),
- onError: Color(0xFFFFFFFF),
- onErrorContainer: Color(0xFF410002),
- surface: Color(0xFFFFFBFF),
- onSurface: Color(0xFF1D1B1E),
- surfaceContainerHighest: Color(0xFFDBDBDB),
- onSurfaceVariant: Color(0xFF000000),
- outline: Color(0xFF7D747E),
- onInverseSurface: Color(0xFFF6EFF3),
- inverseSurface: Color(0xFF332F33),
- inversePrimary: Color(0xFFE6B4FF),
- shadow: Color(0xFF000000),
- surfaceTint: Color(0xFF7E469F),
- // outlineVariant: Color(0xFFCEC3CE),
- // scrim: Color(0xFF000000),
-);
-
-const darkColorScheme = ColorScheme(
- brightness: Brightness.dark,
- primary: Color(0xFFB59AFF),
- onPrimary: Color(0xFF1F1F1F),
- primaryContainer: Color(0xFF282334),
- onPrimaryContainer: Color(0xFFB59AFF),
- secondary: Color(0xFFB59AFF),
- onSecondary: Color(0xFF1F1F1F),
- secondaryContainer: Color(0xFF282334),
- onSecondaryContainer: Color(0xFFB59AFF),
- tertiary: Color(0xFFB59AFF),
- onTertiary: Color(0xFF1F1F1F),
- tertiaryContainer: Color(0xFF282334),
- onTertiaryContainer: Color(0xFFB59AFF),
- error: Color(0xFFFFB4AB),
- errorContainer: Color(0xFF93000A),
- onError: Color(0xFF690005),
- onErrorContainer: Color(0xFFFFDAD6),
- surface: Color(0xFF1F1F1F),
- onSurface: Color(0xFFE8E0E5),
- surfaceContainerHighest: Color(0xFF292929),
- onSurfaceVariant: Color(0xFFCCCCCC),
- outline: Color(0xFF978E98),
- onInverseSurface: Color(0xFF1D1B1E),
- inverseSurface: Color(0xFFE8E0E5),
- inversePrimary: Color(0xFF7E469F),
- shadow: Color(0xFF000000),
- surfaceTint: Color(0xFFE6B4FF),
- outlineVariant: Color(0xFF4B444D),
- // scrim: Color(0xFF000000),
-);
+// Keep existing widget imports while the canonical palette lives in Magnolia.
+const lightColorScheme = magnoliaLightColorScheme;
+const darkColorScheme = magnoliaDarkColorScheme;
extension ColorSchemeExtension on ColorScheme {
- Color get redAlliance => brightness == Brightness.light
- ? const Color.fromARGB(255, 206, 140, 140)
- : const Color(0xFF793F3F);
-
- Color get blueAlliance => brightness == Brightness.light
- ? const Color.fromARGB(255, 138, 146, 209)
- : const Color(0xFF364077);
-
- Color get onRedAlliance => brightness == Brightness.light
- ? const Color.fromARGB(255, 107, 50, 50)
- : const Color(0xFFD0A2A2);
-
- Color get onBlueAlliance => brightness == Brightness.light
- ? const Color.fromARGB(255, 43, 50, 92)
- : const Color(0xFFA2A7D0);
+ MagnoliaFrc get _frc => MagnoliaFrc.forBrightness(brightness);
+ Color get redAlliance => _frc.redAlliance;
+ Color get blueAlliance => _frc.blueAlliance;
+ Color get onRedAlliance => _frc.onRedAlliance;
+ Color get onBlueAlliance => _frc.onBlueAlliance;
Color get warningText => brightness == Brightness.light
? const Color.fromARGB(255, 223, 235, 97)
: const Color(0xFFE7EC00);
- Color get bodyText => const Color(0xFFB8B8B8);
+ Color get bodyText => brightness == Brightness.light
+ ? onSurfaceVariant
+ : const Color(0xFFB8B8B8);
}
diff --git a/apps/dashboard/lib/main.dart b/apps/dashboard/lib/main.dart
index 0aaac4539..33b0544b4 100644
--- a/apps/dashboard/lib/main.dart
+++ b/apps/dashboard/lib/main.dart
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:scouting_dashboard_app/datatypes.dart';
import 'package:scouting_dashboard_app/reusable/lovat_api/lovat_api.dart';
import 'package:scouting_dashboard_app/pages/tournament_teams.dart';
-import 'package:scouting_dashboard_app/color_schemes.g.dart';
+import 'package:magnolia_ui/magnolia_ui.dart';
import 'package:scouting_dashboard_app/pages/alliance.dart';
import 'package:scouting_dashboard_app/pages/auto_path_selector.dart';
import 'package:scouting_dashboard_app/pages/initial_loader.dart';
@@ -136,13 +136,7 @@ void main() async {
return null;
},
- theme: ThemeData(
- useMaterial3: true,
- colorScheme: darkColorScheme,
- ),
- darkTheme: ThemeData(
- useMaterial3: true,
- colorScheme: darkColorScheme,
- ),
+ theme: MagnoliaTheme.light(),
+ darkTheme: MagnoliaTheme.dark(),
));
}
diff --git a/apps/dashboard/pubspec.lock b/apps/dashboard/pubspec.lock
index 5f45b57ef..d2522245f 100644
--- a/apps/dashboard/pubspec.lock
+++ b/apps/dashboard/pubspec.lock
@@ -286,6 +286,15 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.1"
+ magnolia_ui:
+ dependency: "direct main"
+ description:
+ path: "packages/flutter"
+ ref: fb6a12d6c19e3ab27780b31aa56d13c40bbebbf0
+ resolved-ref: fb6a12d6c19e3ab27780b31aa56d13c40bbebbf0
+ url: "https://github.com/HighlanderRobotics/magnolia-ui.git"
+ source: git
+ version: "0.1.0"
matcher:
dependency: transitive
description:
@@ -749,4 +758,4 @@ packages:
version: "0.6.0"
sdks:
dart: ">=3.9.0-0 <=3.27.3"
- flutter: ">=3.32.0"
+ flutter: ">=3.35.0"
diff --git a/apps/dashboard/pubspec.yaml b/apps/dashboard/pubspec.yaml
index 9c6b307da..8989acc8c 100644
--- a/apps/dashboard/pubspec.yaml
+++ b/apps/dashboard/pubspec.yaml
@@ -31,6 +31,11 @@ environment:
dependencies:
flutter:
sdk: flutter
+ magnolia_ui:
+ git:
+ url: https://github.com/HighlanderRobotics/magnolia-ui.git
+ ref: fb6a12d6c19e3ab27780b31aa56d13c40bbebbf0
+ path: packages/flutter
http: ^1.6.0
# The following adds the Cupertino Icons font to your application.
diff --git a/apps/dashboard/test/magnolia_theme_test.dart b/apps/dashboard/test/magnolia_theme_test.dart
new file mode 100644
index 000000000..3c51b6d37
--- /dev/null
+++ b/apps/dashboard/test/magnolia_theme_test.dart
@@ -0,0 +1,55 @@
+import 'dart:math' as math;
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:magnolia_ui/magnolia_ui.dart';
+import 'package:scouting_dashboard_app/color_schemes.g.dart';
+
+void main() {
+ test('shared themes preserve Dashboard palette and alliance getter contracts',
+ () {
+ final light = MagnoliaTheme.light();
+ final dark = MagnoliaTheme.dark();
+ expect(light.brightness, Brightness.light);
+ expect(dark.brightness, Brightness.dark);
+ expect(light.colorScheme.primary, const Color(0xFF350868));
+ expect(dark.colorScheme.primary, const Color(0xFFB59AFF));
+ for (final scheme in [light.colorScheme, dark.colorScheme]) {
+ final text = scheme.bodyText.computeLuminance();
+ final background = scheme.surface.computeLuminance();
+ expect(
+ (math.max(text, background) + 0.05) /
+ (math.min(text, background) + 0.05),
+ greaterThanOrEqualTo(4.5));
+ }
+ expect(lightColorScheme, light.colorScheme);
+ expect(darkColorScheme, dark.colorScheme);
+ expect(darkColorScheme.redAlliance, const Color(0xFF793F3F));
+ expect(darkColorScheme.onBlueAlliance, const Color(0xFFA2A7D0));
+ expect(light.extension()!.redAlliance,
+ lightColorScheme.redAlliance);
+ expect(dark.extension()!.blueAlliance,
+ darkColorScheme.blueAlliance);
+ });
+
+ testWidgets('Dashboard can use shared Material controls with doubled text',
+ (tester) async {
+ var pressed = false;
+ await tester.pumpWidget(MaterialApp(
+ theme: MagnoliaTheme.light(),
+ home: MediaQuery(
+ data: const MediaQueryData(textScaler: TextScaler.linear(2)),
+ child: Scaffold(
+ body: Center(
+ child: FilledButton(
+ onPressed: () => pressed = true,
+ child: const Text('Open picklist'),
+ ))),
+ ),
+ ));
+ expect(tester.getSize(find.byType(FilledButton)).height,
+ greaterThanOrEqualTo(48));
+ await tester.tap(find.text('Open picklist'));
+ expect(pressed, isTrue);
+ expect(tester.takeException(), isNull);
+ });
+}
diff --git a/apps/learn/astro.config.mjs b/apps/learn/astro.config.mjs
index 984bd15da..60a1b2c5f 100644
--- a/apps/learn/astro.config.mjs
+++ b/apps/learn/astro.config.mjs
@@ -71,6 +71,7 @@ export default defineConfig({
"@fontsource/roboto/400.css",
"@fontsource/roboto/500.css",
"@fontsource/roboto/700.css",
+ "@highlanderrobotics/magnolia-starlight/theme.css",
"./src/custom.css",
],
}),
diff --git a/apps/learn/package-lock.json b/apps/learn/package-lock.json
index 8fda33ecd..b3f2b33b4 100644
--- a/apps/learn/package-lock.json
+++ b/apps/learn/package-lock.json
@@ -12,6 +12,7 @@
"@astrojs/starlight": "^0.42.4",
"@astrojs/svelte": "^9.0.1",
"@fontsource/roboto": "^5.3.0",
+ "@highlanderrobotics/magnolia-starlight": "0.1.0",
"astro": "^7.3.5",
"rehype-mathjax": "^7.1.0",
"remark-math": "^6.0.0",
@@ -1308,6 +1309,20 @@
"url": "https://github.com/sponsors/ayuhito"
}
},
+ "node_modules/@highlanderrobotics/magnolia-starlight": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@highlanderrobotics/magnolia-starlight/-/magnolia-starlight-0.1.0.tgz",
+ "integrity": "sha512-Pb3b9INUv5Ade1mynuR3B5xgVpXIGjR2DYspVa50KAmKNK8+l41BopiwamRdzaG/96Oi3lVgHZbm9VxlCGQHpQ==",
+ "license": "UNLICENSED",
+ "peerDependencies": {
+ "@astrojs/starlight": ">=0.35 <1"
+ },
+ "peerDependenciesMeta": {
+ "@astrojs/starlight": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@humanfs/core": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
diff --git a/apps/learn/package.json b/apps/learn/package.json
index fb06dfa88..6f638ca70 100644
--- a/apps/learn/package.json
+++ b/apps/learn/package.json
@@ -28,7 +28,8 @@
"remark-math": "^6.0.0",
"sharp": "^0.35.5",
"svelte": "^5.57.1",
- "typescript": "^5.9.3"
+ "typescript": "^5.9.3",
+ "@highlanderrobotics/magnolia-starlight": "0.1.0"
},
"overrides": {
"@xmldom/xmldom": "0.9.12"
diff --git a/apps/learn/src/components/Header.astro b/apps/learn/src/components/Header.astro
index 99d184703..836a9b01f 100644
--- a/apps/learn/src/components/Header.astro
+++ b/apps/learn/src/components/Header.astro
@@ -1,13 +1,6 @@
---
-import type { Props } from "@astrojs/starlight/props";
-
-import { Icon } from "@astrojs/starlight/components";
import Search from "@astrojs/starlight/components/Search.astro";
-import SiteTitle from "@astrojs/starlight/components/SiteTitle.astro";
import Logo from "../assets/logo.png";
-// import config from '../../config';
-
-// import HeaderLinks from "./HeaderLinks.astro";
---