Skip to content

Commit e5ba426

Browse files
committed
chore: fixup
1 parent e9cdd7a commit e5ba426

File tree

3 files changed

+148
-5
lines changed

3 files changed

+148
-5
lines changed

packages/app-kit-ui/src/react/charts/area/area-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
XAxis,
66
YAxis,
77
} from "recharts";
8+
import { ChartContainer } from "../../ui/chart";
89
import { ChartTooltipDefault } from "../chart-tooltip";
910
import { ChartWrapper } from "../chart-wrapper";
10-
import { ChartContainer } from "../../ui/chart";
1111
import { detectFields, formatXAxisTick, generateChartConfig } from "../utils";
1212
import type { AreaChartProps } from "./types";
1313

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
export function LoadingSkeleton({ height = "300px" }: { height?: string }) {
22
return (
3-
<div
4-
className="w-full animate-pulse bg-gray-200 dark:bg-gray-800 bg-muted rounded"
5-
style={{ height }}
6-
/>
3+
<div className="w-full animate-pulse bg-muted rounded" style={{ height }} />
74
);
85
}

packages/app-kit-ui/src/react/styles/globals.css

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
--accent-foreground: oklch(0.21 0.006 285.885);
2121
--destructive: oklch(0.577 0.245 27.325);
2222
--destructive-foreground: oklch(0.985 0 0);
23+
--success: oklch(0.603 0.135 166.892);
24+
--success-foreground: oklch(1 0 0);
25+
--warning: oklch(0.795 0.157 78.748);
26+
--warning-foreground: oklch(0.199 0.027 238.732);
2327
--border: oklch(0.92 0.004 286.32);
2428
--input: oklch(0.92 0.004 286.32);
2529
--ring: oklch(0.705 0.015 286.067);
@@ -56,6 +60,10 @@
5660
--accent-foreground: oklch(0.985 0 0);
5761
--destructive: oklch(0.704 0.191 22.216);
5862
--destructive-foreground: oklch(0.985 0 0);
63+
--success: oklch(0.67 0.12 167);
64+
--success-foreground: oklch(1 0 0);
65+
--warning: oklch(0.83 0.165 85);
66+
--warning-foreground: oklch(0.199 0.027 238.732);
5967
--border: oklch(1 0 0 / 10%);
6068
--input: oklch(1 0 0 / 15%);
6169
--ring: oklch(0.552 0.016 285.938);
@@ -92,6 +100,10 @@
92100
--color-accent-foreground: var(--accent-foreground);
93101
--color-destructive: var(--destructive);
94102
--color-destructive-foreground: var(--destructive-foreground);
103+
--color-success: var(--success);
104+
--color-success-foreground: var(--success-foreground);
105+
--color-warning: var(--warning);
106+
--color-warning-foreground: var(--warning-foreground);
95107
--color-border: var(--border);
96108
--color-input: var(--input);
97109
--color-ring: var(--ring);
@@ -110,3 +122,137 @@
110122
--color-sidebar-ring: var(--sidebar-ring);
111123
--radius: var(--radius);
112124
}
125+
126+
@layer base {
127+
* {
128+
border-color: var(--border);
129+
}
130+
131+
html {
132+
-webkit-font-smoothing: antialiased;
133+
-moz-osx-font-smoothing: grayscale;
134+
text-rendering: optimizeLegibility;
135+
}
136+
137+
body {
138+
background-color: var(--background);
139+
color: var(--foreground);
140+
font-feature-settings:
141+
"rlig" 1,
142+
"calt" 1;
143+
transition:
144+
background-color 0.2s ease,
145+
color 0.2s ease;
146+
}
147+
148+
h1,
149+
h2,
150+
h3,
151+
h4,
152+
h5,
153+
h6 {
154+
font-weight: 600;
155+
letter-spacing: -0.025em;
156+
}
157+
158+
h1 {
159+
font-size: 2.25rem;
160+
line-height: 1.2;
161+
}
162+
h2 {
163+
font-size: 1.875rem;
164+
line-height: 1.3;
165+
}
166+
h3 {
167+
font-size: 1.5rem;
168+
line-height: 1.4;
169+
}
170+
h4 {
171+
font-size: 1.25rem;
172+
}
173+
h5 {
174+
font-size: 1.125rem;
175+
}
176+
p {
177+
line-height: 1.75rem;
178+
}
179+
180+
:focus-visible {
181+
outline: none;
182+
box-shadow:
183+
0 0 0 2px var(--background),
184+
0 0 0 4px var(--ring);
185+
}
186+
187+
img {
188+
max-width: 100%;
189+
height: auto;
190+
}
191+
192+
::-webkit-scrollbar {
193+
width: 10px;
194+
height: 10px;
195+
}
196+
197+
::-webkit-scrollbar-track {
198+
background-color: var(--secondary);
199+
}
200+
201+
::-webkit-scrollbar-thumb {
202+
background-color: var(--muted-foreground);
203+
opacity: 0.5;
204+
border-radius: 0.375rem;
205+
}
206+
207+
::-webkit-scrollbar-thumb:hover {
208+
opacity: 0.7;
209+
}
210+
211+
::selection {
212+
background-color: var(--primary);
213+
opacity: 0.2;
214+
}
215+
216+
@media (prefers-reduced-motion: reduce) {
217+
*,
218+
*::before,
219+
*::after {
220+
animation-duration: 0.01ms !important;
221+
animation-iteration-count: 1 !important;
222+
transition-duration: 0.01ms !important;
223+
}
224+
}
225+
226+
/* Optional: set all rounded utility to use CSS var */
227+
.rounded {
228+
border-radius: var(--radius);
229+
}
230+
}
231+
232+
/* -----------------------------
233+
Tailwind custom utilities
234+
----------------------------- */
235+
@layer utilities {
236+
.sr-only {
237+
position: absolute;
238+
width: 1px;
239+
height: 1px;
240+
padding: 0;
241+
margin: -1px;
242+
overflow: hidden;
243+
clip: rect(0, 0, 0, 0);
244+
white-space: nowrap;
245+
border-width: 0;
246+
}
247+
248+
.focus\:not-sr-only:focus {
249+
position: static;
250+
width: auto;
251+
height: auto;
252+
padding: initial;
253+
margin: initial;
254+
overflow: visible;
255+
clip: auto;
256+
white-space: normal;
257+
}
258+
}

0 commit comments

Comments
 (0)