Skip to content

Commit 78404da

Browse files
committed
chore: add basic branded styling
1 parent 8066f13 commit 78404da

File tree

6 files changed

+176
-58
lines changed

6 files changed

+176
-58
lines changed

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ export default function FeatureLayout({ children, params }: Props) {
5555
}
5656
}, [children, codeFiles, readme, view])
5757

58-
return <div className="bg-(--copilot-kit-background-color) w-full h-full">{content}</div>;
58+
return <div className="bg-white rounded-lg w-full h-full">{content}</div>;
5959
}

typescript-sdk/apps/dojo/src/app/globals.css

Lines changed: 134 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,145 @@
11
@import "tailwindcss";
2+
@import "../styles/typography.css";
23

34
@plugin "tailwindcss-animate";
45

56
@custom-variant dark (&:is(.dark *));
67

7-
@theme inline {
8+
@theme {
9+
/* Base Shadcn Colors */
810
--color-background: var(--background);
911
--color-foreground: var(--foreground);
10-
--font-sans: var(--font-geist-sans);
11-
--font-mono: var(--font-geist-mono);
12-
--color-sidebar-ring: var(--sidebar-ring);
13-
--color-sidebar-border: var(--sidebar-border);
14-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
15-
--color-sidebar-accent: var(--sidebar-accent);
16-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
17-
--color-sidebar-primary: var(--sidebar-primary);
18-
--color-sidebar-foreground: var(--sidebar-foreground);
19-
--color-sidebar: var(--sidebar);
20-
--color-chart-5: var(--chart-5);
21-
--color-chart-4: var(--chart-4);
22-
--color-chart-3: var(--chart-3);
23-
--color-chart-2: var(--chart-2);
24-
--color-chart-1: var(--chart-1);
25-
--color-ring: var(--ring);
26-
--color-input: var(--input);
27-
--color-border: var(--border);
28-
--color-destructive-foreground: var(--destructive-foreground);
29-
--color-destructive: var(--destructive);
30-
--color-accent-foreground: var(--accent-foreground);
31-
--color-accent: var(--accent);
32-
--color-muted-foreground: var(--muted-foreground);
33-
--color-muted: var(--muted);
34-
--color-secondary-foreground: var(--secondary-foreground);
35-
--color-secondary: var(--secondary);
36-
--color-primary-foreground: var(--primary-foreground);
37-
--color-primary: var(--primary);
38-
--color-popover-foreground: var(--popover-foreground);
39-
--color-popover: var(--popover);
40-
--color-card-foreground: var(--card-foreground);
4112
--color-card: var(--card);
42-
--radius-sm: calc(var(--radius) - 4px);
43-
--radius-md: calc(var(--radius) - 2px);
44-
--radius-lg: var(--radius);
45-
--radius-xl: calc(var(--radius) + 4px);
13+
--color-card-foreground: var(--card-foreground);
14+
--color-popover: var(--popover);
15+
--color-popover-foreground: var(--popover-foreground);
16+
--color-primary: var(--primary);
17+
--color-primary-foreground: var(--primary-foreground);
18+
--color-secondary: var(--secondary);
19+
--color-secondary-foreground: var(--secondary-foreground);
20+
--color-muted: var(--muted);
21+
--color-muted-foreground: var(--muted-foreground);
22+
--color-accent: var(--accent);
23+
--color-accent-foreground: var(--accent-foreground);
24+
--color-destructive: var(--destructive);
25+
--color-destructive-foreground: var(--destructive-foreground);
26+
--color-border: var(--border);
27+
--color-input: var(--input);
28+
--color-ring: var(--ring);
29+
30+
/* Provider Colors */
31+
--color-provider-openai: var(--openai);
32+
--color-provider-anthropic: var(--anthropic);
33+
--color-provider-cohere: var(--cohere);
34+
35+
/* CopilotCloud Palette Colors */
36+
--color-palette-grey-0: #FFFFFF;
37+
--color-palette-grey-25: #FAFCFA;
38+
--color-palette-grey-100: #F7F7F9;
39+
--color-palette-grey-200: #F0F0F4;
40+
--color-palette-grey-300: #E9E9EF;
41+
--color-palette-grey-400: #E2E2EA;
42+
--color-palette-grey-500: #DBDBE5;
43+
--color-palette-grey-600: #AFAFB7;
44+
--color-palette-grey-700: #838389;
45+
--color-palette-grey-800: #575758;
46+
--color-palette-grey-900: #2B2B2B;
47+
--color-palette-grey-1000: #010507;
48+
49+
--color-palette-mint-40030: rgba(133,224,206,0.3);
50+
--color-palette-mint-400: #85E0CE;
51+
--color-palette-mint-800: #1B936F;
52+
53+
--color-palette-lilac-40010: rgba(190,194,255,0.1);
54+
--color-palette-lilac-40020: rgba(190,194,255,0.2);
55+
--color-palette-lilac-40030: rgba(190,194,255,0.3);
56+
--color-palette-lilac-400: #BEC2FF;
57+
58+
--color-palette-yellow-40030: rgba(255,243,136,0.3);
59+
--color-palette-yellow-400: #FFF388;
60+
61+
--color-palette-orange-40020: rgba(255,172,77,0.2);
62+
--color-palette-orange-400: #FFAC4D;
63+
64+
--color-palette-surface-main: #DEDEE9;
65+
--color-palette-surface-solidEquivalentDefault70: #F8F8FB;
66+
--color-palette-surface-default70: rgba(255,255,255,0.7);
67+
--color-palette-surface-default50: rgba(255,255,255,0.5);
68+
--color-palette-surface-default30: rgba(255,255,255,0.3);
69+
--color-palette-surface-container: #FFFFFF;
70+
--color-palette-surface-containerHovered: #FAFCFA;
71+
--color-palette-surface-containerFocusedPressed: rgba(190,194,255,0.1);
72+
--color-palette-surface-containerActive: #BEC2FF1A;
73+
--color-palette-surface-containerActiveHovered: rgba(190,194,255,0.2);
74+
--color-palette-surface-containerActiveFocused: rgba(190,194,255,0.3);
75+
--color-palette-surface-containerMint: #B5E0CE;
76+
--color-palette-surface-containerMint30: rgba(181,224,206,0.3);
77+
--color-palette-surface-containerLilac: #BEC2FF;
78+
--color-palette-surface-containerInvert: #010507;
79+
--color-palette-surface-background: #DBDBE5;
80+
--color-palette-surface-progressBarEmpty: #0105071A;
81+
--color-palette-surface-progressBarFull: #189370;
82+
--color-palette-surface-surfaceActionFilledHoveredAndFocused: #2B2B2B;
83+
--color-palette-surface-surfaceActionFilledPressed: #57575B;
84+
--color-palette-surface-containerPressed: #BEC2FF4D;
85+
--color-palette-surface-containerEnabledSolidEquivalent: #F8F9FF;
86+
--color-palette-surface-containerPressedHoverSolidEquivalent: #F1F2FF;
87+
--color-palette-surface-containerActivePressedSolidEquivalent: #E5E7FD;
88+
--color-palette-surface-containerHoveredAndFocused: #F0F0F4;
89+
--color-palette-surface-actionGhostHoveredAndFocused: #0105070D;
90+
91+
--color-palette-text-primary: #010507;
92+
--color-palette-text-secondary: #57575B;
93+
--color-palette-text-disabled: #838389;
94+
--color-palette-text-invert: #FFFFFF;
95+
--color-palette-text-details: #189370;
96+
--color-palette-text-title: #3C464A;
97+
--color-palette-text-progressBar: #525252;
98+
--color-palette-text-link: #0D2E41;
99+
100+
--color-palette-icon-default: #010507;
101+
--color-palette-icon-disabled: #838389;
102+
--color-palette-icon-invert: #FFFFFF;
103+
104+
--color-palette-border-default: #FFFFFF;
105+
--color-palette-border-container: #DBDBE5;
106+
--color-palette-border-actionEnabled: #BEC2FF;
107+
--color-palette-border-divider: #DBDBE5;
108+
109+
--color-palette-gradient-primary: linear-gradient(90deg, #85E0CE 0%, #FFF388 100%);
110+
111+
/* CopilotCloud Spacing */
112+
--spacing-spacing-1: 4px;
113+
--spacing-spacing-2: 8px;
114+
--spacing-spacing-3: 12px;
115+
--spacing-spacing-4: 16px;
116+
--spacing-spacing-5: 20px;
117+
--spacing-spacing-6: 24px;
118+
--spacing-spacing-7: 28px;
119+
--spacing-spacing-8: 32px;
120+
--spacing-spacing-9: 36px;
121+
--spacing-spacing-10: 40px;
122+
--spacing-spacing-11: 44px;
123+
--spacing-spacing-12: 48px;
124+
--spacing-spacing-13: 52px;
125+
--spacing-spacing-14: 56px;
126+
--spacing-spacing-15: 60px;
127+
--spacing-spacing-16: 64px;
128+
--spacing-spacing-17: 68px;
129+
--spacing-spacing-18: 72px;
130+
131+
/* CopilotCloud Border Radius */
132+
--radius-xs: 2px;
133+
--radius-sm: 4px;
134+
--radius-md: 8px;
135+
--radius-lg: 12px;
136+
--radius-xl: 16px;
137+
--radius-2xl: 20px;
138+
--radius-3xl: 24px;
139+
140+
/* Font Families */
141+
--font-family-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
142+
--font-family-mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, monospace;
46143
}
47144

48145
:root {
@@ -84,6 +181,7 @@
84181
--openai: hsl(160 70% 50%); /* Bright green */
85182
--anthropic: hsl(240 80% 60%); /* Bright blue */
86183
--cohere: hsl(0 80% 60%); /* Bright red */
184+
87185
}
88186

89187
.dark {

typescript-sdk/apps/dojo/src/components/layout/main-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function MainLayout({ children }: { children: React.ReactNode }) {
4040

4141
return (
4242
<ViewerLayout>
43-
<div className="flex h-full w-full overflow-hidden relative">
43+
<div className="flex h-full w-full overflow-hidden relative gap-2">
4444
{/* Mobile Header with Hamburger Menu */}
4545
{isMobile && (
4646
<div className="absolute top-0 left-0 right-0 z-50 bg-background border-b p-2 md:hidden">

typescript-sdk/apps/dojo/src/components/layout/viewer-layout.tsx

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,41 @@ export function ViewerLayout({
1414
className,
1515
children,
1616
}: ViewerLayoutProps) {
17+
// return (
18+
//
19+
// );
20+
1721
return (
18-
<div className={cn("flex h-screen", className)}>
19-
<div className="flex flex-1 overflow-hidden">
22+
<div className={cn("relative flex h-screen overflow-hidden bg-palette-surface-main p-spacing-2", className)}>
23+
<div className="flex flex-1 overflow-hidden z-1">
2024
<main className="flex-1 overflow-auto">
2125
<div className="h-full">{children}</div>
2226
</main>
2327
</div>
28+
{/* Background blur circles - Figma exact specs */}
29+
{/* Ellipse 1351 */}
30+
<div className="absolute w-[445.84px] h-[445.84px] left-[1040px] top-[11px] rounded-full z-0"
31+
style={{ background: 'rgba(255, 172, 77, 0.2)', filter: 'blur(103.196px)' }} />
32+
33+
{/* Ellipse 1347 */}
34+
<div className="absolute w-[609.35px] h-[609.35px] left-[1338.97px] top-[624.5px] rounded-full z-0"
35+
style={{ background: '#C9C9DA', filter: 'blur(103.196px)' }} />
36+
37+
{/* Ellipse 1350 */}
38+
<div className="absolute w-[609.35px] h-[609.35px] left-[670px] top-[-365px] rounded-full z-0"
39+
style={{ background: '#C9C9DA', filter: 'blur(103.196px)' }} />
40+
41+
{/* Ellipse 1348 */}
42+
<div className="absolute w-[609.35px] h-[609.35px] left-[507.87px] top-[702.14px] rounded-full z-0"
43+
style={{ background: '#F3F3FC', filter: 'blur(103.196px)' }} />
44+
45+
{/* Ellipse 1346 */}
46+
<div className="absolute w-[445.84px] h-[445.84px] left-[127.91px] top-[331px] rounded-full z-0"
47+
style={{ background: 'rgba(255, 243, 136, 0.3)', filter: 'blur(103.196px)' }} />
48+
49+
{/* Ellipse 1268 */}
50+
<div className="absolute w-[445.84px] h-[445.84px] left-[-205px] top-[802.72px] rounded-full z-0"
51+
style={{ background: 'rgba(255, 172, 77, 0.2)', filter: 'blur(103.196px)' }} />
2452
</div>
2553
);
2654
}

typescript-sdk/apps/dojo/src/components/sidebar/sidebar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ export function Sidebar({ isMobile, onMobileClose }: SidebarProps) {
9999
}, []);
100100

101101
return (
102-
<div className={`flex flex-col h-full bg-background border-r
103-
${isMobile ? 'w-80 shadow-xl' : 'w-74 min-w-[296px] flex-shrink-0'}
102+
<div className={`flex flex-col h-full bg-white/50 border-r
103+
${isMobile ? 'w-80 shadow-xl' : 'w-74 min-w-[296px] flex-shrink-0 rounded-lg'}
104104
`}>
105105
{/* Sidebar Header */}
106-
<div className="p-4 border-b bg-background">
106+
<div className="p-4 border-b">
107107
<div className="flex items-center justify-between ml-1">
108108
<div className="flex items-start flex-col">
109109
<h1 className={`text-lg font-light ${isDarkTheme ? "text-white" : "text-gray-900"}`}>
@@ -117,7 +117,7 @@ export function Sidebar({ isMobile, onMobileClose }: SidebarProps) {
117117

118118
{/* Controls Section */}
119119
{(!frameworkPickerHidden|| !viewPickerHidden) && (
120-
<div className="p-4 border-b bg-background">
120+
<div className="p-4 border-b">
121121
{/* Integration picker */}
122122
{!frameworkPickerHidden&& (
123123
<div className="mb-1">
@@ -153,7 +153,7 @@ export function Sidebar({ isMobile, onMobileClose }: SidebarProps) {
153153
onValueChange={tab => setView(tab as View)}
154154
className="w-full"
155155
>
156-
<TabsList className="w-full h-9 bg-background border shadow-sm rounded-lg p-1">
156+
<TabsList className="w-full h-9 border shadow-sm rounded-lg p-1">
157157
<TabsTrigger
158158
value="preview"
159159
className="flex-1 h-7 px-2 text-sm font-medium gap-1 rounded-md data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow"

typescript-sdk/apps/dojo/tailwind.config.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,10 @@ const config = {
88
"./app/**/*.{ts,tsx}",
99
"./src/**/*.{ts,tsx}",
1010
],
11-
prefix: "",
1211
theme: {
13-
container: {
14-
center: true,
15-
padding: "2rem",
16-
screens: {
17-
"2xl": "1400px",
18-
},
19-
},
2012
extend: {
2113
colors: {
14+
// Shadcn/ui colors
2215
border: "hsl(var(--border))",
2316
input: "hsl(var(--input))",
2417
ring: "hsl(var(--ring))",
@@ -53,10 +46,9 @@ const config = {
5346
foreground: "hsl(var(--card-foreground))",
5447
},
5548
},
56-
borderRadius: {
57-
lg: "var(--radius)",
58-
md: "calc(var(--radius) - 2px)",
59-
sm: "calc(var(--radius) - 4px)",
49+
fontFamily: {
50+
sans: ['Plus Jakarta Sans', 'ui-sans-serif', 'system-ui', 'sans-serif'],
51+
mono: ['Spline Sans Mono', 'ui-monospace', 'SFMono-Regular', 'monospace'],
6052
},
6153
keyframes: {
6254
"accordion-down": {
@@ -77,4 +69,4 @@ const config = {
7769
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
7870
} satisfies Config;
7971

80-
export default config;
72+
export default config;

0 commit comments

Comments
 (0)