Skip to content

Commit de0a7f2

Browse files
committed
fix: resolve JSON import paths and merge conflict
- Fix merge conflict in src/types/design.ts - Change JSON imports from ../../public/designs/ to ./designs/ - Copy JSON files to src/data/designs/ for correct import resolution - Fix import path in src/main.tsx from App.jsx to App
1 parent 4ad07f0 commit de0a7f2

File tree

8 files changed

+1064
-23
lines changed

8 files changed

+1064
-23
lines changed

src/data/designs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import neoBrutalist from '../../public/designs/neo-brutalist.json';
2-
import warmSaas from '../../public/designs/warm-saas.json';
3-
import editorialDark from '../../public/designs/editorial-dark.json';
4-
import swissClean from '../../public/designs/swiss-clean.json';
5-
import deepOcean from '../../public/designs/deep-ocean.json';
1+
import neoBrutalist from './designs/neo-brutalist.json';
2+
import warmSaas from './designs/warm-saas.json';
3+
import editorialDark from './designs/editorial-dark.json';
4+
import swissClean from './designs/swiss-clean.json';
5+
import deepOcean from './designs/deep-ocean.json';
66
import type { TransformedDesign } from '../types/design';
77

88
const GITHUB_PAGES_BASE = 'https://luongnv89.github.io/sleek-ui';

