@moduix/react 2.3.0 → 2.5.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.
Files changed (40) hide show
  1. package/dist/components/angle-slider/AngleSlider_module.css +2 -2
  2. package/dist/components/json-tree-view/JsonTreeView.d.ts +8 -0
  3. package/dist/components/json-tree-view/JsonTreeView.js +41 -0
  4. package/dist/components/json-tree-view/JsonTreeView.module.js +6 -0
  5. package/dist/components/json-tree-view/JsonTreeView_module.css +147 -0
  6. package/dist/components/json-tree-view/index.d.ts +1 -0
  7. package/dist/components/json-tree-view/index.js +1 -0
  8. package/dist/components/navigation-menu/NavigationMenu.d.ts +18 -0
  9. package/dist/components/navigation-menu/NavigationMenu.js +139 -0
  10. package/dist/components/navigation-menu/NavigationMenu.module.js +36 -0
  11. package/dist/components/navigation-menu/NavigationMenu_module.css +469 -0
  12. package/dist/components/navigation-menu/index.d.ts +1 -0
  13. package/dist/components/navigation-menu/index.js +1 -0
  14. package/dist/components/sidebar/Sidebar.d.ts +0 -1
  15. package/dist/components/sidebar/Sidebar.js +9 -5
  16. package/dist/components/sidebar/Sidebar_module.css +20 -0
  17. package/dist/components/toc/Toc.d.ts +23 -0
  18. package/dist/components/toc/Toc.js +144 -0
  19. package/dist/components/toc/Toc.module.js +13 -0
  20. package/dist/components/toc/Toc_module.css +184 -0
  21. package/dist/components/toc/index.d.ts +1 -0
  22. package/dist/components/toc/index.js +1 -0
  23. package/dist/presets/contrast.css +63 -129
  24. package/dist/presets/dense.css +63 -129
  25. package/dist/presets/soft.css +62 -128
  26. package/dist/styles/animations.css +5 -7
  27. package/dist/styles/borders.css +2 -2
  28. package/dist/styles/colors.css +79 -163
  29. package/dist/styles/opacity.css +4 -5
  30. package/dist/styles/radius.css +6 -6
  31. package/dist/styles/reset.css +215 -104
  32. package/dist/styles/shadows.css +1 -2
  33. package/dist/styles/sizing.css +5 -2
  34. package/dist/styles/spacing.css +9 -7
  35. package/dist/styles/style.css +12 -12
  36. package/dist/styles/transforms.css +3 -4
  37. package/dist/styles/transitions.css +19 -15
  38. package/dist/styles/typography.css +16 -6
  39. package/dist/styles/z-index.css +2 -2
  40. package/package.json +32 -20
