Skip to content

Replay your coding agent sessions as a map and a timeline

fix(viewer): repair design tokens that silently rendered as nothing

adityajha2005c34875857970
diff --git a/viewer/package.json b/viewer/package.json
index 0c75492..f11762f 100644
--- a/viewer/package.json
+++ b/viewer/package.json
@@ -23,7 +23,6 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
- "lucide-react": "^0.569.0",
"nuqs": "^2.9.4",
"react": "^19.2.8",
"react-dom": "^19.2.8",
diff --git a/viewer/pnpm-lock.yaml b/viewer/pnpm-lock.yaml
index 25dda66..e75bf92 100644
--- a/viewer/pnpm-lock.yaml
+++ b/viewer/pnpm-lock.yaml
@@ -32,9 +32,6 @@ importers:
cmdk:
specifier: ^1.1.1
- lucide-react:
- specifier: ^0.569.0
- version: 0.569.0([email protected])
nuqs:
specifier: ^2.9.4
version: 2.10.1([email protected])
@@ -1150,11 +1147,6 @@ packages:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
- resolution: {integrity: sha512-70SOx2wHI+fcSzAN6dA4GRvkZSFKapppiAbE+/ktpkeYCo1ULlD5wSMGHRlBsWSsVn4Uwzoo/4i+5o0pIWnwTQ==}
- peerDependencies:
- react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -2586,10 +2578,6 @@ snapshots:
dependencies:
yallist: 3.1.1
- dependencies:
- react: 19.3.0
-
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
diff --git a/viewer/src/components/LockedBlock.tsx b/viewer/src/components/LockedBlock.tsx
index f800d6e..0269850 100644
--- a/viewer/src/components/LockedBlock.tsx
+++ b/viewer/src/components/LockedBlock.tsx
@@ -72,7 +72,7 @@ export function LockedBlock({
: // Nearly opaque, not a tint. The sample only has to read as
// texture; the sentence over it has to be readable, and at
// /70 the sample's own words showed through the blurb.
- 'bg-ds-surface-white/92 backdrop-blur-[6px]'
+ 'bg-ds-surface-white/[0.92] backdrop-blur-[6px]'
)}
>
<div className="flex flex-col gap-0.5">
diff --git a/viewer/src/components/ui/command.tsx b/viewer/src/components/ui/command.tsx
index c4a78a8..ed8cac7 100644
--- a/viewer/src/components/ui/command.tsx
+++ b/viewer/src/components/ui/command.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { Command as CommandPrimitive } from 'cmdk';
-import { Search } from 'lucide-react';
+import { MagnifyingGlass } from '@phosphor-icons/react';
import { cn } from '@/lib/utils';
@@ -27,7 +27,7 @@ const CommandInput = React.forwardRef<
className="flex items-center border-b border-ds-border-subtler px-3"
data-cmdk-input-wrapper=""
>
- <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <MagnifyingGlass size={16} aria-hidden className="mr-2 shrink-0 opacity-50" />
<CommandPrimitive.Input
ref={ref}
className={cn(
diff --git a/viewer/src/components/ui/dialog.tsx b/viewer/src/components/ui/dialog.tsx
index 6472f1d..cb2a4ba 100644
--- a/viewer/src/components/ui/dialog.tsx
+++ b/viewer/src/components/ui/dialog.tsx
@@ -24,7 +24,7 @@ const DialogContent = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Popup>
>(({ className, ...props }, ref) => (
<DialogPrimitive.Portal>
- <DialogPrimitive.Backdrop className="fixed inset-0 z-[1000] bg-ds-gray-darkest/40 transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0" />
+ <DialogPrimitive.Backdrop className="fixed inset-0 z-[1000] bg-black/40 transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0" />
<DialogPrimitive.Popup
ref={ref}
className={cn(
diff --git a/viewer/src/components/ui/select.tsx b/viewer/src/components/ui/select.tsx
index 4287e6b..8127e0b 100644
--- a/viewer/src/components/ui/select.tsx
+++ b/viewer/src/components/ui/select.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { Select as SelectPrimitive } from '@base-ui/react/select';
-import { Check, ChevronDown, ChevronUp } from 'lucide-react';
+import { CaretDown, CaretUp, Check } from '@phosphor-icons/react';
import { cn } from '@/lib/utils';
@@ -24,7 +24,7 @@ const SelectTrigger = React.forwardRef<
>
{children}
<SelectPrimitive.Icon
- render={<ChevronDown className="h-4 w-4 text-ds-text-subtle" />}
+ render={<CaretDown size={16} aria-hidden className="text-ds-text-subtle" />}
/>
</SelectPrimitive.Trigger>
));
@@ -42,7 +42,7 @@ const SelectScrollUpButton = React.forwardRef<
)}
{...props}
>
- <ChevronUp className="h-4 w-4" />
+ <CaretUp size={16} aria-hidden />
</SelectPrimitive.ScrollUpArrow>
));
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpArrow.displayName;
@@ -59,7 +59,7 @@ const SelectScrollDownButton = React.forwardRef<
)}
{...props}
>
- <ChevronDown className="h-4 w-4" />
+ <CaretDown size={16} aria-hidden />
</SelectPrimitive.ScrollDownArrow>
));
SelectScrollDownButton.displayName =
@@ -149,7 +149,7 @@ const SelectItem = React.forwardRef<
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center" />
}
>
- <Check className="h-4 w-4 text-ds-brand-subtle" />
+ <Check size={16} aria-hidden className="text-ds-brand-subtle" />
</SelectPrimitive.ItemIndicator>
</SelectPrimitive.Item>
));
diff --git a/viewer/src/explorer/PromptImages.tsx b/viewer/src/explorer/PromptImages.tsx
index b35dced..44ada30 100644
--- a/viewer/src/explorer/PromptImages.tsx
+++ b/viewer/src/explorer/PromptImages.tsx
@@ -128,7 +128,7 @@ export function PromptImages({
onClick={() => setOpenKey(s.key)}
className={cn(
TILE,
- 'block w-full cursor-pointer outline-none transition-colors hover:border-ds-border-subtler focus-visible:ring-2 focus-visible:ring-ds-border-focus'
+ 'block w-full cursor-pointer outline-none transition-colors hover:border-ds-border-subtler focus-visible:ring-2 focus-visible:ring-ds-brand-subtle'
)}
>
<img
diff --git a/viewer/src/explorer/SessionSidebar.tsx b/viewer/src/explorer/SessionSidebar.tsx
index 593cfca..18adf5b 100644
--- a/viewer/src/explorer/SessionSidebar.tsx
+++ b/viewer/src/explorer/SessionSidebar.tsx
@@ -163,7 +163,7 @@ function ActionChip({
onClick={onClick}
title={title}
aria-label={title}
- className="rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ds-border-focus"
+ className="rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ds-brand-subtle"
>
{chip}
</button>
@@ -588,7 +588,7 @@ function TaskList({
disabled={!onJumpToErrors}
aria-label={`${noun.one} ${t.n}: ${errs.count} ${errs.count === 1 ? 'error' : 'errors'}. Show them`}
title={`Show this ${noun.one.toLowerCase()}'s errors`}
- className="pointer-events-auto rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ds-border-focus"
+ className="pointer-events-auto rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ds-brand-subtle"
>
<Badge variant="error">
{errs.count} {errs.count === 1 ? 'error' : 'errors'}
diff --git a/viewer/src/explorer/SidePanels.tsx b/viewer/src/explorer/SidePanels.tsx
index 8052460..34630c3 100644
--- a/viewer/src/explorer/SidePanels.tsx
+++ b/viewer/src/explorer/SidePanels.tsx
@@ -1010,7 +1010,7 @@ function Rows({
<button
type="button"
onClick={() => onSeek(r.seek!)}
- className="max-w-full cursor-pointer truncate rounded text-right underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ds-border-focus"
+ className="max-w-full cursor-pointer truncate rounded text-right underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ds-brand-subtle"
>
{r.v}
</button>
diff --git a/viewer/src/styles/index.css b/viewer/src/styles/index.css
index 66fa842..812eae8 100644
--- a/viewer/src/styles/index.css
+++ b/viewer/src/styles/index.css
@@ -168,8 +168,14 @@
--ds-text-body-xs-medium-lh: 16px;
--ds-text-body-xs-semibold: 12px;
--ds-text-body-xs-semibold-lh: 16px;
+ --ds-text-body-sm-medium: 14px;
+ --ds-text-body-sm-medium-lh: 1.45;
--ds-text-body-sm-semibold: 14px;
--ds-text-body-sm-semibold-lh: 1.45;
+ --ds-text-title-sm-semibold: 16px;
+ --ds-text-title-sm-semibold-lh: 24px;
+ --ds-text-title-md-semibold: 20px;
+ --ds-text-title-md-semibold-lh: 28px;
}
.dark {
diff --git a/viewer/src/styles/tokens.test.ts b/viewer/src/styles/tokens.test.ts
new file mode 100644
index 0000000..a091c26
--- /dev/null
+++ b/viewer/src/styles/tokens.test.ts
@@ -0,0 +1,36 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import { describe, expect, it } from 'vitest';
+
+// A Tailwind color or typography utility pointing at an undefined var() still
+// compiles, then renders as nothing (no fill, inherited font size). Keep every
+// var the config and source reference defined in index.css.
+const root = path.resolve(__dirname, '../..');
+const css = fs.readFileSync(path.join(root, 'src/styles/index.css'), 'utf8');
+const defined = new Set([...css.matchAll(/(--[\w-]+)\s*:/g)].map((m) => m[1]));
+
+function sourceFiles(dir: string): string[] {
+ return fs.readdirSync(dir, { withFileTypes: true }).flatMap((e) => {
+ const p = path.join(dir, e.name);
+ if (e.isDirectory()) return sourceFiles(p);
+ return /\.tsx?$/.test(e.name) && !/\.test\./.test(e.name) ? [p] : [];
+ });
+}
+
+describe('design tokens', () => {
+ it('every var() in tailwind.config.ts is defined', () => {
+ const cfg = fs.readFileSync(path.join(root, 'tailwind.config.ts'), 'utf8');
+ const missing = [...cfg.matchAll(/var\((--[\w-]+)\)/g)].map((m) => m[1]).filter((v) => !defined.has(v));
+ expect([...new Set(missing)]).toEqual([]);
+ });
+
+ it('every ds-text-* typography utility used in src has its size token', () => {
+ const missing = new Set<string>();
+ for (const f of sourceFiles(path.join(root, 'src'))) {
+ for (const [cls] of fs.readFileSync(f, 'utf8').matchAll(/\bds-text-(?:body|title|code)-[\w-]+/g)) {
+ if (!cls.endsWith('-lh') && !defined.has(`--${cls}`)) missing.add(cls);
+ }
+ }
+ expect([...missing]).toEqual([]);
+ });
+});
diff --git a/viewer/tailwind.config.ts b/viewer/tailwind.config.ts
index 22f5e31..f165d76 100644
--- a/viewer/tailwind.config.ts
+++ b/viewer/tailwind.config.ts
@@ -23,8 +23,6 @@ export const ds = {
// Semantic var, not a primitive: this rung is picked per mode. See the
// note in src/styles/index.css.
subtlest: 'var(--ds-warning-subtlest)',
- subtler: 'var(--primitive-orange-300)',
- subtle: 'var(--primitive-orange-500)',
default: 'var(--primitive-orange-700)',
darker: 'var(--primitive-orange-800)',
},
@@ -69,185 +67,42 @@ export const ds = {
// shape as the `series` slots below.
subtlest: 'var(--ds-success-subtlest)',
subtler: 'var(--primitive-green-100)',
- subtle: 'var(--primitive-green-400)',
default: 'var(--primitive-green-600)',
darker: 'var(--primitive-green-900)',
},
danger: {
subtlest: 'var(--primitive-red-100)',
subtler: 'var(--primitive-red-300)',
- subtle: 'var(--primitive-red-500)',
default: 'var(--primitive-red-600)',
darker: 'var(--primitive-red-700)',
darkest: 'var(--primitive-red-900)',
},
surface: {
- // Neutral nested-card surface, picked per mode. See src/styles/index.css.
- raised: 'var(--ds-surface-raised)',
white: 'var(--primitive-white-solid)',
'off-white': 'var(--primitive-white-off-white)',
- // Fixed dark surface (does NOT auto-flip). For toggled-mode surfaces, pair
- // bg-ds-surface-white with dark:bg-ds-surface-dark.
- dark: 'var(--ds-surface-dark)',
},
purple: {
subtlest: 'var(--ds-purple-subtlest)',
- subtler: 'var(--ds-purple-subtler)',
- subtle: 'var(--ds-purple-subtle)',
default: 'var(--ds-purple-default)',
- darker: 'var(--ds-purple-darker)',
- darkest: 'var(--ds-purple-darkest)',
},
blue: {
- subtlest: 'var(--ds-blue-subtlest)',
- subtler: 'var(--ds-blue-subtler)',
- subtle: 'var(--ds-blue-subtle)',
default: 'var(--ds-blue-default)',
- darker: 'var(--ds-blue-darker)',
- darkest: 'var(--ds-blue-darkest)',
},
};
-const primitive = {
- 'brand-green': {
- 100: 'var(--primitive-brand-green-100)',
- 200: 'var(--primitive-brand-green-200)',
- 300: 'var(--primitive-brand-green-300)',
- 400: 'var(--primitive-brand-green-400)',
- 500: 'var(--primitive-brand-green-500)',
- 600: 'var(--primitive-brand-green-600)',
- 700: 'var(--primitive-brand-green-700)',
- 800: 'var(--primitive-brand-green-800)',
- 900: 'var(--primitive-brand-green-900)',
- 950: 'var(--primitive-brand-green-950)',
- },
- white: {
- 'off-white': 'var(--primitive-white-off-white)',
- solid: 'var(--primitive-white-solid)',
- },
- gray: {
- 50: 'var(--primitive-gray-50)',
- 100: 'var(--primitive-gray-100)',
- 200: 'var(--primitive-gray-200)',
- 300: 'var(--primitive-gray-300)',
- 400: 'var(--primitive-gray-400)',
- 500: 'var(--primitive-gray-500)',
- 600: 'var(--primitive-gray-600)',
- 700: 'var(--primitive-gray-700)',
- 800: 'var(--primitive-gray-800)',
- 900: 'var(--primitive-gray-900)',
- 950: 'var(--primitive-gray-950)',
- },
- purple: {
- 50: 'var(--primitive-purple-50)',
- 100: 'var(--primitive-purple-100)',
- 200: 'var(--primitive-purple-200)',
- 300: 'var(--primitive-purple-300)',
- 400: 'var(--primitive-purple-400)',
- 500: 'var(--primitive-purple-500)',
- 600: 'var(--primitive-purple-600)',
- 700: 'var(--primitive-purple-700)',
- 800: 'var(--primitive-purple-800)',
- 900: 'var(--primitive-purple-900)',
- 950: 'var(--primitive-purple-950)',
- },
- 'soft-purple': {
- 50: 'var(--primitive-soft-purple-50)',
- 100: 'var(--primitive-soft-purple-100)',
- 200: 'var(--primitive-soft-purple-200)',
- 300: 'var(--primitive-soft-purple-300)',
- 400: 'var(--primitive-soft-purple-400)',
- 500: 'var(--primitive-soft-purple-500)',
- 600: 'var(--primitive-soft-purple-600)',
- 700: 'var(--primitive-soft-purple-700)',
- 800: 'var(--primitive-soft-purple-800)',
- 900: 'var(--primitive-soft-purple-900)',
- 950: 'var(--primitive-soft-purple-950)',
- },
- red: {
- 100: 'var(--primitive-red-100)',
- 200: 'var(--primitive-red-200)',
- 300: 'var(--primitive-red-300)',
- 400: 'var(--primitive-red-400)',
- 500: 'var(--primitive-red-500)',
- 600: 'var(--primitive-red-600)',
- 700: 'var(--primitive-red-700)',
- 800: 'var(--primitive-red-800)',
- 900: 'var(--primitive-red-900)',
- 950: 'var(--primitive-red-950)',
- },
- orange: {
- 100: 'var(--primitive-orange-100)',
- 200: 'var(--primitive-orange-200)',
- 300: 'var(--primitive-orange-300)',
- 400: 'var(--primitive-orange-400)',
- 500: 'var(--primitive-orange-500)',
- 600: 'var(--primitive-orange-600)',
- 700: 'var(--primitive-orange-700)',
- 800: 'var(--primitive-orange-800)',
- 900: 'var(--primitive-orange-900)',
- 950: 'var(--primitive-orange-950)',
- },
- green: {
- 50: 'var(--primitive-green-50)',
- 100: 'var(--primitive-green-100)',
- 200: 'var(--primitive-green-200)',
- 300: 'var(--primitive-green-300)',
- 400: 'var(--primitive-green-400)',
- 500: 'var(--primitive-green-500)',
- 600: 'var(--primitive-green-600)',
- 700: 'var(--primitive-green-700)',
- 800: 'var(--primitive-green-800)',
- 900: 'var(--primitive-green-900)',
- 950: 'var(--primitive-green-950)',
- },
- violet: {
- 57: 'var(--primitive-violet-57)',
- 67: 'var(--primitive-violet-67)',
- 70: 'var(--primitive-violet-70)',
- },
- azure: {
- 46: 'var(--primitive-azure-46)',
- 50: 'var(--primitive-azure-50)',
- 53: 'var(--primitive-azure-53)',
- 59: 'var(--primitive-azure-59)',
- 78: 'var(--primitive-azure-78)',
- 87: 'var(--primitive-azure-87)',
- 89: 'var(--primitive-azure-89)',
- },
- blue: {
- 8: 'var(--primitive-blue-8)',
- 12: 'var(--primitive-blue-12)',
- 85: 'var(--primitive-blue-85)',
- 100: 'var(--primitive-blue-100)',
- 200: 'var(--primitive-blue-200)',
- 300: 'var(--primitive-blue-300)',
- 400: 'var(--primitive-blue-400)',
- 500: 'var(--primitive-blue-500)',
- 600: 'var(--primitive-blue-600)',
- 700: 'var(--primitive-blue-700)',
- 800: 'var(--primitive-blue-800)',
- 900: 'var(--primitive-blue-900)',
- 950: 'var(--primitive-blue-950)',
- },
- magenta: {
- 37: 'var(--primitive-magenta-37)',
- },
- cyan: {
- 29: 'var(--primitive-cyan-29)',
- 36: 'var(--primitive-cyan-36)',
- 43: 'var(--primitive-cyan-43)',
- 68: 'var(--primitive-cyan-68)',
- 82: 'var(--primitive-cyan-82)',
- },
- teal: {
- 29: 'var(--primitive-teal-29)',
- 36: 'var(--primitive-teal-36)',
- 43: 'var(--primitive-teal-43)',
- 68: 'var(--primitive-teal-68)',
- 82: 'var(--primitive-teal-82)',
- },
-};
+
+/** Tailwind v3 can't apply an opacity modifier (`bg-ds-surface-white/80`) to a
+ * bare var() color and silently drops the class. Feeding it `<alpha-value>`
+ * through color-mix makes `/NN` work; with no modifier it resolves to 100%.
+ * Only the theme copy is wrapped; the exported `ds` stays raw var() strings. */
+type ColorTree = { [k: string]: string | ColorTree };
+const withAlpha = (tree: ColorTree): ColorTree =>
+ Object.fromEntries(
+ Object.entries(tree).map(([k, v]) => [
+ k,
+ typeof v === 'string' ? `color-mix(in srgb, ${v} calc(<alpha-value> * 100%), transparent)` : withAlpha(v),
+ ])
+ );
/** Design system typography: one utility per token (e.g. ds-text-body-xs-medium). */
const dsTypographyPlugin = function ({
@@ -283,22 +138,16 @@ const dsTypographyPlugin = function ({
lineHeight: 'var(--ds-text-body-sm-semibold-lh)',
},
'.ds-text-body-md-medium': {
- fontSize: 'var(--ds-text-body-md-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-body-md-medium-lh)',
},
'.ds-text-body-md-semibold': {
- fontSize: 'var(--ds-text-body-md-semibold)',
fontFamily: bodyFont,
fontWeight: '600',
- lineHeight: 'var(--ds-text-body-md-semibold-lh)',
},
'.ds-text-title-sm-medium': {
- fontSize: 'var(--ds-text-title-sm-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-title-sm-medium-lh)',
},
'.ds-text-title-sm-semibold': {
fontSize: 'var(--ds-text-title-sm-semibold)',
@@ -307,10 +156,8 @@ const dsTypographyPlugin = function ({
lineHeight: 'var(--ds-text-title-sm-semibold-lh)',
},
'.ds-text-title-md-medium': {
- fontSize: 'var(--ds-text-title-md-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-title-md-medium-lh)',
},
'.ds-text-title-md-semibold': {
fontSize: 'var(--ds-text-title-md-semibold)',
@@ -319,64 +166,44 @@ const dsTypographyPlugin = function ({
lineHeight: 'var(--ds-text-title-md-semibold-lh)',
},
'.ds-text-title-lg-medium': {
- fontSize: 'var(--ds-text-title-lg-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-title-lg-medium-lh)',
},
'.ds-text-title-lg-semibold': {
- fontSize: 'var(--ds-text-title-lg-semibold)',
fontFamily: bodyFont,
fontWeight: '600',
- lineHeight: 'var(--ds-text-title-lg-semibold-lh)',
},
'.ds-text-title-xl-medium': {
- fontSize: 'var(--ds-text-title-xl-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-title-xl-medium-lh)',
},
'.ds-text-title-xl-semibold': {
- fontSize: 'var(--ds-text-title-xl-semibold)',
fontFamily: bodyFont,
fontWeight: '600',
- lineHeight: 'var(--ds-text-title-xl-semibold-lh)',
},
'.ds-text-title-2xl-medium': {
- fontSize: 'var(--ds-text-title-2xl-medium)',
fontFamily: bodyFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-title-2xl-medium-lh)',
},
'.ds-text-title-2xl-semibold': {
- fontSize: 'var(--ds-text-title-2xl-semibold)',
fontFamily: bodyFont,
fontWeight: '600',
- lineHeight: 'var(--ds-text-title-2xl-semibold-lh)',
},
'.ds-text-code-sm': {
- fontSize: 'var(--ds-text-code-sm)',
fontFamily: codeFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-code-sm-lh)',
},
'.ds-text-code-md': {
- fontSize: 'var(--ds-text-code-md)',
fontFamily: codeFont,
fontWeight: '500',
- lineHeight: 'var(--ds-text-code-md-lh)',
},
'.ds-text-code-md-regular': {
- fontSize: 'var(--ds-text-code-md-regular)',
fontFamily: codeFont,
fontWeight: '400',
- lineHeight: 'var(--ds-text-code-md-regular-lh)',
},
'.ds-text-code-lg': {
- fontSize: 'var(--ds-text-code-lg)',
fontFamily: codeFont,
fontWeight: '700',
- lineHeight: 'var(--ds-text-code-lg-lh)',
},
});
};
@@ -393,17 +220,9 @@ const config: Config = {
'motion-out': 'var(--motion-ease-out)',
},
colors: {
- background: 'hsl(var(--background))',
- foreground: 'hsl(var(--foreground))',
- muted: {
- DEFAULT: 'hsl(var(--muted))',
- foreground: 'hsl(var(--muted-foreground))',
- },
+ muted: 'hsl(var(--muted))',
border: 'hsl(var(--border))',
- input: 'hsl(var(--input))',
- ring: 'hsl(var(--ring))',
- ds,
- primitive,
+ ds: withAlpha(ds),
},
borderRadius: {
lg: 'var(--radius)',