Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Adding section title design

Mrunal Salunke6bfd3553402b
diff --git a/frontend/app/globals.css b/frontend/app/globals.css
index 3d92b053e..b05af9a93 100644
--- a/frontend/app/globals.css
+++ b/frontend/app/globals.css
@@ -268,6 +268,32 @@
--layered-select-bg: rgba(131, 131, 131, 0.24);
--chat-input-border: #262626;
--icon-disabled: #525252;
+ --layer-contextual: 0 0% 15%;
+ --layer-contextual-foreground: 0 0% 95.7%;
+ --text-text-01: 0 0% 95.7%;
+ --link-primary: 217 100% 74%;
+ --button-tertiary: 217 100% 74%;
+ }
+
+ /* IBM Settings: section titles (productive heading-04); beats CardTitle utilities */
+ [data-theme="ibm"] .ibm-section-title {
+ color: hsl(var(--text-text-01));
+ font-family: inherit;
+ font-size: 28px !important;
+ font-weight: 400 !important;
+ line-height: 36px !important;
+ font-style: normal;
+ letter-spacing: 0;
+ }
+
+ /* IBM Settings: inline links (Link/link-primary) */
+ [data-theme="ibm"] .ibm-settings-page a[href] {
+ color: hsl(var(--link-primary));
+ }
+
+ [data-theme="ibm"] .ibm-settings-page a[href]:hover {
+ text-decoration: underline;
+ text-underline-offset: 2px;
}
/* IBM chat nudges / quick actions */
diff --git a/frontend/app/knowledge/page.tsx b/frontend/app/knowledge/page.tsx
index a0a53b3f7..ce4f15a74 100644
--- a/frontend/app/knowledge/page.tsx
+++ b/frontend/app/knowledge/page.tsx
@@ -9,7 +9,7 @@ import {
type ValueFormatterParams,
} from "ag-grid-community";
import { AgGridReact, type CustomCellRendererProps } from "ag-grid-react";
-import { Cloud, FileIcon, Globe, RefreshCw } from "lucide-react";
+import { Cloud, FileIcon, Globe, Heading4, RefreshCw } from "lucide-react";
import { useRouter } from "next/navigation";
import { useCallback, useEffect, useRef, useState } from "react";
import { KnowledgeDropdown } from "@/components/knowledge-dropdown";
@@ -29,7 +29,9 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { useIsCloudBrand } from "@/contexts/brand-context";
import { parseTimestampMs } from "@/lib/time-utils";
+import { cn } from "@/lib/utils";
import {
DeleteConfirmationDialog,
formatFilesToDelete,
@@ -43,6 +45,7 @@ import SharePointIcon from "../../components/icons/share-point-logo";
import { useDeleteDocument } from "../api/mutations/useDeleteDocument";
import { useRefreshOpenragDocs } from "../api/mutations/useRefreshOpenragDocs";
import { useSyncAllConnectors } from "../api/mutations/useSyncConnector";
+import { ibmSettingsFont } from "../settings/page";
// Function to get the appropriate icon for a connector type
function getSourceIcon(connectorType?: string) {
@@ -74,6 +77,7 @@ function getSourceIcon(connectorType?: string) {
}
function SearchPage() {
+ const isCloudBrand = useIsCloudBrand();
const queryClient = useQueryClient();
const router = useRouter();
const {
@@ -591,7 +595,14 @@ function SearchPage() {
<>
<div className="flex flex-col h-full">
<div className="flex items-center justify-between mb-6">
- <h2 className="text-lg font-semibold">Project knowledge</h2>
+ <h4
+ className={cn(
+ "text-lg font-semibold",
+ isCloudBrand && "ibm-section-title",
+ )}
+ >
+ Project knowledge
+ </h4>
</div>
{/* Search Input Area */}
diff --git a/frontend/app/settings/page.tsx b/frontend/app/settings/page.tsx
index e942480ac..9ef69897b 100644
--- a/frontend/app/settings/page.tsx
+++ b/frontend/app/settings/page.tsx
@@ -531,7 +531,12 @@ function KnowledgeSourcesPage() {
{/* Connectors Section */}
<div className="space-y-6">
<div>
- <h2 className="text-lg font-semibold tracking-tight mb-2">
+ <h2
+ className={cn(
+ "mb-2 text-lg font-semibold tracking-tight",
+ isCloudBrand && "ibm-section-title",
+ )}
+ >
Cloud Connectors
</h2>
</div>
@@ -541,7 +546,9 @@ function KnowledgeSourcesPage() {
isNoAuthMode ? (
<Card className="border-accent-amber-foreground">
<CardHeader>
- <CardTitle className="text-lg">
+ <CardTitle
+ className={cn("text-lg", isCloudBrand && "ibm-section-title")}
+ >
Cloud connectors require authentication
</CardTitle>
<CardDescription className="text-sm">
@@ -646,7 +653,12 @@ function KnowledgeSourcesPage() {
{/* Model Providers Section */}
<div className="space-y-6">
<div>
- <h2 className="text-lg font-semibold tracking-tight mb-2">
+ <h2
+ className={cn(
+ "mb-2 text-lg font-semibold tracking-tight",
+ isCloudBrand && "ibm-section-title",
+ )}
+ >
Model Providers
</h2>
</div>
@@ -657,7 +669,11 @@ function KnowledgeSourcesPage() {
<Card id="agent-card">
<CardHeader>
<div className="flex items-center justify-between mb-3">
- <CardTitle className="text-lg">Agent</CardTitle>
+ <CardTitle
+ className={cn("text-lg", isCloudBrand && "ibm-section-title")}
+ >
+ Agent
+ </CardTitle>
<div className="flex gap-2">
<ConfirmationDialog
trigger={
@@ -805,7 +821,11 @@ function KnowledgeSourcesPage() {
<Card>
<CardHeader>
<div className="flex items-center justify-between mb-3">
- <CardTitle className="text-lg">Knowledge Ingest</CardTitle>
+ <CardTitle
+ className={cn("text-lg", isCloudBrand && "ibm-section-title")}
+ >
+ Knowledge Ingest
+ </CardTitle>
<div className="flex gap-2">
<ConfirmationDialog
trigger={
@@ -1056,7 +1076,11 @@ function KnowledgeSourcesPage() {
<Card>
<CardHeader>
<div className="flex items-center justify-between mb-3">
- <CardTitle className="text-lg">API Keys</CardTitle>
+ <CardTitle
+ className={cn("text-lg", isCloudBrand && "ibm-section-title")}
+ >
+ API Keys
+ </CardTitle>
<Button onClick={() => setCreateKeyDialogOpen(true)} size="sm">
<Plus className="h-4 w-4 mr-2" />
Create Key