@@ -0,0 +1,144 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Toc, useToc, useTocContext } from "@ark-ui/react/toc";
4
+ import { clsx } from "clsx";
5
+ import { forwardRef } from "react";
6
+ import { normalizeClassName } from "../../internal/normalizeClassName.js";
7
+ import Toc_module from "./Toc.module.js";
8
+ const railBaseOffset = 0;
9
+ const railStep = 12;
10
+ const railBridge = 6;
11
+ const maxRailLevel = 2;
12
+ const getRailOffset = (depth)=>railBaseOffset + Math.min(Math.max(depth - 2, 0), maxRailLevel) * railStep;
13
+ const Toc_useToc = ({ autoScroll = false, ...props })=>useToc({
14
+ autoScroll,
15
+ ...props
16
+ });
17
+ const Toc_useTocContext = useTocContext;
18
+ const Toc_TocRoot = /*#__PURE__*/ forwardRef(function({ autoScroll = false, className, ...props }, ref) {
19
+ return /*#__PURE__*/ jsx(Toc.Root, {
20
+ ref: ref,
21
+ autoScroll: autoScroll,
22
+ "data-slot": "toc-root",
23
+ className: clsx(Toc_module.root, normalizeClassName(className)),
24
+ ...props
25
+ });
26
+ });
27
+ const Toc_TocRootProvider = /*#__PURE__*/ forwardRef(function({ className, style, value, ...props }, ref) {
28
+ return /*#__PURE__*/ jsx(Toc.RootProvider, {
29
+ ref: ref,
30
+ value: value,
31
+ "data-slot": "toc-root-provider",
32
+ className: clsx(Toc_module.root, normalizeClassName(className)),
33
+ style: {
34
+ ...value.getRootProps().style,
35
+ ...style
36
+ },
37
+ ...props
38
+ });
39
+ });
40
+ const Toc_TocContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
+ return /*#__PURE__*/ jsx(Toc.Content, {
42
+ ref: ref,
43
+ "data-slot": "toc-content",
44
+ className: clsx(Toc_module.content, normalizeClassName(className)),
45
+ ...props
46
+ });
47
+ });
48
+ const Toc_TocNav = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
49
+ return /*#__PURE__*/ jsx(Toc.Nav, {
50
+ ref: ref,
51
+ "data-slot": "toc-nav",
52
+ className: clsx(Toc_module.nav, normalizeClassName(className)),
53
+ ...props
54
+ });
55
+ });
56
+ const Toc_TocTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
57
+ return /*#__PURE__*/ jsx(Toc.Title, {
58
+ ref: ref,
59
+ "data-slot": "toc-title",
60
+ className: clsx(Toc_module.title, normalizeClassName(className)),
61
+ ...props
62
+ });
63
+ });
64
+ const Toc_TocList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
65
+ return /*#__PURE__*/ jsx(Toc.List, {
66
+ ref: ref,
67
+ "data-slot": "toc-list",
68
+ className: clsx(Toc_module.list, normalizeClassName(className)),
69
+ ...props
70
+ });
71
+ });
72
+ const Toc_TocItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
73
+ return /*#__PURE__*/ jsx(Toc.Item, {
74
+ ref: ref,
75
+ "data-slot": "toc-item",
76
+ className: clsx(Toc_module.item, normalizeClassName(className)),
77
+ ...props
78
+ });
79
+ });
80
+ const Toc_TocLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
81
+ return /*#__PURE__*/ jsx(Toc.Link, {
82
+ ref: ref,
83
+ "data-slot": "toc-link",
84
+ className: clsx(Toc_module.link, normalizeClassName(className)),
85
+ ...props
86
+ });
87
+ });
88
+ const Toc_TocIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
89
+ return /*#__PURE__*/ jsx(Toc.Indicator, {
90
+ ref: ref,
91
+ "data-slot": "toc-indicator",
92
+ className: clsx(Toc_module.indicator, normalizeClassName(className)),
93
+ ...props
94
+ });
95
+ });
96
+ const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDepth = depth, previousDepth = depth, style, ...props }, ref) {
97
+ const lineOffset = getRailOffset(depth);
98
+ const previousLineOffset = getRailOffset(previousDepth);
99
+ const nextLineOffset = getRailOffset(nextDepth);
100
+ const hasTurn = previousLineOffset !== lineOffset;
101
+ const width = Math.max(previousLineOffset, lineOffset, nextLineOffset) + 2;
102
+ return /*#__PURE__*/ jsxs("svg", {
103
+ ref: ref,
104
+ "aria-hidden": "true",
105
+ "data-slot": "toc-rail",
106
+ className: clsx(Toc_module.rail, normalizeClassName(className)),
107
+ style: {
108
+ width,
109
+ height: lineOffset === nextLineOffset ? `calc(100% + ${railBridge}px + var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5)))` : '100%',
110
+ ...style
111
+ },
112
+ ...props,
113
+ children: [
114
+ hasTurn && /*#__PURE__*/ jsx("path", {
115
+ d: `M ${previousLineOffset + 0.5} 0 C ${previousLineOffset + 0.5} 8 ${lineOffset + 0.5} 4 ${lineOffset + 0.5} ${2 * railBridge}`,
116
+ fill: "none",
117
+ vectorEffect: "non-scaling-stroke",
118
+ stroke: "currentColor"
119
+ }),
120
+ /*#__PURE__*/ jsx("line", {
121
+ x1: lineOffset + 0.5,
122
+ y1: hasTurn ? 2 * railBridge : railBridge,
123
+ x2: lineOffset + 0.5,
124
+ y2: "100%",
125
+ vectorEffect: "non-scaling-stroke",
126
+ stroke: "currentColor"
127
+ })
128
+ ]
129
+ });
130
+ });
131
+ const Toc_Toc = Object.assign(Toc_TocRoot, {
132
+ Root: Toc_TocRoot,
133
+ RootProvider: Toc_TocRootProvider,
134
+ Context: Toc.Context,
135
+ Content: Toc_TocContent,
136
+ Nav: Toc_TocNav,
137
+ Title: Toc_TocTitle,
138
+ List: Toc_TocList,
139
+ Item: Toc_TocItem,
140
+ Link: Toc_TocLink,
141
+ Indicator: Toc_TocIndicator,
142
+ Rail: Toc_TocRail
143
+ });
144
+ export { Toc_Toc as Toc, Toc_useToc as useToc, Toc_useTocContext as useTocContext };
@@ -0,0 +1,13 @@
1
+ import "./Toc_module.css";
2
+ const Toc_module = {
3
+ root: "root-VBggED",
4
+ content: "content-AHeziM",
5
+ nav: "nav-q0EDqs",
6
+ title: "title-RjjR4J",
7
+ list: "list-KZD4Qg",
8
+ indicator: "indicator-Zeit8l",
9
+ item: "item-xFlCTb",
10
+ link: "link-L4LQA0",
11
+ rail: "rail-BwE9eo"
12
+ };
13
+ export default Toc_module;
@@ -0,0 +1,184 @@
1
+ @layer moduix.components {
2
+ .root-VBggED {
3
+ box-sizing: border-box;
4
+ grid-template-columns: minmax(0, 1fr) minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
5
+ var(--moduix-table-of-contents-nav-width, 16rem));
6
+ gap: var(--moduix-table-of-contents-gap, var(--moduix-spacing-6));
7
+ width: 100%;
8
+ min-width: 0;
9
+ color: var(--moduix-table-of-contents-color, var(--moduix-color-foreground));
10
+ --_moduix-toc-indicator-top: var(--top);
11
+ --_moduix-toc-indicator-height: var(--height);
12
+ display: grid;
13
+ }
14
+
15
+ @media (max-width: 48rem) {
16
+ .root-VBggED {
17
+ grid-template-columns: minmax(0, 1fr);
18
+ }
19
+ }
20
+
21
+ .content-AHeziM {
22
+ scroll-behavior: smooth;
23
+ min-width: 0;
24
+ }
25
+
26
+ .content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
27
+ grid-area: 1 / 2;
28
+ }
29
+
30
+ .nav-q0EDqs {
31
+ top: var(--moduix-table-of-contents-nav-top, var(--moduix-spacing-4));
32
+ max-height: var(--moduix-table-of-contents-nav-max-height, calc(100dvh - 2rem));
33
+ padding: var(--moduix-table-of-contents-nav-padding, var(--moduix-spacing-4));
34
+ border: var(--moduix-table-of-contents-nav-border-width, var(--moduix-border-width-sm)) solid
35
+ var(--moduix-table-of-contents-nav-border-color, var(--moduix-color-border));
36
+ border-radius: var(--moduix-table-of-contents-nav-radius, var(--moduix-radius-lg));
37
+ background-color: var(--moduix-table-of-contents-nav-bg, var(--moduix-color-card));
38
+ align-self: start;
39
+ position: sticky;
40
+ overflow: auto;
41
+ }
42
+
43
+ .nav-q0EDqs[data-placement="left"] {
44
+ grid-area: 1 / 1;
45
+ }
46
+
47
+ .root-VBggED:has(.nav-q0EDqs[data-placement="left"]) {
48
+ grid-template-columns: minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
49
+ var(--moduix-table-of-contents-nav-width, 16rem)) minmax(0, 1fr);
50
+ }
51
+
52
+ @media (max-width: 48rem) {
53
+ .root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .nav-q0EDqs[data-placement="left"] {
54
+ grid-area: auto;
55
+ }
56
+
57
+ .root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
58
+ grid-area: auto;
59
+ }
60
+ }
61
+
62
+ .title-RjjR4J {
63
+ margin: 0 0 var(--moduix-table-of-contents-title-margin-bottom, var(--moduix-spacing-2));
64
+ color: var(--moduix-table-of-contents-title-color, var(--moduix-color-foreground));
65
+ font-size: var(--moduix-table-of-contents-title-font-size, var(--moduix-text-sm));
66
+ font-weight: var(--moduix-table-of-contents-title-font-weight, var(--moduix-weight-semibold));
67
+ line-height: var(--moduix-table-of-contents-title-line-height, var(--moduix-line-height-text-sm));
68
+ }
69
+
70
+ .list-KZD4Qg {
71
+ gap: var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5));
72
+ margin: 0;
73
+ padding-block: 0;
74
+ padding-inline-start: var(--moduix-table-of-contents-list-padding-start, var(--moduix-spacing-1));
75
+ list-style: none;
76
+ display: grid;
77
+ position: relative;
78
+ }
79
+
80
+ .list-KZD4Qg:has(.indicator-Zeit8l):before {
81
+ top: var(--moduix-spacing-0-5);
82
+ bottom: var(--moduix-spacing-0-5);
83
+ width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
84
+ border-radius: var(--moduix-radius-full);
85
+ background-color: var(--moduix-table-of-contents-indicator-track-bg, var(--moduix-color-border));
86
+ content: "";
87
+ pointer-events: none;
88
+ position: absolute;
89
+ inset-inline-start: 0;
90
+ }
91
+
92
+ .item-xFlCTb {
93
+ min-width: 0;
94
+ }
95
+
96
+ .link-L4LQA0 {
97
+ min-width: 0;
98
+ padding-block: var(--moduix-table-of-contents-link-padding-y, var(--moduix-spacing-1));
99
+ border-radius: var(--moduix-table-of-contents-link-radius, var(--moduix-radius-sm));
100
+ color: var(--moduix-table-of-contents-link-color, var(--moduix-color-muted-foreground));
101
+ font-size: var(--moduix-table-of-contents-link-font-size, var(--moduix-text-sm));
102
+ line-height: var(--moduix-table-of-contents-link-line-height, var(--moduix-line-height-text-sm));
103
+ text-overflow: ellipsis;
104
+ white-space: nowrap;
105
+ transition: color var(--moduix-transition-default);
106
+ outline: none;
107
+ padding-inline-start: calc(var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1)) +
108
+ var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md)) +
109
+ var(--moduix-spacing-2) +
110
+ max(0px,
111
+ calc((var(--depth) - 2) *
112
+ var(--moduix-table-of-contents-link-indent, var(--moduix-spacing-2)))));
113
+ padding-inline-end: var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1));
114
+ text-decoration: none;
115
+ display: block;
116
+ position: relative;
117
+ overflow: hidden;
118
+ }
119
+
120
+ @media (hover: hover) {
121
+ .link-L4LQA0:hover {
122
+ color: var(--moduix-table-of-contents-link-color-hover, var(--moduix-color-foreground));
123
+ }
124
+ }
125
+
126
+ .link-L4LQA0:focus-visible {
127
+ box-shadow: 0 0 0
128
+ var(--moduix-table-of-contents-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
129
+ var(--moduix-table-of-contents-focus-ring-color, var(--moduix-color-ring));
130
+ }
131
+
132
+ .link-L4LQA0[data-active] {
133
+ color: var(--moduix-table-of-contents-link-color-active, var(--moduix-color-foreground));
134
+ font-weight: var(--moduix-table-of-contents-link-font-weight-active, var(--moduix-weight-medium));
135
+ }
136
+
137
+ .link-L4LQA0[data-active] .rail-BwE9eo {
138
+ color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
139
+ opacity: .7;
140
+ translate: 0 var(--moduix-spacing-0-5);
141
+ }
142
+
143
+ .link-L4LQA0:has(.rail-BwE9eo) {
144
+ overflow: visible;
145
+ }
146
+
147
+ .indicator-Zeit8l {
148
+ z-index: 1;
149
+ top: calc(var(--_moduix-toc-indicator-top) + var(--moduix-spacing-0-5));
150
+ width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
151
+ height: calc(var(--_moduix-toc-indicator-height) - var(--moduix-spacing-1));
152
+ border-radius: var(--moduix-table-of-contents-indicator-radius, var(--moduix-radius-full));
153
+ background-color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
154
+ opacity: .7;
155
+ pointer-events: none;
156
+ transition: top var(--moduix-transition-default),
157
+ height var(--moduix-transition-default);
158
+ inset-inline-start: 0;
159
+ }
160
+
161
+ .rail-BwE9eo {
162
+ top: calc(-1 * var(--moduix-spacing-1-5));
163
+ color: var(--moduix-table-of-contents-rail-color, var(--moduix-color-border));
164
+ pointer-events: none;
165
+ position: absolute;
166
+ inset-inline-start: 0;
167
+ overflow: visible;
168
+ }
169
+
170
+ .rail-BwE9eo :is(line, path) {
171
+ stroke-width: var(--moduix-border-width-sm);
172
+ }
173
+
174
+ @media (prefers-reduced-motion: reduce) {
175
+ .content-AHeziM {
176
+ scroll-behavior: auto;
177
+ }
178
+
179
+ .indicator-Zeit8l {
180
+ transition: none;
181
+ }
182
+ }
183
+ }
184
+
@@ -0,0 +1 @@
1
+ export { Toc, useToc, useTocContext } from './Toc.js';
@@ -0,0 +1 @@
1
+ export { Toc, useToc, useTocContext } from "./Toc.js";
@@ -1,131 +1,65 @@
1
- [data-moduix-theme="contrast"] {
2
- --moduix-background: #fdfdfe;
3
- --moduix-foreground: #050b11;
4
- --moduix-card: #fff;
5
- --moduix-card-foreground: #050b11;
6
- --moduix-popover: #fff;
7
- --moduix-popover-foreground: #050b11;
8
- --moduix-primary: #0054b6;
9
- --moduix-primary-foreground: #fff;
10
- --moduix-secondary: #e5ecf3;
11
- --moduix-secondary-foreground: #09121c;
12
- --moduix-muted: #e3e8ee;
13
- --moduix-muted-foreground: #3b4653;
14
- --moduix-accent: #c9e2f7;
15
- --moduix-accent-foreground: #010e1e;
16
- --moduix-border: #99a6b4;
17
- --moduix-input: #77889b;
18
- --moduix-ring: #0061bf;
19
- --moduix-overlay: #01030661;
20
- --moduix-overlay-foreground: #0103061f;
21
- --moduix-sidebar: #f1f4f7;
22
- --moduix-sidebar-foreground: #050b11;
23
- --moduix-sidebar-primary: #0054b6;
24
- --moduix-sidebar-primary-foreground: #fff;
25
- --moduix-sidebar-accent: #c9e2f7;
26
- --moduix-sidebar-accent-foreground: #010e1e;
27
- --moduix-sidebar-border: #99a6b4;
28
- --moduix-sidebar-ring: #0061bf;
29
- --moduix-radius: .375rem;
30
- --moduix-shadow-sm: 0 1px 2px #0f172a1a;
31
- --moduix-shadow-md: 0 4px 10px #0f172a24;
32
- --moduix-shadow-lg: 0 16px 30px #0f172a2e;
33
- }
1
+ [data-moduix-theme='contrast'] {
2
+ --moduix-background: oklch(0.995 0.001 250);
3
+ --moduix-foreground: oklch(0.145 0.018 250);
4
+ --moduix-card: oklch(1 0 0);
5
+ --moduix-card-foreground: oklch(0.145 0.018 250);
6
+ --moduix-popover: oklch(1 0 0);
7
+ --moduix-popover-foreground: oklch(0.145 0.018 250);
8
+ --moduix-primary: oklch(0.46 0.2 255);
9
+ --moduix-primary-foreground: oklch(1 0 0);
10
+ --moduix-secondary: oklch(0.94 0.012 250);
11
+ --moduix-secondary-foreground: oklch(0.18 0.025 250);
12
+ --moduix-muted: oklch(0.93 0.01 250);
13
+ --moduix-muted-foreground: oklch(0.39 0.026 250);
14
+ --moduix-accent: oklch(0.9 0.04 245);
15
+ --moduix-accent-foreground: oklch(0.16 0.04 250);
16
+ --moduix-border: oklch(0.72 0.025 250);
17
+ --moduix-input: oklch(0.62 0.035 250);
18
+ --moduix-ring: oklch(0.5 0.19 255);
19
+ --moduix-overlay: oklch(0.09 0.018 250 / 0.38);
20
+ --moduix-overlay-foreground: oklch(0.09 0.018 250 / 0.12);
21
+ --moduix-sidebar: oklch(0.965 0.005 250);
22
+ --moduix-sidebar-foreground: oklch(0.145 0.018 250);
23
+ --moduix-sidebar-primary: oklch(0.46 0.2 255);
24
+ --moduix-sidebar-primary-foreground: oklch(1 0 0);
25
+ --moduix-sidebar-accent: oklch(0.9 0.04 245);
26
+ --moduix-sidebar-accent-foreground: oklch(0.16 0.04 250);
27
+ --moduix-sidebar-border: oklch(0.72 0.025 250);
28
+ --moduix-sidebar-ring: oklch(0.5 0.19 255);
29
+ --moduix-radius: 0.375rem;
30
+ --moduix-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.1);
31
+ --moduix-shadow-md: 0 4px 10px rgb(15 23 42 / 0.14);
32
+ --moduix-shadow-lg: 0 16px 30px rgb(15 23 42 / 0.18);
34
33
 