src/data/designs/deep-ocean.json

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
{
2+
"$schema": "https://sleek-ui.design/schema/design.v1.json",
3+
"name": "deep-ocean",
4+
"version": "1.0.0",
5+
"description": "Immersive deep ocean design with rich dark navy blues and vibrant teals. Created for AI agent-driven UI customization.",
6+
"categories": ["dark", "immersive"],
7+
"defaultMode": "dark",
8+
"author": {
9+
"name": "sleek-ui",
10+
"email": "hello@sleek-ui.design",
11+
"url": "https://sleek-ui.design"
12+
},
13+
"tokens": {
14+
"colors": {
15+
"light": {
16+
"background": "220 20% 98%",
17+
"foreground": "220 50% 25%",
18+
"muted": "220 15% 94%",
19+
"muted-foreground": "220 20% 50%",
20+
"primary": "185 80% 40%",
21+
"primary-foreground": "220 20% 15%",
22+
"secondary": "220 25% 92%",
23+
"secondary-foreground": "220 50% 25%",
24+
"accent": "185 70% 35%",
25+
"accent-foreground": "220 20% 15%",
26+
"destructive": "0 72% 51%",
27+
"destructive-foreground": "220 20% 98%",
28+
"border": "220 20% 88%",
29+
"input": "220 20% 88%",
30+
"ring": "185 80% 40%",
31+
"card": "220 25% 96%",
32+
"card-foreground": "220 50% 25%",
33+
"success": "150 60% 40%",
34+
"success-foreground": "220 20% 98%",
35+
"warning": "38 92% 50%",
36+
"warning-foreground": "220 20% 15%",
37+
"info": "199 89% 48%",
38+
"info-foreground": "220 20% 98%"
39+
},
40+
"dark": {
41+
"background": "220 40% 8%",
42+
"foreground": "185 80% 75%",
43+
"muted": "220 30% 15%",
44+
"muted-foreground": "220 15% 65%",
45+
"primary": "185 80% 55%",
46+
"primary-foreground": "220 25% 15%",
47+
"secondary": "220 35% 12%",
48+
"secondary-foreground": "185 80% 75%",
49+
"accent": "185 70% 50%",
50+
"accent-foreground": "220 25% 15%",
51+
"destructive": "0 62% 31%",
52+
"destructive-foreground": "185 80% 90%",
53+
"border": "220 30% 20%",
54+
"input": "220 30% 20%",
55+
"ring": "185 80% 55%",
56+
"card": "220 35% 10%",
57+
"card-foreground": "185 80% 75%",
58+
"success": "150 50% 45%",
59+
"success-foreground": "220 25% 15%",
60+
"warning": "38 92% 56%",
61+
"warning-foreground": "220 25% 15%",
62+
"info": "199 89% 55%",
63+
"info-foreground": "220 25% 15%"
64+
}
65+
},
66+
"typography": {
67+
"fontFamily": {
68+
"sans": "Inter",
69+
"serif": "Playfair Display",
70+
"mono": "JetBrains Mono"
71+
},
72+
"fontSize": {
73+
"xs": "0.75rem",
74+
"sm": "0.875rem",
75+
"base": "1rem",
76+
"lg": "1.125rem",
77+
"xl": "1.25rem",
78+
"2xl": "1.5rem",
79+
"3xl": "1.875rem",
80+
"4xl": "2.25rem"
81+
},
82+
"fontWeight": {
83+
"normal": 400,
84+
"medium": 500,
85+
"semibold": 600,
86+
"bold": 700
87+
},
88+
"lineHeight": {
89+
"tight": "1.25",
90+
"normal": "1.6",
91+
"relaxed": "1.75"
92+
},
93+
"letterSpacing": {
94+
"tight": "-0.025em",
95+
"normal": "0",
96+
"wide": "0.025em"
97+
}
98+
},
99+
"spacing": {
100+
"unit": "4px",
101+
"xs": "4px",
102+
"sm": "8px",
103+
"md": "16px",
104+
"lg": "24px",
105+
"xl": "32px",
106+
"2xl": "48px"
107+
},
108+
"radius": {
109+
"sm": "0.25rem",
110+
"default": "0.5rem",
111+
"lg": "0.75rem",
112+
"full": "9999px"
113+
},
114+
"shadows": {
115+
"sm": "0 1px 2px 0 rgb(0 0 0 / 0.2)",
116+
"default": "0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3)",
117+
"lg": "0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4)"
118+
}
119+
},
120+
"fonts": {
121+
"google": [
122+
{
123+
"family": "Inter",
124+
"weights": [400, 500, 600, 700]
125+
},
126+
{
127+
"family": "Playfair Display",
128+
"weights": [400, 600, 700]
129+
},
130+
{
131+
"family": "JetBrains Mono",
132+
"weights": [400, 500, 600]
133+
}
134+
],
135+
"urls": [
136+
{
137+
"url": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap",
138+
"format": "css2",
139+
"family": "Inter, Playfair Display, JetBrains Mono"
140+
}
141+
]
142+
},
143+
"accessibility": {
144+
"contrastTarget": 4.5,
145+
"focusRing": {
146+
"width": "2px",
147+
"color": "hsl(185, 80%, 55%)",
148+
"offset": "2px"
149+
},
150+
"reducedMotion": true
151+
},
152+
"components": {
153+
"button": {
154+
"primary": {
155+
"background": "primary",
156+
"color": "primary-foreground",
157+
"borderRadius": "radius.default",
158+
"padding": "spacing.sm spacing.md",
159+
"fontWeight": "semibold"
160+
},
161+
"secondary": {
162+
"background": "secondary",
163+
"color": "secondary-foreground",
164+
"borderRadius": "radius.default",
165+
"padding": "spacing.sm spacing.md",
166+
"fontWeight": "medium"
167+
},
168+
"ghost": {
169+
"background": "transparent",
170+
"color": "primary",
171+
"borderRadius": "radius.default",
172+
"padding": "spacing.sm spacing.md",
173+
"fontWeight": "medium"
174+
}
175+
},
176+
"card": {
177+
"background": "card",
178+
"color": "card-foreground",
179+
"borderRadius": "radius.lg",
180+
"padding": "spacing.lg",
181+
"shadow": "shadows.default",
182+
"border": "1px solid border"
183+
},
184+
"input": {
185+
"background": "background",
186+
"color": "foreground",
187+
"borderRadius": "radius.default",
188+
"padding": "spacing.sm spacing.md",
189+
"border": "1px solid input",
190+
"focusRing": "focusRing",
191+
"placeholderColor": "muted-foreground"
192+
}
193+
},
194+
"agentInstructions": {
195+
"steps": [
196+
"Set CSS custom properties from tokens.colors on :root (light) and .dark (dark mode)",
197+
"Set --radius from tokens.radius.default",
198+
"Load fonts by adding the Google Fonts URL from fonts.urls as a <link> tag",
199+
"Set font-family from tokens.typography.fontFamily",
200+
"Apply component styles from the components field (Tailwind class names for shadcn projects)",
201+
"Ensure focus states match accessibility.focusRing specification",
202+
"Test both light and dark modes"
203+
]
204+
},
205+
"preview": {
206+
"thumbnail": "/previews/deep-ocean-thumb.svg",
207+
"screenshots": {
208+
"light": ["/previews/deep-ocean-light.svg"],
209+
"dark": ["/previews/deep-ocean-dark.svg"]
210+
}
211+
}
212+
}

0 commit comments

Comments
 (0)