🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
docs(storybook): register foreground-secondary on the tokens page (#17491)
Trang Nguyen34a580fbf254
diff --git a/web/.storybook/docs/ThemeTokens/Color.tsx b/web/.storybook/docs/ThemeTokens/Color.tsxindex 1fe65465ab..a5665f1ad8 100644--- a/web/.storybook/docs/ThemeTokens/Color.tsx+++ b/web/.storybook/docs/ThemeTokens/Color.tsx@@ -86,7 +86,7 @@ const SECTION_MATCHERS: Array<{{id: "surfaces",test: (n) =>- /^--(?:background|foreground|foreground-tertiary|muted|surface-code(?:-header)?|popover|card|modal|header)(?:-foreground)?$/.test(+ /^--(?:background|foreground|foreground-secondary|foreground-tertiary|muted|surface-code(?:-header)?|popover|card|modal|header)(?:-foreground)?$/.test(n,),},@@ -440,7 +440,11 @@ function renderSample(const isText = name.includes("foreground");if (isText) {let base = name.replace(/-foreground$/, "");- if (name === "--foreground" || name === "--foreground-tertiary")+ if (+ name === "--foreground" ||+ name === "--foreground-secondary" ||+ name === "--foreground-tertiary"+ )base = "--background";if (name === "--muted-foreground") base = "--muted";return (diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex abafb77ec7..b5613a7969 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -277,13 +277,13 @@--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;+ /* Text between body and muted: slate-700. Content that is not a heading+ and not a label, e.g. JSON values. */+ --foreground-secondary: 215 25% 27%;/* Faintest text tier: placeholders, disabled, hints — one step belowmuted-foreground (langfuse.com/docs has the same 4th step). NOTE: ~2.8:1on white — flagged in review, kept per design preference for now. */--foreground-tertiary: 215 12% 62%;- /* Text between body and muted: slate-700. Content that is not a heading- and not a label, e.g. JSON values. */- --foreground-secondary: 215 25% 27%;/* Code blocks sit a step BELOW their surrounding surface ("code is awell"), matching the docs site's --surface-code convention. */--surface-code: 0 0% 92%;@@ -473,8 +473,8 @@--muted: 0 0% 11.6%;--muted-foreground: 0 0% 54%;- --foreground-tertiary: 0 0% 40%;--foreground-secondary: 0 0% 62%;+ --foreground-tertiary: 0 0% 40%;--surface-code: 0 0% 2.3%;--surface-code-header: 0 0% 8.2%;