diff --git a/src/features/content/renderers/collections/EightPrinciplesRenderers.tsx b/src/features/content/renderers/collections/EightPrinciplesRenderers.tsx
new file mode 100644
index 0000000..2df4882
--- /dev/null
+++ b/src/features/content/renderers/collections/EightPrinciplesRenderers.tsx
@@ -0,0 +1,189 @@
+import React from "react";
+import { Pressable, StyleSheet, Text, View } from "react-native";
+import { Ionicons } from "@expo/vector-icons";
+import { moderateScale, verticalScale } from "react-native-size-matters";
+
+import { Colors } from "@/theme";
+import { asNumber, asString } from "../helpers/value";
+import { CollectionScaffold } from "../shared/CollectionScaffold";
+import type {
+ CollectionItemRendererProps,
+ CollectionRendererProps,
+} from "../../types/renderer.types";
+
+export function EightPrinciplesCollectionRenderer(
+ props: CollectionRendererProps,
+) {
+ const sortedItems = React.useMemo(() => {
+ return [...props.items].sort((a, b) => {
+ const orderA = asNumber(a.attributes.sort_order) ?? 999;
+ const orderB = asNumber(b.attributes.sort_order) ?? 999;
+ return orderA - orderB;
+ });
+ }, [props.items]);
+
+ const header = (
+
+
+
+
+ Overview
+
+
+ The eight principles include exterior, interior, cold, heat, deficiency, excess, yin and yang. Syndrome differentiation (pattern identification) of the eight principles is an essential paradigm in the Chinese medicine system.
+
+
+ Pattern identification of the eight principles aims to tell about the disease location, the pathogenic nature and the strength between antipathogenic qi and pathogenic factors, thus generalizing the condition into eight categories.
+
+
+ The eight principles can be divided into four pairs: interior/exterior for the depth of pathogens; cold/heat for the disease nature; deficiency/excess for the strength between antipathogenic qi and pathogenic factors; and yin/yang for the preponderance of yin and yang. However, yin and yang can also generalize the other six principles: exterior, heat and excess are ascribed to yang, and interior, cold and deficiency to yin.
+
+
+ Two or more principles may occur concurrently, such as an exterior cold syndrome and an interior deficiency cold syndrome. A combined deficiency and excess may also be present. The principles may transform into each other as well, such as cold transforming into heat, or the exterior entering the interior. Additionally, a true cold may sometimes manifest as a false heat or vice versa.
+
+
+ Eight Principles
+
+ );
+
+ return ;
+}
+
+export function EightPrinciplesCardRenderer({
+ item,
+ onPress,
+}: CollectionItemRendererProps) {
+ const a = item.attributes;
+
+ const title =
+ asString(a.name) ||
+ asString(a.title) ||
+ item.title;
+
+ const description =
+ asString(a.description) ||
+ asString(a.overview) ||
+ asString(a.classification) ||
+ item.summary;
+
+ const sortOrder = asNumber(a.sort_order);
+ const principleNumber =
+ typeof sortOrder === "number" && sortOrder > 0
+ ? sortOrder
+ : typeof sortOrder === "number"
+ ? sortOrder + 1
+ : undefined;
+
+ return (
+ [styles.row, pressed && styles.pressed]}
+ >
+
+ {principleNumber !== undefined ? (
+ {principleNumber}
+ ) : (
+
+ )}
+
+
+
+
+ {title}
+
+
+ {description ? (
+
+ {description}
+
+ ) : null}
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ overviewContainer: {
+ marginBottom: verticalScale(14),
+ },
+ overviewCard: {
+ backgroundColor: "#FFFFFF",
+ borderRadius: moderateScale(16),
+ borderWidth: 1,
+ borderColor: "#E2EAE5",
+ padding: moderateScale(16),
+ marginBottom: verticalScale(14),
+ },
+ overviewHeader: {
+ flexDirection: "row",
+ alignItems: "center",
+ marginBottom: verticalScale(8),
+ gap: moderateScale(8),
+ },
+ overviewTitle: {
+ fontSize: moderateScale(16),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ },
+ overviewText: {
+ fontSize: moderateScale(13),
+ lineHeight: verticalScale(19),
+ color: Colors.textSecondary,
+ },
+ overviewParagraph: {
+ fontSize: moderateScale(13),
+ lineHeight: verticalScale(19),
+ color: Colors.textSecondary,
+ marginTop: verticalScale(10),
+ },
+ sectionHeading: {
+ fontSize: moderateScale(15),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ marginBottom: verticalScale(4),
+ marginLeft: moderateScale(4),
+ },
+ row: {
+ minHeight: verticalScale(72),
+ flexDirection: "row",
+ alignItems: "center",
+ paddingHorizontal: moderateScale(14),
+ paddingVertical: verticalScale(13),
+ gap: moderateScale(11),
+ },
+ pressed: {
+ opacity: 0.72,
+ },
+ iconBox: {
+ width: moderateScale(40),
+ height: moderateScale(40),
+ borderRadius: moderateScale(20),
+ alignItems: "center",
+ justifyContent: "center",
+ backgroundColor: "#E8F5E9",
+ },
+ principleNumber: {
+ fontSize: moderateScale(16),
+ fontWeight: "800",
+ color: Colors.primaryDark,
+ },
+ content: {
+ flex: 1,
+ gap: verticalScale(3),
+ },
+ title: {
+ fontSize: moderateScale(16),
+ lineHeight: moderateScale(22),
+ fontWeight: "700",
+ color: Colors.textPrimary,
+ },
+ subtitle: {
+ fontSize: moderateScale(12.5),
+ lineHeight: moderateScale(18),
+ color: Colors.textSecondary,
+ },
+});
diff --git a/src/features/content/renderers/details/EightPrinciplesDetailRenderer.tsx b/src/features/content/renderers/details/EightPrinciplesDetailRenderer.tsx
new file mode 100644
index 0000000..b857569
--- /dev/null
+++ b/src/features/content/renderers/details/EightPrinciplesDetailRenderer.tsx
@@ -0,0 +1,319 @@
+import React from "react";
+import { ScrollView, StyleSheet } from "react-native";
+
+import type { DetailRendererProps } from "../../types/renderer.types";
+import { ContentLinkAttributeSections } from "../shared/ContentLinkAttributeSections";
+import { ContentValue } from "../shared/ContentValue";
+import { Hero } from "../shared/Hero";
+import { SectionCard } from "../shared/SectionCard";
+import { ObjectSections } from "../shared/ObjectSections";
+import { Paragraphs } from "../shared/Paragraphs";
+import { asString, humanizeKey } from "../helpers/value";
+
+function objectValue(value: unknown): Record {
+ return value && typeof value === "object" && !Array.isArray(value)
+ ? (value as Record)
+ : {};
+}
+
+function isPresent(value: unknown): boolean {
+ if (value === null || value === undefined || value === "") return false;
+ if (Array.isArray(value)) return value.length > 0 && value.some(isPresent);
+ if (typeof value === "object") {
+ return Object.values(value as Record).some(isPresent);
+ }
+ return true;
+}
+
+function TextSection({ title, value }: { title: string; value: unknown }) {
+ const text = asString(value);
+ if (!text) return null;
+ return (
+
+
+
+ );
+}
+
+function ObjectSection({ title, value }: { title: string; value: unknown }) {
+ const object = objectValue(value);
+ if (Object.keys(object).length === 0) return null;
+ return (
+
+
+
+ );
+}
+
+const HANDLED_KEYS = new Set([
+ "code",
+ "name",
+ "title",
+ "link",
+ "content",
+ "content_count",
+ "content_label",
+ "sort_order",
+ "description",
+ "classification",
+ "overview",
+ "analysis",
+ "clinical_manifestations",
+ "exterior-interior",
+ "exterior_syndrome",
+ "interior_syndrome",
+ "half-exterior_half-interior_syndrome",
+ "half_exterior_half_interior_syndrome",
+ "inward_penetration_of_exterior_pathogens_to_the_interior",
+ "outward_penetration_of_interior_pathogens_to_the_exterior",
+ "concurrent_exterior_and_interior_syndrome",
+ "cold_heat",
+ "cold_syndrome",
+ "heat_syndrome",
+ "combined_cold_and_heat_syndrome",
+ "upper_heat_with_lower_cold",
+ "upper_cold_with_lower_heat",
+ "exterior_cold_with_interior_heat",
+ "exterior_heat_with_interior_cold",
+ "mutual_transformation_of_cold_and_heat_syndromes",
+ "cold_transforming_into_heat",
+ "heat_transforming_into_cold",
+ "true_cold_with_false_heat_or_true_heat_with_false_cold",
+ "true_cold_with_false_heat",
+ "true_heat_with_false_cold",
+ "deficiency_excess",
+ "deficiency_syndrome",
+ "yang_deficiency",
+ "yin_deficiency",
+ "excess_syndrome",
+ "combined_deficiency_and_excess_syndrome",
+ "excess_syndrome_mixed_with_deficiency",
+ "deficiency_syndrome_mixed_with_excess",
+ "concurrent_deficiency_and_excess_syndrome",
+ "mutual_transformation_of_deficiency_and_excess_syndromes",
+ "true_deficiency_with_false_excess_or_true_excess_with_false_deficiency",
+ "true_deficiency_with_false_excess",
+ "true_excess_with_false_deficiency",
+ "summary",
+ "description_details",
+ "yin_yang",
+ "yin_syndrome",
+ "yang_syndrome",
+ "yin_syndromes",
+ "yang_syndromes",
+ "inspection",
+ "auscultation",
+ "inquiry",
+ "pulse_taking",
+ "deficiency_of_Genuine_Yin",
+ "deficiency_of_Genuine_Yang",
+ "yin_depletion",
+ "yang_depletion",
+ "note",
+]);
+
+export function EightPrinciplesDetailRenderer({
+ content,
+ data,
+ definitions,
+ presentationAttributes,
+}: DetailRendererProps) {
+ const title = asString(data.title) || asString(data.name) || content.title;
+
+ const hasCombinedColdHeat = isPresent(data.combined_cold_and_heat_syndrome);
+ const hasMutualColdHeat = isPresent(data.mutual_transformation_of_cold_and_heat_syndromes);
+ const hasTrueColdHeat = isPresent(data.true_cold_with_false_heat_or_true_heat_with_false_cold);
+
+ const hasCombinedDefExcess = isPresent(data.combined_deficiency_and_excess_syndrome);
+ const hasTrueDefExcess = isPresent(
+ data.true_deficiency_with_false_excess_or_true_excess_with_false_deficiency,
+ );
+
+ const remainingEntries = Object.entries(data).filter(
+ ([key, value]) => !HANDLED_KEYS.has(key) && isPresent(value),
+ );
+
+ return (
+
+
+
+ {/* 1. Common Overview / Description */}
+
+
+
+
+
+
+ {/* 2. Exterior-Interior (m0011_ct0002) */}
+
+
+
+
+
+
+
+
+ {/* 3. Cold-Heat (m0011_ct0001) */}
+
+
+
+
+ {!hasCombinedColdHeat && (
+ <>
+
+
+
+
+ >
+ )}
+
+ {!hasMutualColdHeat && (
+ <>
+
+
+ >
+ )}
+
+ {!hasTrueColdHeat && (
+ <>
+
+
+ >
+ )}
+
+ {/* 4. Deficiency-Excess (m0011_ct0003) */}
+
+
+
+
+
+
+ {!hasCombinedDefExcess && (
+ <>
+
+
+
+ >
+ )}
+
+
+ {!hasTrueDefExcess && (
+ <>
+
+
+
+ >
+ )}
+
+
+ {/* 5. Yin-Yang (m0011_ct0004) */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* 6. Note */}
+
+
+ {/* 7. Any remaining unhandled fields fallback */}
+ {remainingEntries.map(([key, value]) => (
+
+
+
+ ))}
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ content: {
+ paddingHorizontal: 18,
+ paddingTop: 16,
+ paddingBottom: 40,
+ gap: 14,
+ },
+});