35
- @supports (color: lab(0% 0 0)) {
36
- [data-moduix-theme="contrast"] {
37
- --moduix-background: lab(99.4193% -.111878 -.358546);
38
- --moduix-foreground: lab(2.73044% -.638902 -3.71368);
39
- --moduix-card: lab(100% 0 0);
40
- --moduix-card-foreground: lab(2.73044% -.638902 -3.71368);
41
- --moduix-popover: lab(100% 0 0);
42
- --moduix-popover-foreground: lab(2.73044% -.638902 -3.71368);
43
- --moduix-primary: lab(35.26% 14.138 -68.2948);
44
- --moduix-primary-foreground: lab(100% 0 0);
45
- --moduix-secondary: lab(93.0295% -1.30191 -4.27971);
46
- --moduix-secondary-foreground: lab(5.21333% -1.27424 -7.86241);
47
- --moduix-muted: lab(91.8716% -1.09071 -3.5696);
48
- --moduix-muted-foreground: lab(29.1955% -2.40213 -9.08356);
49
- --moduix-accent: lab(88.3951% -5.08818 -13.5993);
50
- --moduix-accent-foreground: lab(3.58405% -.692964 -11.3385);
51
- --moduix-border: lab(67.4898% -2.55167 -8.83513);
52
- --moduix-input: lab(55.8658% -3.3434 -12.2703);
53
- --moduix-ring: lab(40.2556% 9.34972 -64.9591);
54
- --moduix-overlay: lab(.645069% -.158422 -1.56854 / .38);
55
- --moduix-overlay-foreground: lab(.645069% -.158422 -1.56854 / .12);
56
- --moduix-sidebar: lab(95.9362% -.55337 -1.78927);
57
- --moduix-sidebar-foreground: lab(2.73044% -.638902 -3.71368);
58
- --moduix-sidebar-primary: lab(35.26% 14.138 -68.2948);
59
- --moduix-sidebar-primary-foreground: lab(100% 0 0);
60
- --moduix-sidebar-accent: lab(88.3951% -5.08818 -13.5993);
61
- --moduix-sidebar-accent-foreground: lab(3.58405% -.692964 -11.3385);
62
- --moduix-sidebar-border: lab(67.4898% -2.55167 -8.83513);
63
- --moduix-sidebar-ring: lab(40.2556% 9.34972 -64.9591);
34
+ &[data-moduix-color-scheme='dark'],
35
+ [data-moduix-color-scheme='dark'] {
36
+ color-scheme: dark;
37
+ --moduix-background: oklch(0.11 0.018 250);
38
+ --moduix-foreground: oklch(0.985 0.004 250);
39
+ --moduix-card: oklch(0.155 0.022 250);
40
+ --moduix-card-foreground: oklch(0.985 0.004 250);
41
+ --moduix-popover: oklch(0.155 0.022 250);
42
+ --moduix-popover-foreground: oklch(0.985 0.004 250);
43
+ --moduix-primary: oklch(0.76 0.13 255);
44
+ --moduix-primary-foreground: oklch(0.12 0.02 250);
45
+ --moduix-secondary: oklch(0.24 0.026 250);
46
+ --moduix-secondary-foreground: oklch(0.985 0.004 250);
47
+ --moduix-muted: oklch(0.225 0.024 250);
48
+ --moduix-muted-foreground: oklch(0.76 0.018 250);
49
+ --moduix-accent: oklch(0.3 0.06 250);
50
+ --moduix-accent-foreground: oklch(0.985 0.004 250);
51
+ --moduix-border: oklch(0.8 0.025 250 / 0.34);
52
+ --moduix-input: oklch(0.82 0.025 250 / 0.42);
53
+ --moduix-ring: oklch(0.74 0.13 255);
54
+ --moduix-overlay: oklch(0.04 0.014 250 / 0.84);
55
+ --moduix-overlay-foreground: oklch(0.985 0.004 250 / 0.12);
56
+ --moduix-sidebar: oklch(0.13 0.02 250);
57
+ --moduix-sidebar-foreground: oklch(0.985 0.004 250);
58
+ --moduix-sidebar-primary: oklch(0.76 0.13 255);
59
+ --moduix-sidebar-primary-foreground: oklch(0.12 0.02 250);
60
+ --moduix-sidebar-accent: oklch(0.3 0.06 250);
61
+ --moduix-sidebar-accent-foreground: oklch(0.985 0.004 250);
62
+ --moduix-sidebar-border: oklch(0.8 0.025 250 / 0.34);
63
+ --moduix-sidebar-ring: oklch(0.74 0.13 255);
64
64
  }
65
- }
66
-
67
- [data-moduix-theme="contrast"][data-moduix-color-scheme="dark"], [data-moduix-theme="contrast"] [data-moduix-color-scheme="dark"] {
68
- --lightningcss-light: ;
69
- --lightningcss-dark: initial;
70
- color-scheme: dark;
71
- --moduix-background: #02050a;
72
- --moduix-foreground: #f8fafd;
73
- --moduix-card: #060d15;
74
- --moduix-card-foreground: #f8fafd;
75
- --moduix-popover: #060d15;
76
- --moduix-popover-foreground: #f8fafd;
77
- --moduix-primary: #79b4ff;
78
- --moduix-primary-foreground: #02060d;
79
- --moduix-secondary: #16202b;
80
- --moduix-secondary-foreground: #f8fafd;
81
- --moduix-muted: #131d27;
82
- --moduix-muted-foreground: #a9b2bc;
83
- --moduix-accent: #142f4b;
84
- --moduix-accent-foreground: #f8fafd;
85
- --moduix-border: #b2bfce57;
86
- --moduix-input: #b8c6d46b;
87
- --moduix-ring: #70adfb;
88
- --moduix-overlay: #000001d6;
89
- --moduix-overlay-foreground: #f8fafd1f;
90
- --moduix-sidebar: #03080f;
91
- --moduix-sidebar-foreground: #f8fafd;
92
- --moduix-sidebar-primary: #79b4ff;
93
- --moduix-sidebar-primary-foreground: #02060d;
94
- --moduix-sidebar-accent: #142f4b;
95
- --moduix-sidebar-accent-foreground: #f8fafd;
96
- --moduix-sidebar-border: #b2bfce57;
97
- --moduix-sidebar-ring: #70adfb;
98
- }
99
-
100
- @supports (color: lab(0% 0 0)) {
101
- [data-moduix-theme="contrast"][data-moduix-color-scheme="dark"], [data-moduix-theme="contrast"] [data-moduix-color-scheme="dark"] {
102
- --moduix-background: lab(1.18544% -.300132 -2.243);
103
- --moduix-foreground: lab(98.257% -.443965 -1.43218);
104
- --moduix-card: lab(3.32744% -.818849 -5.30129);
105
- --moduix-card-foreground: lab(98.257% -.443965 -1.43218);
106
- --moduix-popover: lab(3.32744% -.818849 -5.30129);
107
- --moduix-popover-foreground: lab(98.257% -.443965 -1.43218);
108
- --moduix-primary: lab(71.5339% -3.73271 -45.4193);
109
- --moduix-primary-foreground: lab(1.53827% -.389941 -2.97685);
110
- --moduix-secondary: lab(11.7779% -2.05918 -8.97185);
111
- --moduix-secondary-foreground: lab(98.257% -.443965 -1.43218);
112
- --moduix-muted: lab(10.0434% -1.91372 -8.2854);
113
- --moduix-muted-foreground: lab(72.1413% -1.89573 -6.38967);
114
- --moduix-accent: lab(18.5617% -2.88492 -20.3069);
115
- --moduix-accent-foreground: lab(98.257% -.443965 -1.43218);
116
- --moduix-border: lab(76.7711% -2.57739 -8.84726 / .34);
117
- --moduix-input: lab(79.0914% -2.583 -8.84994 / .42);
118
- --moduix-ring: lab(69.2026% -3.5221 -45.3802);
119
- --moduix-overlay: lab(.0542831% .00392646 -.286341 / .84);
120
- --moduix-overlay-foreground: lab(98.257% -.443965 -1.43218 / .12);
121
- --moduix-sidebar: lab(1.95972% -.491969 -3.43974);
122
- --moduix-sidebar-foreground: lab(98.257% -.443965 -1.43218);
123
- --moduix-sidebar-primary: lab(71.5339% -3.73271 -45.4193);
124
- --moduix-sidebar-primary-foreground: lab(1.53827% -.389941 -2.97685);
125
- --moduix-sidebar-accent: lab(18.5617% -2.88492 -20.3069);
126
- --moduix-sidebar-accent-foreground: lab(98.257% -.443965 -1.43218);
127
- --moduix-sidebar-border: lab(76.7711% -2.57739 -8.84726 / .34);
128
- --moduix-sidebar-ring: lab(69.2026% -3.5221 -45.3802);
129
- }
130
- }
131
-
65
+ }