@olympusoss/canvas 2.20.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -35
- package/package.json +45 -177
- package/src/cn.ts +3 -0
- package/src/index.ts +12 -603
- package/src/theme.ts +62 -0
- package/src/tokens.ts +11 -0
- package/styles/base.css +17 -0
- package/styles/canvas.css +77 -52
- package/styles/components/alert.css +66 -0
- package/styles/components/app-shell.css +46 -0
- package/styles/components/avatar.css +22 -0
- package/styles/components/badge.css +83 -0
- package/styles/components/breadcrumb.css +35 -0
- package/styles/components/button-group.css +23 -0
- package/styles/components/button.css +107 -0
- package/styles/components/calendar.css +73 -0
- package/styles/components/card.css +58 -0
- package/styles/components/checkbox.css +55 -0
- package/styles/components/code-block.css +18 -0
- package/styles/components/combobox.css +75 -0
- package/styles/components/command.css +94 -0
- package/styles/components/data-table.css +142 -0
- package/styles/components/dialog.css +72 -0
- package/styles/components/dropdown.css +54 -0
- package/styles/components/empty-state.css +17 -0
- package/styles/components/field.css +27 -0
- package/styles/components/filter-panel.css +58 -0
- package/styles/components/form.css +27 -0
- package/styles/components/icon.css +8 -0
- package/styles/components/input-group.css +45 -0
- package/styles/components/input.css +56 -0
- package/styles/components/kbd.css +15 -0
- package/styles/components/page-header.css +52 -0
- package/styles/components/pagination.css +48 -0
- package/styles/components/popover.css +14 -0
- package/styles/components/radio.css +28 -0
- package/styles/components/row-menu.css +69 -0
- package/styles/components/section-card.css +49 -0
- package/styles/components/select.css +57 -0
- package/styles/components/separator.css +32 -0
- package/styles/components/sheet.css +70 -0
- package/styles/components/sidebar.css +146 -0
- package/styles/components/skeleton.css +32 -0
- package/styles/components/spinner.css +26 -0
- package/styles/components/stat-card.css +71 -0
- package/styles/components/stepper.css +63 -0
- package/styles/components/switch.css +45 -0
- package/styles/components/tabs.css +40 -0
- package/styles/components/textarea.css +31 -0
- package/styles/components/toast.css +95 -0
- package/styles/components/tooltip.css +53 -0
- package/styles/components/topbar.css +24 -0
- package/styles/components/typography.css +105 -0
- package/styles/patterns/backdrops.css +35 -0
- package/styles/patterns/density.css +66 -0
- package/styles/patterns/focus.css +22 -0
- package/styles/patterns/glass.css +85 -0
- package/styles/patterns/high-contrast.css +70 -0
- package/styles/patterns/reduced-motion.css +12 -0
- package/styles/patterns/scrollbar.css +10 -0
- package/styles/reset.css +89 -0
- package/styles/tokens/colors.css +106 -0
- package/styles/tokens/motion.css +33 -0
- package/styles/tokens/radius.css +10 -0
- package/styles/tokens/shadows.css +35 -0
- package/styles/tokens/spacing.css +19 -0
- package/styles/tokens/typography.css +6 -0
- package/styles/tokens/z-index.css +12 -0
- package/styles/utilities/display.css +66 -0
- package/styles/utilities/flexbox.css +240 -0
- package/styles/utilities/gap.css +288 -0
- package/styles/utilities/grid.css +138 -0
- package/styles/utilities/position.css +78 -0
- package/styles/utilities/sizing.css +138 -0
- package/tsconfig.json +20 -21
- package/src/components/atoms/README.md +0 -11
- package/src/components/atoms/aspect-ratio.tsx +0 -32
- package/src/components/atoms/avatar.tsx +0 -98
- package/src/components/atoms/badge.tsx +0 -44
- package/src/components/atoms/brand-mark.tsx +0 -74
- package/src/components/atoms/button.tsx +0 -105
- package/src/components/atoms/checkbox.tsx +0 -63
- package/src/components/atoms/flex-box.tsx +0 -105
- package/src/components/atoms/icon.tsx +0 -34
- package/src/components/atoms/input.tsx +0 -92
- package/src/components/atoms/label.tsx +0 -41
- package/src/components/atoms/logo.tsx +0 -89
- package/src/components/atoms/progress.tsx +0 -55
- package/src/components/atoms/radio-group.tsx +0 -122
- package/src/components/atoms/scroll-area.tsx +0 -106
- package/src/components/atoms/section.tsx +0 -48
- package/src/components/atoms/separator.tsx +0 -45
- package/src/components/atoms/skeleton.tsx +0 -17
- package/src/components/atoms/slider.tsx +0 -93
- package/src/components/atoms/spinner.tsx +0 -47
- package/src/components/atoms/switch.tsx +0 -60
- package/src/components/atoms/textarea.tsx +0 -78
- package/src/components/atoms/toggle.tsx +0 -80
- package/src/components/charts/activity-heatmap.tsx +0 -186
- package/src/components/charts/axes.tsx +0 -21
- package/src/components/charts/chart-container.tsx +0 -254
- package/src/components/charts/chart-legend.tsx +0 -67
- package/src/components/charts/chart-tooltip.tsx +0 -161
- package/src/components/charts/chart-types.tsx +0 -49
- package/src/components/charts/containers.tsx +0 -11
- package/src/components/charts/data.tsx +0 -16
- package/src/components/charts/details.tsx +0 -25
- package/src/components/charts/dot-pulse.tsx +0 -61
- package/src/components/charts/gauge.tsx +0 -106
- package/src/components/charts/grids.tsx +0 -8
- package/src/components/charts/index.ts +0 -62
- package/src/components/charts/labeled-bar-list.tsx +0 -85
- package/src/components/charts/metric-breakdown.tsx +0 -316
- package/src/components/charts/references.tsx +0 -8
- package/src/components/charts/service-health-list.tsx +0 -85
- package/src/components/charts/sparkline-area.tsx +0 -80
- package/src/components/charts/sparkline.tsx +0 -52
- package/src/components/charts/stacked-bar.tsx +0 -104
- package/src/components/charts/text.tsx +0 -10
- package/src/components/charts/world-heat-map-inner.tsx +0 -317
- package/src/components/charts/world-heat-map.tsx +0 -184
- package/src/components/molecules/README.md +0 -12
- package/src/components/molecules/action-bar.tsx +0 -73
- package/src/components/molecules/activity-item.tsx +0 -74
- package/src/components/molecules/alert.tsx +0 -86
- package/src/components/molecules/animated-background.tsx +0 -92
- package/src/components/molecules/auth-shell.tsx +0 -95
- package/src/components/molecules/brand-lockup.tsx +0 -48
- package/src/components/molecules/breadcrumb.tsx +0 -157
- package/src/components/molecules/button-group.tsx +0 -104
- package/src/components/molecules/calendar.tsx +0 -217
- package/src/components/molecules/card.tsx +0 -102
- package/src/components/molecules/client-brand.tsx +0 -95
- package/src/components/molecules/code-block.tsx +0 -86
- package/src/components/molecules/countdown-button.tsx +0 -92
- package/src/components/molecules/empty-state.tsx +0 -56
- package/src/components/molecules/error-state.tsx +0 -42
- package/src/components/molecules/field-display.tsx +0 -35
- package/src/components/molecules/input-otp.tsx +0 -74
- package/src/components/molecules/launcher-card.tsx +0 -152
- package/src/components/molecules/loading-state.tsx +0 -36
- package/src/components/molecules/notification-item.tsx +0 -67
- package/src/components/molecules/notification-list.tsx +0 -45
- package/src/components/molecules/number-badge.tsx +0 -53
- package/src/components/molecules/or-separator.tsx +0 -38
- package/src/components/molecules/page-header.tsx +0 -88
- package/src/components/molecules/page-tabs.tsx +0 -94
- package/src/components/molecules/pagination.tsx +0 -150
- package/src/components/molecules/password-input.tsx +0 -83
- package/src/components/molecules/password-strength-meter.tsx +0 -104
- package/src/components/molecules/phone-input.tsx +0 -200
- package/src/components/molecules/search-bar.tsx +0 -64
- package/src/components/molecules/secret-field.tsx +0 -158
- package/src/components/molecules/section-card.tsx +0 -91
- package/src/components/molecules/social-buttons.tsx +0 -165
- package/src/components/molecules/stat-card.tsx +0 -100
- package/src/components/molecules/status-badge.tsx +0 -42
- package/src/components/molecules/stepper.tsx +0 -96
- package/src/components/molecules/table.tsx +0 -157
- package/src/components/molecules/terminal.tsx +0 -74
- package/src/components/molecules/toggle-group.tsx +0 -145
- package/src/components/molecules/tooltip.tsx +0 -155
- package/src/components/molecules/user-avatar-chip.tsx +0 -71
- package/src/components/organisms/README.md +0 -14
- package/src/components/organisms/accordion.tsx +0 -154
- package/src/components/organisms/alert-dialog.tsx +0 -277
- package/src/components/organisms/carousel.tsx +0 -244
- package/src/components/organisms/collapsible.tsx +0 -69
- package/src/components/organisms/command.tsx +0 -144
- package/src/components/organisms/context-menu.tsx +0 -339
- package/src/components/organisms/dashboard-grid.tsx +0 -369
- package/src/components/organisms/data-table.tsx +0 -330
- package/src/components/organisms/dialog.tsx +0 -312
- package/src/components/organisms/drawer.tsx +0 -123
- package/src/components/organisms/dropdown-menu.tsx +0 -440
- package/src/components/organisms/editors/code-editor.tsx +0 -144
- package/src/components/organisms/editors/index.ts +0 -4
- package/src/components/organisms/editors/markdown-editor.tsx +0 -153
- package/src/components/organisms/editors/markdown-renderer.ts +0 -27
- package/src/components/organisms/editors/prose-canvas-classes.ts +0 -45
- package/src/components/organisms/editors/rich-text-editor.tsx +0 -126
- package/src/components/organisms/editors/toolbar/md-toolbar.tsx +0 -129
- package/src/components/organisms/editors/toolbar/rte-toolbar.tsx +0 -211
- package/src/components/organisms/editors/toolbar/toolbar-shell.tsx +0 -45
- package/src/components/organisms/editors/use-codemirror-theme.ts +0 -61
- package/src/components/organisms/error-boundary.tsx +0 -61
- package/src/components/organisms/form.tsx +0 -174
- package/src/components/organisms/hover-card.tsx +0 -115
- package/src/components/organisms/menubar.tsx +0 -498
- package/src/components/organisms/navbar.tsx +0 -104
- package/src/components/organisms/navigation-menu.tsx +0 -235
- package/src/components/organisms/popover.tsx +0 -149
- package/src/components/organisms/resizable.tsx +0 -58
- package/src/components/organisms/schema-form.tsx +0 -232
- package/src/components/organisms/select.tsx +0 -309
- package/src/components/organisms/sheet.tsx +0 -265
- package/src/components/organisms/sidebar.tsx +0 -1040
- package/src/components/organisms/sonner.tsx +0 -96
- package/src/components/organisms/tabs.tsx +0 -133
- package/src/components/organisms/theme-provider.tsx +0 -101
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/lib/portal-container.tsx +0 -35
- package/src/lib/utils.ts +0 -6
- package/src/native.ts +0 -23
- package/src/tokens/colors.ts +0 -91
- package/src/tokens/index.ts +0 -3
- package/src/tokens/spacing.ts +0 -55
- package/src/tokens/typography.ts +0 -27
- package/styles/dashboard-grid.css +0 -47
- package/styles/fonts/Roboto-VariableFont_wdth_wght.ttf +0 -0
- package/styles/glass.css +0 -171
- package/styles/leaflet.css +0 -13
- package/styles/tokens.css +0 -317
- package/tailwind.config.ts +0 -70
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
@media (prefers-contrast: more) {
|
|
3
|
+
:root {
|
|
4
|
+
--border: 240 5.9% 50%;
|
|
5
|
+
--input: 240 5.9% 50%;
|
|
6
|
+
--muted-foreground: 240 6% 25%;
|
|
7
|
+
--shadow-xs: none;
|
|
8
|
+
--shadow-sm: none;
|
|
9
|
+
--shadow-md: none;
|
|
10
|
+
--shadow-lg: none;
|
|
11
|
+
--shadow-elevated: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dark {
|
|
15
|
+
--border: 240 5% 60%;
|
|
16
|
+
--input: 240 5% 60%;
|
|
17
|
+
--muted-foreground: 240 5% 80%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.btn,
|
|
21
|
+
.input,
|
|
22
|
+
.select,
|
|
23
|
+
.textarea,
|
|
24
|
+
.checkbox,
|
|
25
|
+
.radio,
|
|
26
|
+
.switch {
|
|
27
|
+
border-width: 2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.card,
|
|
31
|
+
.stat-card,
|
|
32
|
+
.section-card,
|
|
33
|
+
.dt-wrap,
|
|
34
|
+
.empty-card,
|
|
35
|
+
.alert {
|
|
36
|
+
border-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.badge,
|
|
40
|
+
.status-badge,
|
|
41
|
+
.kbd {
|
|
42
|
+
border-width: 2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar {
|
|
46
|
+
border-right-width: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.topbar {
|
|
50
|
+
border-bottom-width: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dt-table th,
|
|
54
|
+
.dt-table td {
|
|
55
|
+
border-bottom-width: 2px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tab.active {
|
|
59
|
+
border-bottom-width: 3px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sep {
|
|
63
|
+
border-top-width: 2px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sep-v {
|
|
67
|
+
border-left-width: 2px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3
|
+
*,
|
|
4
|
+
::before,
|
|
5
|
+
::after {
|
|
6
|
+
animation-duration: 0.01ms !important;
|
|
7
|
+
animation-iteration-count: 1 !important;
|
|
8
|
+
transition-duration: 0.01ms !important;
|
|
9
|
+
scroll-behavior: auto !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
package/styles/reset.css
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@layer canvas.reset {
|
|
2
|
+
*,
|
|
3
|
+
::after,
|
|
4
|
+
::before {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
html {
|
|
11
|
+
line-height: 1.5;
|
|
12
|
+
-webkit-text-size-adjust: 100%;
|
|
13
|
+
tab-size: 4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
line-height: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
hr {
|
|
21
|
+
height: 0;
|
|
22
|
+
color: inherit;
|
|
23
|
+
border-top-width: 1px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h1, h2, h3, h4, h5, h6 {
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
font-weight: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
a {
|
|
32
|
+
color: inherit;
|
|
33
|
+
text-decoration: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
b, strong {
|
|
37
|
+
font-weight: bolder;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
code, kbd, samp, pre {
|
|
41
|
+
font-size: 1em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
small {
|
|
45
|
+
font-size: 80%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
button, input, optgroup, select, textarea {
|
|
49
|
+
font-family: inherit;
|
|
50
|
+
font-feature-settings: inherit;
|
|
51
|
+
font-variation-settings: inherit;
|
|
52
|
+
font-size: 100%;
|
|
53
|
+
font-weight: inherit;
|
|
54
|
+
line-height: inherit;
|
|
55
|
+
color: inherit;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
button, select {
|
|
59
|
+
text-transform: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
button,
|
|
63
|
+
[type="button"],
|
|
64
|
+
[type="reset"],
|
|
65
|
+
[type="submit"] {
|
|
66
|
+
-webkit-appearance: button;
|
|
67
|
+
appearance: button;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
table {
|
|
71
|
+
text-indent: 0;
|
|
72
|
+
border-color: inherit;
|
|
73
|
+
border-collapse: collapse;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
img, svg, video, canvas, audio, iframe, embed, object {
|
|
77
|
+
display: block;
|
|
78
|
+
vertical-align: middle;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
img, video {
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
height: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[hidden] {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@layer canvas.tokens {
|
|
2
|
+
:root {
|
|
3
|
+
--background: 0 0% 100%;
|
|
4
|
+
--foreground: 240 10% 3.9%;
|
|
5
|
+
--card: 0 0% 100%;
|
|
6
|
+
--card-foreground: 240 10% 3.9%;
|
|
7
|
+
--popover: 0 0% 100%;
|
|
8
|
+
--popover-foreground: 240 10% 3.9%;
|
|
9
|
+
--primary: 240 79.4% 60%;
|
|
10
|
+
--primary-foreground: 0 0% 100%;
|
|
11
|
+
--secondary: 240 4.8% 95.9%;
|
|
12
|
+
--secondary-foreground: 240 5.9% 10%;
|
|
13
|
+
--muted: 240 4.8% 95.9%;
|
|
14
|
+
--muted-foreground: 240 3.8% 46.1%;
|
|
15
|
+
--accent: 240 4.8% 95.9%;
|
|
16
|
+
--accent-foreground: 240 5.9% 10%;
|
|
17
|
+
--destructive: 0 84.2% 60.2%;
|
|
18
|
+
--destructive-foreground: 0 0% 100%;
|
|
19
|
+
--border: 240 5.9% 90%;
|
|
20
|
+
--input: 240 5.9% 90%;
|
|
21
|
+
--ring: 240 79.4% 60%;
|
|
22
|
+
--radius: 0.5rem;
|
|
23
|
+
|
|
24
|
+
--chart-1: 12 76% 61%;
|
|
25
|
+
--chart-2: 173 58% 39%;
|
|
26
|
+
--chart-3: 197 37% 24%;
|
|
27
|
+
--chart-4: 43 74% 66%;
|
|
28
|
+
--chart-5: 27 87% 67%;
|
|
29
|
+
|
|
30
|
+
--sidebar-background: 0 0% 98%;
|
|
31
|
+
--sidebar-foreground: 240 5.3% 26.1%;
|
|
32
|
+
--sidebar-primary: 240 79.4% 60%;
|
|
33
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
34
|
+
--sidebar-accent: 240 4.8% 95.9%;
|
|
35
|
+
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
36
|
+
--sidebar-border: 220 13% 91%;
|
|
37
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
38
|
+
|
|
39
|
+
--brand-blue-700: #1e40af;
|
|
40
|
+
--brand-blue-400: #60a5fa;
|
|
41
|
+
--brand-gradient: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
|
|
42
|
+
|
|
43
|
+
--orb-indigo: #6366f1;
|
|
44
|
+
--orb-violet: #8b5cf6;
|
|
45
|
+
--orb-cyan: #06b6d4;
|
|
46
|
+
|
|
47
|
+
--color-success: hsl(143 70% 45%);
|
|
48
|
+
--color-warning: hsl(38 92% 50%);
|
|
49
|
+
--color-info: hsl(217 91% 60%);
|
|
50
|
+
|
|
51
|
+
--success-bg: 141 79% 85%;
|
|
52
|
+
--success-fg: 144 61% 20%;
|
|
53
|
+
--warning-bg: 48 96% 89%;
|
|
54
|
+
--warning-fg: 40 80% 27%;
|
|
55
|
+
--error-bg: 0 93% 94%;
|
|
56
|
+
--error-fg: 0 70% 35%;
|
|
57
|
+
--info-bg: 214 95% 93%;
|
|
58
|
+
--info-fg: 221 83% 45%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dark {
|
|
62
|
+
--background: 240 10% 3.9%;
|
|
63
|
+
--foreground: 0 0% 98%;
|
|
64
|
+
--card: 240 10% 3.9%;
|
|
65
|
+
--card-foreground: 0 0% 98%;
|
|
66
|
+
--popover: 240 10% 3.9%;
|
|
67
|
+
--popover-foreground: 0 0% 98%;
|
|
68
|
+
--primary: 240 79.4% 60%;
|
|
69
|
+
--primary-foreground: 0 0% 100%;
|
|
70
|
+
--secondary: 240 3.7% 15.9%;
|
|
71
|
+
--secondary-foreground: 0 0% 98%;
|
|
72
|
+
--muted: 240 3.7% 15.9%;
|
|
73
|
+
--muted-foreground: 240 5% 64.9%;
|
|
74
|
+
--accent: 240 3.7% 15.9%;
|
|
75
|
+
--accent-foreground: 0 0% 98%;
|
|
76
|
+
--destructive: 0 84.2% 60.2%;
|
|
77
|
+
--destructive-foreground: 0 0% 100%;
|
|
78
|
+
--border: 240 3.7% 15.9%;
|
|
79
|
+
--input: 240 3.7% 15.9%;
|
|
80
|
+
--ring: 240 79.4% 60%;
|
|
81
|
+
|
|
82
|
+
--chart-1: 220 70% 50%;
|
|
83
|
+
--chart-2: 160 60% 45%;
|
|
84
|
+
--chart-3: 30 80% 55%;
|
|
85
|
+
--chart-4: 280 65% 60%;
|
|
86
|
+
--chart-5: 340 75% 55%;
|
|
87
|
+
|
|
88
|
+
--sidebar-background: 240 5.9% 10%;
|
|
89
|
+
--sidebar-foreground: 240 4.8% 95.9%;
|
|
90
|
+
--sidebar-primary: 240 79.4% 60%;
|
|
91
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
92
|
+
--sidebar-accent: 240 3.7% 15.9%;
|
|
93
|
+
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
|
94
|
+
--sidebar-border: 240 3.7% 15.9%;
|
|
95
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
96
|
+
|
|
97
|
+
--success-bg: 149 50% 22%;
|
|
98
|
+
--success-fg: 142 70% 65%;
|
|
99
|
+
--warning-bg: 38 50% 20%;
|
|
100
|
+
--warning-fg: 43 90% 65%;
|
|
101
|
+
--error-bg: 0 50% 18%;
|
|
102
|
+
--error-fg: 0 80% 70%;
|
|
103
|
+
--info-bg: 217 50% 22%;
|
|
104
|
+
--info-fg: 217 90% 72%;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@layer canvas.tokens {
|
|
2
|
+
@keyframes toast-in {
|
|
3
|
+
from { opacity: 0; transform: translateY(8px); }
|
|
4
|
+
to { opacity: 1; transform: translateY(0); }
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes modal-in {
|
|
8
|
+
from { opacity: 0; transform: scale(0.96); }
|
|
9
|
+
to { opacity: 1; transform: scale(1); }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes fade-in {
|
|
13
|
+
from { opacity: 0; }
|
|
14
|
+
to { opacity: 1; }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes slide-in {
|
|
18
|
+
from { transform: translateX(100%); }
|
|
19
|
+
to { transform: translateX(0); }
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
--duration-fast: 150ms;
|
|
24
|
+
--duration-normal: 200ms;
|
|
25
|
+
--duration-slow: 300ms;
|
|
26
|
+
--ease-out: cubic-bezier(0.32, 0.72, 0, 1);
|
|
27
|
+
|
|
28
|
+
--animate-toast-in: toast-in var(--duration-normal) ease-out;
|
|
29
|
+
--animate-modal-in: modal-in 180ms ease-out;
|
|
30
|
+
--animate-fade-in: fade-in var(--duration-normal) ease-out;
|
|
31
|
+
--animate-slide-in: slide-in 240ms var(--ease-out);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer canvas.tokens {
|
|
2
|
+
:root {
|
|
3
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
4
|
+
--shadow-sm:
|
|
5
|
+
0 1px 2px hsl(220 30% 20% / 0.04),
|
|
6
|
+
0 2px 4px -1px hsl(220 30% 20% / 0.06);
|
|
7
|
+
--shadow-md:
|
|
8
|
+
0 1px 2px hsl(220 30% 20% / 0.04),
|
|
9
|
+
0 8px 24px -12px hsl(220 30% 20% / 0.12);
|
|
10
|
+
--shadow-lg:
|
|
11
|
+
0 2px 4px hsl(220 30% 20% / 0.04),
|
|
12
|
+
0 12px 32px -8px hsl(220 30% 20% / 0.16);
|
|
13
|
+
--shadow-elevated:
|
|
14
|
+
0 1px 2px hsl(220 30% 20% / 0.04),
|
|
15
|
+
0 8px 24px -12px hsl(220 30% 20% / 0.12),
|
|
16
|
+
inset 0 1px 0 hsl(0 0% 100% / 0.5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dark {
|
|
20
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.2);
|
|
21
|
+
--shadow-sm:
|
|
22
|
+
0 1px 2px hsl(0 0% 0% / 0.2),
|
|
23
|
+
0 2px 4px -1px hsl(0 0% 0% / 0.2);
|
|
24
|
+
--shadow-md:
|
|
25
|
+
0 1px 2px hsl(0 0% 0% / 0.4),
|
|
26
|
+
0 8px 24px -12px hsl(0 0% 0% / 0.5);
|
|
27
|
+
--shadow-lg:
|
|
28
|
+
0 2px 4px hsl(0 0% 0% / 0.3),
|
|
29
|
+
0 12px 32px -8px hsl(0 0% 0% / 0.5);
|
|
30
|
+
--shadow-elevated:
|
|
31
|
+
0 1px 2px hsl(0 0% 0% / 0.4),
|
|
32
|
+
0 8px 24px -12px hsl(0 0% 0% / 0.5),
|
|
33
|
+
inset 0 1px 0 hsl(0 0% 100% / 0.06);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@layer canvas.tokens {
|
|
2
|
+
:root {
|
|
3
|
+
--space-0: 0px;
|
|
4
|
+
--space-px: 1px;
|
|
5
|
+
--space-0-5: 0.125rem;
|
|
6
|
+
--space-1: 0.25rem;
|
|
7
|
+
--space-1-5: 0.375rem;
|
|
8
|
+
--space-2: 0.5rem;
|
|
9
|
+
--space-2-5: 0.625rem;
|
|
10
|
+
--space-3: 0.75rem;
|
|
11
|
+
--space-4: 1rem;
|
|
12
|
+
--space-5: 1.25rem;
|
|
13
|
+
--space-6: 1.5rem;
|
|
14
|
+
--space-8: 2rem;
|
|
15
|
+
--space-10: 2.5rem;
|
|
16
|
+
--space-12: 3rem;
|
|
17
|
+
--space-16: 4rem;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* AUTO-GENERATED by scripts/generate-utilities.ts. Do not edit by hand; run: bun run generate-utilities */
|
|
2
|
+
@layer canvas.utilities {
|
|
3
|
+
.block { display:block; }
|
|
4
|
+
.inline-block { display:inline-block; }
|
|
5
|
+
.inline { display:inline; }
|
|
6
|
+
.flex { display:flex; }
|
|
7
|
+
.inline-flex { display:inline-flex; }
|
|
8
|
+
.grid { display:grid; }
|
|
9
|
+
.inline-grid { display:inline-grid; }
|
|
10
|
+
.hidden { display:none; }
|
|
11
|
+
|
|
12
|
+
@media (min-width: 640px) {
|
|
13
|
+
.sm\:block { display:block; }
|
|
14
|
+
.sm\:inline-block { display:inline-block; }
|
|
15
|
+
.sm\:inline { display:inline; }
|
|
16
|
+
.sm\:flex { display:flex; }
|
|
17
|
+
.sm\:inline-flex { display:inline-flex; }
|
|
18
|
+
.sm\:grid { display:grid; }
|
|
19
|
+
.sm\:inline-grid { display:inline-grid; }
|
|
20
|
+
.sm\:hidden { display:none; }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (min-width: 768px) {
|
|
24
|
+
.md\:block { display:block; }
|
|
25
|
+
.md\:inline-block { display:inline-block; }
|
|
26
|
+
.md\:inline { display:inline; }
|
|
27
|
+
.md\:flex { display:flex; }
|
|
28
|
+
.md\:inline-flex { display:inline-flex; }
|
|
29
|
+
.md\:grid { display:grid; }
|
|
30
|
+
.md\:inline-grid { display:inline-grid; }
|
|
31
|
+
.md\:hidden { display:none; }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (min-width: 1024px) {
|
|
35
|
+
.lg\:block { display:block; }
|
|
36
|
+
.lg\:inline-block { display:inline-block; }
|
|
37
|
+
.lg\:inline { display:inline; }
|
|
38
|
+
.lg\:flex { display:flex; }
|
|
39
|
+
.lg\:inline-flex { display:inline-flex; }
|
|
40
|
+
.lg\:grid { display:grid; }
|
|
41
|
+
.lg\:inline-grid { display:inline-grid; }
|
|
42
|
+
.lg\:hidden { display:none; }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (min-width: 1280px) {
|
|
46
|
+
.xl\:block { display:block; }
|
|
47
|
+
.xl\:inline-block { display:inline-block; }
|
|
48
|
+
.xl\:inline { display:inline; }
|
|
49
|
+
.xl\:flex { display:flex; }
|
|
50
|
+
.xl\:inline-flex { display:inline-flex; }
|
|
51
|
+
.xl\:grid { display:grid; }
|
|
52
|
+
.xl\:inline-grid { display:inline-grid; }
|
|
53
|
+
.xl\:hidden { display:none; }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 1536px) {
|
|
57
|
+
.\32 xl\:block { display:block; }
|
|
58
|
+
.\32 xl\:inline-block { display:inline-block; }
|
|
59
|
+
.\32 xl\:inline { display:inline; }
|
|
60
|
+
.\32 xl\:flex { display:flex; }
|
|
61
|
+
.\32 xl\:inline-flex { display:inline-flex; }
|
|
62
|
+
.\32 xl\:grid { display:grid; }
|
|
63
|
+
.\32 xl\:inline-grid { display:inline-grid; }
|
|
64
|
+
.\32 xl\:hidden { display:none; }
|
|
65
|
+
}
|
|
66
|
+
}
|