@actuate-media/cms-admin 0.1.1 → 0.1.3
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/LICENSE +21 -21
- package/dist/components/TipTapEditor.js +78 -78
- package/package.json +2 -2
- package/src/styles/tailwind.css +6 -6
- package/src/styles/theme.css +181 -181
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Actuate Media
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Actuate Media
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -18,84 +18,84 @@ import HorizontalRule from '@tiptap/extension-horizontal-rule';
|
|
|
18
18
|
import { common, createLowlight } from 'lowlight';
|
|
19
19
|
import { Bold, Italic, Underline, Strikethrough, Code, Heading1, Heading2, Heading3, List, ListOrdered, Quote, FileCode, Minus, AlignLeft, AlignCenter, AlignRight, Link as LinkIcon, Image as ImageIcon, Table as TableIcon, Columns, Rows, Trash2, Undo, Redo, } from 'lucide-react';
|
|
20
20
|
const lowlight = createLowlight(common);
|
|
21
|
-
const editorStyles = `
|
|
22
|
-
.ProseMirror {
|
|
23
|
-
min-height: 300px;
|
|
24
|
-
outline: none;
|
|
25
|
-
padding: 1rem;
|
|
26
|
-
}
|
|
27
|
-
.ProseMirror h1 { font-size: 2em; font-weight: 700; margin: 0.67em 0; }
|
|
28
|
-
.ProseMirror h2 { font-size: 1.5em; font-weight: 700; margin: 0.75em 0; }
|
|
29
|
-
.ProseMirror h3 { font-size: 1.17em; font-weight: 700; margin: 0.83em 0; }
|
|
30
|
-
.ProseMirror h4 { font-size: 1em; font-weight: 700; margin: 1em 0; }
|
|
31
|
-
.ProseMirror h5 { font-size: 0.83em; font-weight: 700; margin: 1.17em 0; }
|
|
32
|
-
.ProseMirror h6 { font-size: 0.67em; font-weight: 700; margin: 1.33em 0; }
|
|
33
|
-
.ProseMirror ul { list-style: disc; padding-left: 1.5rem; margin: 0.5em 0; }
|
|
34
|
-
.ProseMirror ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5em 0; }
|
|
35
|
-
.ProseMirror li { margin: 0.25em 0; }
|
|
36
|
-
.ProseMirror p { margin: 0.5em 0; }
|
|
37
|
-
.ProseMirror table {
|
|
38
|
-
border-collapse: collapse;
|
|
39
|
-
width: 100%;
|
|
40
|
-
margin: 1rem 0;
|
|
41
|
-
}
|
|
42
|
-
.ProseMirror th,
|
|
43
|
-
.ProseMirror td {
|
|
44
|
-
border: 1px solid #d1d5db;
|
|
45
|
-
padding: 0.5rem;
|
|
46
|
-
text-align: left;
|
|
47
|
-
min-width: 80px;
|
|
48
|
-
}
|
|
49
|
-
.ProseMirror th {
|
|
50
|
-
background-color: #f3f4f6;
|
|
51
|
-
font-weight: 600;
|
|
52
|
-
}
|
|
53
|
-
.ProseMirror img {
|
|
54
|
-
max-width: 100%;
|
|
55
|
-
height: auto;
|
|
56
|
-
border-radius: 0.375rem;
|
|
57
|
-
}
|
|
58
|
-
.ProseMirror blockquote {
|
|
59
|
-
border-left: 3px solid #3b82f6;
|
|
60
|
-
padding-left: 1rem;
|
|
61
|
-
margin: 1rem 0;
|
|
62
|
-
color: #4b5563;
|
|
63
|
-
}
|
|
64
|
-
.ProseMirror pre {
|
|
65
|
-
background: #1e293b;
|
|
66
|
-
color: #e2e8f0;
|
|
67
|
-
padding: 1rem;
|
|
68
|
-
border-radius: 0.5rem;
|
|
69
|
-
overflow-x: auto;
|
|
70
|
-
margin: 0.75rem 0;
|
|
71
|
-
}
|
|
72
|
-
.ProseMirror code {
|
|
73
|
-
background: #f1f5f9;
|
|
74
|
-
padding: 0.125rem 0.375rem;
|
|
75
|
-
border-radius: 0.25rem;
|
|
76
|
-
font-size: 0.875em;
|
|
77
|
-
}
|
|
78
|
-
.ProseMirror pre code {
|
|
79
|
-
background: none;
|
|
80
|
-
padding: 0;
|
|
81
|
-
border-radius: 0;
|
|
82
|
-
font-size: inherit;
|
|
83
|
-
}
|
|
84
|
-
.ProseMirror hr {
|
|
85
|
-
border: none;
|
|
86
|
-
border-top: 2px solid #e5e7eb;
|
|
87
|
-
margin: 1.5rem 0;
|
|
88
|
-
}
|
|
89
|
-
.ProseMirror p.is-editor-empty:first-child::before {
|
|
90
|
-
content: attr(data-placeholder);
|
|
91
|
-
float: left;
|
|
92
|
-
color: #9ca3af;
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
height: 0;
|
|
95
|
-
}
|
|
96
|
-
.ProseMirror .selectedCell {
|
|
97
|
-
background-color: #dbeafe;
|
|
98
|
-
}
|
|
21
|
+
const editorStyles = `
|
|
22
|
+
.ProseMirror {
|
|
23
|
+
min-height: 300px;
|
|
24
|
+
outline: none;
|
|
25
|
+
padding: 1rem;
|
|
26
|
+
}
|
|
27
|
+
.ProseMirror h1 { font-size: 2em; font-weight: 700; margin: 0.67em 0; }
|
|
28
|
+
.ProseMirror h2 { font-size: 1.5em; font-weight: 700; margin: 0.75em 0; }
|
|
29
|
+
.ProseMirror h3 { font-size: 1.17em; font-weight: 700; margin: 0.83em 0; }
|
|
30
|
+
.ProseMirror h4 { font-size: 1em; font-weight: 700; margin: 1em 0; }
|
|
31
|
+
.ProseMirror h5 { font-size: 0.83em; font-weight: 700; margin: 1.17em 0; }
|
|
32
|
+
.ProseMirror h6 { font-size: 0.67em; font-weight: 700; margin: 1.33em 0; }
|
|
33
|
+
.ProseMirror ul { list-style: disc; padding-left: 1.5rem; margin: 0.5em 0; }
|
|
34
|
+
.ProseMirror ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5em 0; }
|
|
35
|
+
.ProseMirror li { margin: 0.25em 0; }
|
|
36
|
+
.ProseMirror p { margin: 0.5em 0; }
|
|
37
|
+
.ProseMirror table {
|
|
38
|
+
border-collapse: collapse;
|
|
39
|
+
width: 100%;
|
|
40
|
+
margin: 1rem 0;
|
|
41
|
+
}
|
|
42
|
+
.ProseMirror th,
|
|
43
|
+
.ProseMirror td {
|
|
44
|
+
border: 1px solid #d1d5db;
|
|
45
|
+
padding: 0.5rem;
|
|
46
|
+
text-align: left;
|
|
47
|
+
min-width: 80px;
|
|
48
|
+
}
|
|
49
|
+
.ProseMirror th {
|
|
50
|
+
background-color: #f3f4f6;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
.ProseMirror img {
|
|
54
|
+
max-width: 100%;
|
|
55
|
+
height: auto;
|
|
56
|
+
border-radius: 0.375rem;
|
|
57
|
+
}
|
|
58
|
+
.ProseMirror blockquote {
|
|
59
|
+
border-left: 3px solid #3b82f6;
|
|
60
|
+
padding-left: 1rem;
|
|
61
|
+
margin: 1rem 0;
|
|
62
|
+
color: #4b5563;
|
|
63
|
+
}
|
|
64
|
+
.ProseMirror pre {
|
|
65
|
+
background: #1e293b;
|
|
66
|
+
color: #e2e8f0;
|
|
67
|
+
padding: 1rem;
|
|
68
|
+
border-radius: 0.5rem;
|
|
69
|
+
overflow-x: auto;
|
|
70
|
+
margin: 0.75rem 0;
|
|
71
|
+
}
|
|
72
|
+
.ProseMirror code {
|
|
73
|
+
background: #f1f5f9;
|
|
74
|
+
padding: 0.125rem 0.375rem;
|
|
75
|
+
border-radius: 0.25rem;
|
|
76
|
+
font-size: 0.875em;
|
|
77
|
+
}
|
|
78
|
+
.ProseMirror pre code {
|
|
79
|
+
background: none;
|
|
80
|
+
padding: 0;
|
|
81
|
+
border-radius: 0;
|
|
82
|
+
font-size: inherit;
|
|
83
|
+
}
|
|
84
|
+
.ProseMirror hr {
|
|
85
|
+
border: none;
|
|
86
|
+
border-top: 2px solid #e5e7eb;
|
|
87
|
+
margin: 1.5rem 0;
|
|
88
|
+
}
|
|
89
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
90
|
+
content: attr(data-placeholder);
|
|
91
|
+
float: left;
|
|
92
|
+
color: #9ca3af;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
height: 0;
|
|
95
|
+
}
|
|
96
|
+
.ProseMirror .selectedCell {
|
|
97
|
+
background-color: #dbeafe;
|
|
98
|
+
}
|
|
99
99
|
`;
|
|
100
100
|
function ToolbarButton({ onClick, isActive = false, disabled = false, title, children, }) {
|
|
101
101
|
return (_jsx("button", { type: "button", onClick: onClick, disabled: disabled, title: title, className: `p-1.5 rounded transition-colors ${isActive
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actuate-media/cms-admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/actuate-media/actuatecms.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react-dom": "^19.2.0",
|
|
56
56
|
"sonner": "^2.0.7",
|
|
57
57
|
"tailwind-merge": "^3.5.0",
|
|
58
|
-
"@actuate-media/cms-core": "0.2.
|
|
58
|
+
"@actuate-media/cms-core": "0.2.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.0.0",
|
package/src/styles/tailwind.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Actuate CMS admin styles.
|
|
3
|
-
* Do NOT re-import Tailwind — consumers already load it in their app.
|
|
4
|
-
* This file only provides the CMS theme variables scoped to .actuate-admin.
|
|
5
|
-
*/
|
|
6
|
-
@import "./theme.css";
|
|
1
|
+
/*
|
|
2
|
+
* Actuate CMS admin styles.
|
|
3
|
+
* Do NOT re-import Tailwind — consumers already load it in their app.
|
|
4
|
+
* This file only provides the CMS theme variables scoped to .actuate-admin.
|
|
5
|
+
*/
|
|
6
|
+
@import "./theme.css";
|
package/src/styles/theme.css
CHANGED
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
@custom-variant dark (&:is(.dark *));
|
|
2
|
-
|
|
3
|
-
.actuate-admin {
|
|
4
|
-
--font-size: 16px;
|
|
5
|
-
--background: #ffffff;
|
|
6
|
-
--foreground: oklch(0.145 0 0);
|
|
7
|
-
--card: #ffffff;
|
|
8
|
-
--card-foreground: oklch(0.145 0 0);
|
|
9
|
-
--popover: oklch(1 0 0);
|
|
10
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
11
|
-
--primary: #030213;
|
|
12
|
-
--primary-foreground: oklch(1 0 0);
|
|
13
|
-
--secondary: oklch(0.95 0.0058 264.53);
|
|
14
|
-
--secondary-foreground: #030213;
|
|
15
|
-
--muted: #ececf0;
|
|
16
|
-
--muted-foreground: #717182;
|
|
17
|
-
--accent: #e9ebef;
|
|
18
|
-
--accent-foreground: #030213;
|
|
19
|
-
--destructive: #d4183d;
|
|
20
|
-
--destructive-foreground: #ffffff;
|
|
21
|
-
--border: rgba(0, 0, 0, 0.1);
|
|
22
|
-
--input: transparent;
|
|
23
|
-
--input-background: #f3f3f5;
|
|
24
|
-
--switch-background: #cbced4;
|
|
25
|
-
--font-weight-medium: 500;
|
|
26
|
-
--font-weight-normal: 400;
|
|
27
|
-
--ring: oklch(0.708 0 0);
|
|
28
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
29
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
30
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
31
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
32
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
33
|
-
--radius: 0.625rem;
|
|
34
|
-
--sidebar: oklch(0.985 0 0);
|
|
35
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
36
|
-
--sidebar-primary: #030213;
|
|
37
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
38
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
39
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
40
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
41
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dark .actuate-admin,
|
|
45
|
-
.actuate-admin.dark {
|
|
46
|
-
--background: oklch(0.145 0 0);
|
|
47
|
-
--foreground: oklch(0.985 0 0);
|
|
48
|
-
--card: oklch(0.185 0 0);
|
|
49
|
-
--card-foreground: oklch(0.985 0 0);
|
|
50
|
-
--popover: oklch(0.185 0 0);
|
|
51
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
52
|
-
--primary: oklch(0.985 0 0);
|
|
53
|
-
--primary-foreground: oklch(0.205 0 0);
|
|
54
|
-
--secondary: oklch(0.269 0 0);
|
|
55
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
56
|
-
--muted: oklch(0.269 0 0);
|
|
57
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
58
|
-
--accent: oklch(0.269 0 0);
|
|
59
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
60
|
-
--destructive: oklch(0.396 0.141 25.723);
|
|
61
|
-
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
62
|
-
--border: oklch(0.269 0 0);
|
|
63
|
-
--input: oklch(0.269 0 0);
|
|
64
|
-
--input-background: oklch(0.205 0 0);
|
|
65
|
-
--switch-background: oklch(0.35 0 0);
|
|
66
|
-
--ring: oklch(0.439 0 0);
|
|
67
|
-
--font-weight-medium: 500;
|
|
68
|
-
--font-weight-normal: 400;
|
|
69
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
70
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
71
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
72
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
73
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
74
|
-
--sidebar: oklch(0.205 0 0);
|
|
75
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
76
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
77
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
78
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
79
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
80
|
-
--sidebar-border: oklch(0.269 0 0);
|
|
81
|
-
--sidebar-ring: oklch(0.439 0 0);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@theme inline {
|
|
85
|
-
--color-background: var(--background);
|
|
86
|
-
--color-foreground: var(--foreground);
|
|
87
|
-
--color-card: var(--card);
|
|
88
|
-
--color-card-foreground: var(--card-foreground);
|
|
89
|
-
--color-popover: var(--popover);
|
|
90
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
91
|
-
--color-primary: var(--primary);
|
|
92
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
93
|
-
--color-secondary: var(--secondary);
|
|
94
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
95
|
-
--color-muted: var(--muted);
|
|
96
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
97
|
-
--color-accent: var(--accent);
|
|
98
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
99
|
-
--color-destructive: var(--destructive);
|
|
100
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
101
|
-
--color-border: var(--border);
|
|
102
|
-
--color-input: var(--input);
|
|
103
|
-
--color-input-background: var(--input-background);
|
|
104
|
-
--color-switch-background: var(--switch-background);
|
|
105
|
-
--color-ring: var(--ring);
|
|
106
|
-
--color-chart-1: var(--chart-1);
|
|
107
|
-
--color-chart-2: var(--chart-2);
|
|
108
|
-
--color-chart-3: var(--chart-3);
|
|
109
|
-
--color-chart-4: var(--chart-4);
|
|
110
|
-
--color-chart-5: var(--chart-5);
|
|
111
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
112
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
113
|
-
--radius-lg: var(--radius);
|
|
114
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
115
|
-
--color-sidebar: var(--sidebar);
|
|
116
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
117
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
118
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
119
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
120
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
121
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
122
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@layer base {
|
|
126
|
-
.actuate-admin * {
|
|
127
|
-
@apply border-border outline-ring/50;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.actuate-admin {
|
|
131
|
-
@apply bg-background text-foreground;
|
|
132
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
133
|
-
font-size: var(--font-size);
|
|
134
|
-
line-height: 1.5;
|
|
135
|
-
isolation: isolate;
|
|
136
|
-
-webkit-font-smoothing: antialiased;
|
|
137
|
-
-moz-osx-font-smoothing: grayscale;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.actuate-admin h1 {
|
|
141
|
-
font-size: var(--text-2xl);
|
|
142
|
-
font-weight: var(--font-weight-medium);
|
|
143
|
-
line-height: 1.5;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.actuate-admin h2 {
|
|
147
|
-
font-size: var(--text-xl);
|
|
148
|
-
font-weight: var(--font-weight-medium);
|
|
149
|
-
line-height: 1.5;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.actuate-admin h3 {
|
|
153
|
-
font-size: var(--text-lg);
|
|
154
|
-
font-weight: var(--font-weight-medium);
|
|
155
|
-
line-height: 1.5;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.actuate-admin h4 {
|
|
159
|
-
font-size: var(--text-base);
|
|
160
|
-
font-weight: var(--font-weight-medium);
|
|
161
|
-
line-height: 1.5;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.actuate-admin label {
|
|
165
|
-
font-size: var(--text-base);
|
|
166
|
-
font-weight: var(--font-weight-medium);
|
|
167
|
-
line-height: 1.5;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.actuate-admin button {
|
|
171
|
-
font-size: var(--text-base);
|
|
172
|
-
font-weight: var(--font-weight-medium);
|
|
173
|
-
line-height: 1.5;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.actuate-admin input {
|
|
177
|
-
font-size: var(--text-base);
|
|
178
|
-
font-weight: var(--font-weight-normal);
|
|
179
|
-
line-height: 1.5;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
1
|
+
@custom-variant dark (&:is(.dark *));
|
|
2
|
+
|
|
3
|
+
.actuate-admin {
|
|
4
|
+
--font-size: 16px;
|
|
5
|
+
--background: #ffffff;
|
|
6
|
+
--foreground: oklch(0.145 0 0);
|
|
7
|
+
--card: #ffffff;
|
|
8
|
+
--card-foreground: oklch(0.145 0 0);
|
|
9
|
+
--popover: oklch(1 0 0);
|
|
10
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
11
|
+
--primary: #030213;
|
|
12
|
+
--primary-foreground: oklch(1 0 0);
|
|
13
|
+
--secondary: oklch(0.95 0.0058 264.53);
|
|
14
|
+
--secondary-foreground: #030213;
|
|
15
|
+
--muted: #ececf0;
|
|
16
|
+
--muted-foreground: #717182;
|
|
17
|
+
--accent: #e9ebef;
|
|
18
|
+
--accent-foreground: #030213;
|
|
19
|
+
--destructive: #d4183d;
|
|
20
|
+
--destructive-foreground: #ffffff;
|
|
21
|
+
--border: rgba(0, 0, 0, 0.1);
|
|
22
|
+
--input: transparent;
|
|
23
|
+
--input-background: #f3f3f5;
|
|
24
|
+
--switch-background: #cbced4;
|
|
25
|
+
--font-weight-medium: 500;
|
|
26
|
+
--font-weight-normal: 400;
|
|
27
|
+
--ring: oklch(0.708 0 0);
|
|
28
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
29
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
30
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
31
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
32
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
33
|
+
--radius: 0.625rem;
|
|
34
|
+
--sidebar: oklch(0.985 0 0);
|
|
35
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
36
|
+
--sidebar-primary: #030213;
|
|
37
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
38
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
39
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
40
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
41
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dark .actuate-admin,
|
|
45
|
+
.actuate-admin.dark {
|
|
46
|
+
--background: oklch(0.145 0 0);
|
|
47
|
+
--foreground: oklch(0.985 0 0);
|
|
48
|
+
--card: oklch(0.185 0 0);
|
|
49
|
+
--card-foreground: oklch(0.985 0 0);
|
|
50
|
+
--popover: oklch(0.185 0 0);
|
|
51
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
52
|
+
--primary: oklch(0.985 0 0);
|
|
53
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
54
|
+
--secondary: oklch(0.269 0 0);
|
|
55
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
56
|
+
--muted: oklch(0.269 0 0);
|
|
57
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
58
|
+
--accent: oklch(0.269 0 0);
|
|
59
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
60
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
61
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
62
|
+
--border: oklch(0.269 0 0);
|
|
63
|
+
--input: oklch(0.269 0 0);
|
|
64
|
+
--input-background: oklch(0.205 0 0);
|
|
65
|
+
--switch-background: oklch(0.35 0 0);
|
|
66
|
+
--ring: oklch(0.439 0 0);
|
|
67
|
+
--font-weight-medium: 500;
|
|
68
|
+
--font-weight-normal: 400;
|
|
69
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
70
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
71
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
72
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
73
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
74
|
+
--sidebar: oklch(0.205 0 0);
|
|
75
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
76
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
77
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
78
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
79
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
80
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
81
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@theme inline {
|
|
85
|
+
--color-background: var(--background);
|
|
86
|
+
--color-foreground: var(--foreground);
|
|
87
|
+
--color-card: var(--card);
|
|
88
|
+
--color-card-foreground: var(--card-foreground);
|
|
89
|
+
--color-popover: var(--popover);
|
|
90
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
91
|
+
--color-primary: var(--primary);
|
|
92
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
93
|
+
--color-secondary: var(--secondary);
|
|
94
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
95
|
+
--color-muted: var(--muted);
|
|
96
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
97
|
+
--color-accent: var(--accent);
|
|
98
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
99
|
+
--color-destructive: var(--destructive);
|
|
100
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
101
|
+
--color-border: var(--border);
|
|
102
|
+
--color-input: var(--input);
|
|
103
|
+
--color-input-background: var(--input-background);
|
|
104
|
+
--color-switch-background: var(--switch-background);
|
|
105
|
+
--color-ring: var(--ring);
|
|
106
|
+
--color-chart-1: var(--chart-1);
|
|
107
|
+
--color-chart-2: var(--chart-2);
|
|
108
|
+
--color-chart-3: var(--chart-3);
|
|
109
|
+
--color-chart-4: var(--chart-4);
|
|
110
|
+
--color-chart-5: var(--chart-5);
|
|
111
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
112
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
113
|
+
--radius-lg: var(--radius);
|
|
114
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
115
|
+
--color-sidebar: var(--sidebar);
|
|
116
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
117
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
118
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
119
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
120
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
121
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
122
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@layer base {
|
|
126
|
+
.actuate-admin * {
|
|
127
|
+
@apply border-border outline-ring/50;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.actuate-admin {
|
|
131
|
+
@apply bg-background text-foreground;
|
|
132
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
133
|
+
font-size: var(--font-size);
|
|
134
|
+
line-height: 1.5;
|
|
135
|
+
isolation: isolate;
|
|
136
|
+
-webkit-font-smoothing: antialiased;
|
|
137
|
+
-moz-osx-font-smoothing: grayscale;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.actuate-admin h1 {
|
|
141
|
+
font-size: var(--text-2xl);
|
|
142
|
+
font-weight: var(--font-weight-medium);
|
|
143
|
+
line-height: 1.5;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.actuate-admin h2 {
|
|
147
|
+
font-size: var(--text-xl);
|
|
148
|
+
font-weight: var(--font-weight-medium);
|
|
149
|
+
line-height: 1.5;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.actuate-admin h3 {
|
|
153
|
+
font-size: var(--text-lg);
|
|
154
|
+
font-weight: var(--font-weight-medium);
|
|
155
|
+
line-height: 1.5;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.actuate-admin h4 {
|
|
159
|
+
font-size: var(--text-base);
|
|
160
|
+
font-weight: var(--font-weight-medium);
|
|
161
|
+
line-height: 1.5;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.actuate-admin label {
|
|
165
|
+
font-size: var(--text-base);
|
|
166
|
+
font-weight: var(--font-weight-medium);
|
|
167
|
+
line-height: 1.5;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.actuate-admin button {
|
|
171
|
+
font-size: var(--text-base);
|
|
172
|
+
font-weight: var(--font-weight-medium);
|
|
173
|
+
line-height: 1.5;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.actuate-admin input {
|
|
177
|
+
font-size: var(--text-base);
|
|
178
|
+
font-weight: var(--font-weight-normal);
|
|
179
|
+
line-height: 1.5;
|
|
180
|
+
}
|
|
181
|
+
}
|