@kopexa/theme 2.0.0 → 2.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.
Files changed (45) hide show
  1. package/dist/chunk-2NA54PNL.mjs +43 -0
  2. package/dist/{chunk-7O57EDVS.mjs → chunk-63C4SFQK.mjs} +20 -10
  3. package/dist/{chunk-XAHAVJUM.mjs → chunk-A3F4CV54.mjs} +8 -1
  4. package/dist/chunk-M4TXKRUU.mjs +7 -0
  5. package/dist/chunk-NUEQ5FLX.mjs +50 -0
  6. package/dist/chunk-WQ446TVH.mjs +39 -0
  7. package/dist/components/callout.d.mts +18 -0
  8. package/dist/components/callout.d.ts +18 -0
  9. package/dist/components/callout.js +8 -1
  10. package/dist/components/callout.mjs +1 -1
  11. package/dist/components/card.d.mts +27 -0
  12. package/dist/components/card.d.ts +27 -0
  13. package/dist/components/card.js +20 -10
  14. package/dist/components/card.mjs +1 -1
  15. package/dist/components/control-extension.d.mts +5 -0
  16. package/dist/components/control-extension.d.ts +5 -0
  17. package/dist/components/control-extension.js +31 -0
  18. package/dist/components/control-extension.mjs +6 -0
  19. package/dist/components/editor-basic.d.mts +21 -4
  20. package/dist/components/editor-basic.d.ts +21 -4
  21. package/dist/components/editor-basic.js +21 -5
  22. package/dist/components/editor-basic.mjs +1 -1
  23. package/dist/components/index.d.mts +3 -1
  24. package/dist/components/index.d.ts +3 -1
  25. package/dist/components/index.js +199 -101
  26. package/dist/components/index.mjs +27 -19
  27. package/dist/components/integration-card.d.mts +3 -3
  28. package/dist/components/integration-card.d.ts +3 -3
  29. package/dist/components/switch.d.mts +62 -0
  30. package/dist/components/switch.d.ts +62 -0
  31. package/dist/components/switch.js +63 -0
  32. package/dist/components/switch.mjs +6 -0
  33. package/dist/components/toolbar.d.mts +57 -0
  34. package/dist/components/toolbar.d.ts +57 -0
  35. package/dist/components/toolbar.js +24 -3
  36. package/dist/components/toolbar.mjs +1 -1
  37. package/dist/editor.css +62 -7
  38. package/dist/index.d.mts +3 -1
  39. package/dist/index.d.ts +3 -1
  40. package/dist/index.js +199 -101
  41. package/dist/index.mjs +27 -19
  42. package/package.json +5 -5
  43. package/dist/chunk-BWB7MWRC.mjs +0 -22
  44. package/dist/chunk-GRPMKEI2.mjs +0 -34
  45. /package/dist/{chunk-UWWO4AVU.mjs → chunk-4I5ASWB3.mjs} +0 -0
@@ -1,10 +1,19 @@
1
- import "../chunk-UWWO4AVU.mjs";
1
+ import "../chunk-4I5ASWB3.mjs";
2
+ import {
3
+ tabs
4
+ } from "../chunk-I6M4S2KZ.mjs";
5
+ import {
6
+ textarea
7
+ } from "../chunk-M3GQ563Q.mjs";
2
8
  import {
3
9
  toolbar
4
- } from "../chunk-BWB7MWRC.mjs";
10
+ } from "../chunk-2NA54PNL.mjs";
5
11
  import {
6
12
  tooltip
7
13
  } from "../chunk-OLYO7UPH.mjs";
14
+ import {
15
+ skeleton
16
+ } from "../chunk-VNQEJU4P.mjs";
8
17
  import {
9
18
  slashDropdownMenu
10
19
  } from "../chunk-URGRCBNW.mjs";
@@ -17,6 +26,9 @@ import {
17
26
  import {
18
27
  standardChip
19
28
  } from "../chunk-7VZZASRG.mjs";
29
+ import {
30
+ switchVariants
31
+ } from "../chunk-WQ446TVH.mjs";
20
32
  import {
21
33
  tabNav
22
34
  } from "../chunk-ZLM6Z3W2.mjs";
@@ -24,11 +36,8 @@ import {
24
36
  table
25
37
  } from "../chunk-YC2FQDBV.mjs";
26
38
  import {
27
- tabs
28
- } from "../chunk-I6M4S2KZ.mjs";
29
- import {
30
- textarea
31
- } from "../chunk-M3GQ563Q.mjs";
39
+ riskBadge
40
+ } from "../chunk-V2J5XG34.mjs";
32
41
  import {
33
42
  riskIndicator
34
43
  } from "../chunk-CZMZHA7U.mjs";
@@ -53,8 +62,8 @@ import {
53
62
  skeletonAvatar
54
63
  } from "../chunk-HHOMDBMZ.mjs";
55
64
  import {
56
- skeleton
57
- } from "../chunk-VNQEJU4P.mjs";
65
+ kbd
66
+ } from "../chunk-BETLBSSF.mjs";
58
67
  import {
59
68
  label
60
69
  } from "../chunk-LMCM4CW2.mjs";
@@ -77,8 +86,8 @@ import {
77
86
  resizable
78
87
  } from "../chunk-RV656WRF.mjs";
79
88
  import {
80
- riskBadge
81
- } from "../chunk-V2J5XG34.mjs";
89
+ frameworkRow
90
+ } from "../chunk-TPFAZH22.mjs";
82
91
  import {
83
92
  heading
84
93
  } from "../chunk-NWKBPO37.mjs";
@@ -95,8 +104,8 @@ import {
95
104
  integrationCard
96
105
  } from "../chunk-QOW6FLZ6.mjs";
97
106
  import {
98
- kbd
99
- } from "../chunk-BETLBSSF.mjs";
107
+ controlExtension
108
+ } from "../chunk-M4TXKRUU.mjs";
100
109
  import {
101
110
  datagrid
102
111
  } from "../chunk-45KIKY4A.mjs";
@@ -114,22 +123,19 @@ import {
114
123
  } from "../chunk-3PCDCW7G.mjs";
115
124
  import {
116
125
  editorBasic
117
- } from "../chunk-GRPMKEI2.mjs";
126
+ } from "../chunk-NUEQ5FLX.mjs";
118
127
  import {
119
128
  editorSpinner
120
129
  } from "../chunk-TVC4THD6.mjs";
121
- import {
122
- frameworkRow
123
- } from "../chunk-TPFAZH22.mjs";
124
130
  import {
125
131
  calendar
126
132
  } from "../chunk-JWF5ABNP.mjs";
127
133
  import {
128
134
  callout
129
- } from "../chunk-XAHAVJUM.mjs";
135
+ } from "../chunk-A3F4CV54.mjs";
130
136
  import {
131
137
  card
132
- } from "../chunk-7O57EDVS.mjs";
138
+ } from "../chunk-63C4SFQK.mjs";
133
139
  import {
134
140
  checkbox
135
141
  } from "../chunk-A4KO7QKC.mjs";
@@ -188,6 +194,7 @@ export {
188
194
  code,
189
195
  colorHighlightButton,
190
196
  command,
197
+ controlExtension,
191
198
  dataTable,
192
199
  datagrid,
193
200
  dialog,
@@ -226,6 +233,7 @@ export {
226
233
  spinner,
227
234
  splitPageLayout,
228
235
  standardChip,
236
+ switchVariants,
229
237
  tabNav,
230
238
  table,
231
239
  tabs,
@@ -9,9 +9,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
9
9
  header?: tailwind_merge.ClassNameValue;
10
10
  footer?: tailwind_merge.ClassNameValue;
11
11
  description?: tailwind_merge.ClassNameValue;
12
+ heading?: tailwind_merge.ClassNameValue;
12
13
  headerContent?: tailwind_merge.ClassNameValue;
13
14
  headingContainer?: tailwind_merge.ClassNameValue;
14
- heading?: tailwind_merge.ClassNameValue;
15
15
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
16
16
  tagsContainer?: tailwind_merge.ClassNameValue;
17
17
  version?: tailwind_merge.ClassNameValue;
@@ -28,9 +28,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
28
28
  header?: tailwind_merge.ClassNameValue;
29
29
  footer?: tailwind_merge.ClassNameValue;
30
30
  description?: tailwind_merge.ClassNameValue;
31
+ heading?: tailwind_merge.ClassNameValue;
31
32
  headerContent?: tailwind_merge.ClassNameValue;
32
33
  headingContainer?: tailwind_merge.ClassNameValue;
33
- heading?: tailwind_merge.ClassNameValue;
34
34
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
35
35
  tagsContainer?: tailwind_merge.ClassNameValue;
36
36
  version?: tailwind_merge.ClassNameValue;
@@ -62,9 +62,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
62
62
  header?: tailwind_merge.ClassNameValue;
63
63
  footer?: tailwind_merge.ClassNameValue;
64
64
  description?: tailwind_merge.ClassNameValue;
65
+ heading?: tailwind_merge.ClassNameValue;
65
66
  headerContent?: tailwind_merge.ClassNameValue;
66
67
  headingContainer?: tailwind_merge.ClassNameValue;
67
- heading?: tailwind_merge.ClassNameValue;
68
68
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
69
69
  tagsContainer?: tailwind_merge.ClassNameValue;
70
70
  version?: tailwind_merge.ClassNameValue;
@@ -9,9 +9,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
9
9
  header?: tailwind_merge.ClassNameValue;
10
10
  footer?: tailwind_merge.ClassNameValue;
11
11
  description?: tailwind_merge.ClassNameValue;
12
+ heading?: tailwind_merge.ClassNameValue;
12
13
  headerContent?: tailwind_merge.ClassNameValue;
13
14
  headingContainer?: tailwind_merge.ClassNameValue;
14
- heading?: tailwind_merge.ClassNameValue;
15
15
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
16
16
  tagsContainer?: tailwind_merge.ClassNameValue;
17
17
  version?: tailwind_merge.ClassNameValue;
@@ -28,9 +28,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
28
28
  header?: tailwind_merge.ClassNameValue;
29
29
  footer?: tailwind_merge.ClassNameValue;
30
30
  description?: tailwind_merge.ClassNameValue;
31
+ heading?: tailwind_merge.ClassNameValue;
31
32
  headerContent?: tailwind_merge.ClassNameValue;
32
33
  headingContainer?: tailwind_merge.ClassNameValue;
33
- heading?: tailwind_merge.ClassNameValue;
34
34
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
35
35
  tagsContainer?: tailwind_merge.ClassNameValue;
36
36
  version?: tailwind_merge.ClassNameValue;
@@ -62,9 +62,9 @@ declare const integrationCard: tailwind_variants.TVReturnType<{
62
62
  header?: tailwind_merge.ClassNameValue;
63
63
  footer?: tailwind_merge.ClassNameValue;
64
64
  description?: tailwind_merge.ClassNameValue;
65
+ heading?: tailwind_merge.ClassNameValue;
65
66
  headerContent?: tailwind_merge.ClassNameValue;
66
67
  headingContainer?: tailwind_merge.ClassNameValue;
67
- heading?: tailwind_merge.ClassNameValue;
68
68
  statusIndicatorContainer?: tailwind_merge.ClassNameValue;
69
69
  tagsContainer?: tailwind_merge.ClassNameValue;
70
70
  version?: tailwind_merge.ClassNameValue;
@@ -0,0 +1,62 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const switchVariants: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ root: string;
8
+ thumb: string;
9
+ };
10
+ md: {
11
+ root: string;
12
+ thumb: string;
13
+ };
14
+ lg: {
15
+ root: string;
16
+ thumb: string;
17
+ };
18
+ };
19
+ }, {
20
+ root: string[];
21
+ thumb: string[];
22
+ }, undefined, {
23
+ size: {
24
+ sm: {
25
+ root: string;
26
+ thumb: string;
27
+ };
28
+ md: {
29
+ root: string;
30
+ thumb: string;
31
+ };
32
+ lg: {
33
+ root: string;
34
+ thumb: string;
35
+ };
36
+ };
37
+ }, {
38
+ root: string[];
39
+ thumb: string[];
40
+ }, tailwind_variants.TVReturnType<{
41
+ size: {
42
+ sm: {
43
+ root: string;
44
+ thumb: string;
45
+ };
46
+ md: {
47
+ root: string;
48
+ thumb: string;
49
+ };
50
+ lg: {
51
+ root: string;
52
+ thumb: string;
53
+ };
54
+ };
55
+ }, {
56
+ root: string[];
57
+ thumb: string[];
58
+ }, undefined, unknown, unknown, undefined>>;
59
+ type SwitchVariantProps = VariantProps<typeof switchVariants>;
60
+ type SwitchSlots = keyof ReturnType<typeof switchVariants>;
61
+
62
+ export { type SwitchSlots, type SwitchVariantProps, switchVariants };
@@ -0,0 +1,62 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const switchVariants: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ sm: {
7
+ root: string;
8
+ thumb: string;
9
+ };
10
+ md: {
11
+ root: string;
12
+ thumb: string;
13
+ };
14
+ lg: {
15
+ root: string;
16
+ thumb: string;
17
+ };
18
+ };
19
+ }, {
20
+ root: string[];
21
+ thumb: string[];
22
+ }, undefined, {
23
+ size: {
24
+ sm: {
25
+ root: string;
26
+ thumb: string;
27
+ };
28
+ md: {
29
+ root: string;
30
+ thumb: string;
31
+ };
32
+ lg: {
33
+ root: string;
34
+ thumb: string;
35
+ };
36
+ };
37
+ }, {
38
+ root: string[];
39
+ thumb: string[];
40
+ }, tailwind_variants.TVReturnType<{
41
+ size: {
42
+ sm: {
43
+ root: string;
44
+ thumb: string;
45
+ };
46
+ md: {
47
+ root: string;
48
+ thumb: string;
49
+ };
50
+ lg: {
51
+ root: string;
52
+ thumb: string;
53
+ };
54
+ };
55
+ }, {
56
+ root: string[];
57
+ thumb: string[];
58
+ }, undefined, unknown, unknown, undefined>>;
59
+ type SwitchVariantProps = VariantProps<typeof switchVariants>;
60
+ type SwitchSlots = keyof ReturnType<typeof switchVariants>;
61
+
62
+ export { type SwitchSlots, type SwitchVariantProps, switchVariants };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/switch.ts
21
+ var switch_exports = {};
22
+ __export(switch_exports, {
23
+ switchVariants: () => switchVariants
24
+ });
25
+ module.exports = __toCommonJS(switch_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var switchVariants = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: [
30
+ "peer data-[checked]:bg-primary data-[unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[unchecked]:bg-input/80",
31
+ "aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20",
32
+ "inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px]",
33
+ "disabled:cursor-not-allowed disabled:opacity-50"
34
+ ],
35
+ thumb: [
36
+ "bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground",
37
+ "pointer-events-none rounded-full ring-0 transition-transform flex items-center justify-center"
38
+ ]
39
+ },
40
+ variants: {
41
+ size: {
42
+ sm: {
43
+ root: "h-4 w-6",
44
+ thumb: "size-3 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
45
+ },
46
+ md: {
47
+ root: "h-5 w-8",
48
+ thumb: "size-4 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
49
+ },
50
+ lg: {
51
+ root: "h-6 w-10",
52
+ thumb: "size-5 data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0"
53
+ }
54
+ }
55
+ },
56
+ defaultVariants: {
57
+ size: "md"
58
+ }
59
+ });
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ switchVariants
63
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ switchVariants
3
+ } from "../chunk-WQ446TVH.mjs";
4
+ export {
5
+ switchVariants
6
+ };
@@ -3,7 +3,26 @@ import { VariantProps } from 'tailwind-variants';
3
3
 
4
4
  declare const toolbar: tailwind_variants.TVReturnType<{
5
5
  color: {
6
+ default: {
7
+ root: string;
8
+ };
9
+ };
10
+ sticky: {
11
+ true: {
12
+ root: string;
13
+ };
14
+ };
15
+ border: {
6
16
  default: string;
17
+ none: string;
18
+ };
19
+ radius: {
20
+ none: {
21
+ root: string;
22
+ };
23
+ md: {
24
+ root: string;
25
+ };
7
26
  };
8
27
  }, {
9
28
  root: string;
@@ -12,7 +31,26 @@ declare const toolbar: tailwind_variants.TVReturnType<{
12
31
  group: string;
13
32
  }, undefined, {
14
33
  color: {
34
+ default: {
35
+ root: string;
36
+ };
37
+ };
38
+ sticky: {
39
+ true: {
40
+ root: string;
41
+ };
42
+ };
43
+ border: {
15
44
  default: string;
45
+ none: string;
46
+ };
47
+ radius: {
48
+ none: {
49
+ root: string;
50
+ };
51
+ md: {
52
+ root: string;
53
+ };
16
54
  };
17
55
  }, {
18
56
  root: string;
@@ -21,7 +59,26 @@ declare const toolbar: tailwind_variants.TVReturnType<{
21
59
  group: string;
22
60
  }, tailwind_variants.TVReturnType<{
23
61
  color: {
62
+ default: {
63
+ root: string;
64
+ };
65
+ };
66
+ sticky: {
67
+ true: {
68
+ root: string;
69
+ };
70
+ };
71
+ border: {
24
72
  default: string;
73
+ none: string;
74
+ };
75
+ radius: {
76
+ none: {
77
+ root: string;
78
+ };
79
+ md: {
80
+ root: string;
81
+ };
25
82
  };
26
83
  }, {
27
84
  root: string;
@@ -3,7 +3,26 @@ import { VariantProps } from 'tailwind-variants';
3
3
 
4
4
  declare const toolbar: tailwind_variants.TVReturnType<{
5
5
  color: {
6
+ default: {
7
+ root: string;
8
+ };
9
+ };
10
+ sticky: {
11
+ true: {
12
+ root: string;
13
+ };
14
+ };
15
+ border: {
6
16
  default: string;
17
+ none: string;
18
+ };
19
+ radius: {
20
+ none: {
21
+ root: string;
22
+ };
23
+ md: {
24
+ root: string;
25
+ };
7
26
  };
8
27
  }, {
9
28
  root: string;
@@ -12,7 +31,26 @@ declare const toolbar: tailwind_variants.TVReturnType<{
12
31
  group: string;
13
32
  }, undefined, {
14
33
  color: {
34
+ default: {
35
+ root: string;
36
+ };
37
+ };
38
+ sticky: {
39
+ true: {
40
+ root: string;
41
+ };
42
+ };
43
+ border: {
15
44
  default: string;
45
+ none: string;
46
+ };
47
+ radius: {
48
+ none: {
49
+ root: string;
50
+ };
51
+ md: {
52
+ root: string;
53
+ };
16
54
  };
17
55
  }, {
18
56
  root: string;
@@ -21,7 +59,26 @@ declare const toolbar: tailwind_variants.TVReturnType<{
21
59
  group: string;
22
60
  }, tailwind_variants.TVReturnType<{
23
61
  color: {
62
+ default: {
63
+ root: string;
64
+ };
65
+ };
66
+ sticky: {
67
+ true: {
68
+ root: string;
69
+ };
70
+ };
71
+ border: {
24
72
  default: string;
73
+ none: string;
74
+ };
75
+ radius: {
76
+ none: {
77
+ root: string;
78
+ };
79
+ md: {
80
+ root: string;
81
+ };
25
82
  };
26
83
  }, {
27
84
  root: string;
@@ -26,18 +26,39 @@ module.exports = __toCommonJS(toolbar_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var toolbar = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
- root: "flex items-center gap-2.5 rounded-md p-1",
29
+ root: "flex items-center gap-2.5 p-1",
30
30
  button: "shrink-0",
31
31
  separator: "bg-border h-6 w-px shrink-0",
32
32
  group: "flex items-center gap-1"
33
33
  },
34
34
  variants: {
35
35
  color: {
36
- default: "bg-popover outline-border shadow-xs outline"
36
+ default: {
37
+ root: "bg-popover"
38
+ }
39
+ },
40
+ sticky: {
41
+ true: {
42
+ root: "sticky top-0 z-10"
43
+ }
44
+ },
45
+ border: {
46
+ default: "outline-border shadow-xs outline",
47
+ none: ""
48
+ },
49
+ radius: {
50
+ none: {
51
+ root: "rounded-none"
52
+ },
53
+ md: {
54
+ root: "rounded-md"
55
+ }
37
56
  }
38
57
  },
39
58
  defaultVariants: {
40
- color: "default"
59
+ border: "default",
60
+ color: "default",
61
+ radius: "md"
41
62
  }
42
63
  });
43
64
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toolbar
3
- } from "../chunk-BWB7MWRC.mjs";
3
+ } from "../chunk-2NA54PNL.mjs";
4
4
  export {
5
5
  toolbar
6
6
  };
package/dist/editor.css CHANGED
@@ -24,8 +24,8 @@
24
24
  --tt-inline-code-bg-color: var(--color-default-100);
25
25
  --tt-inline-code-text-color: var(--color-default-700);
26
26
  --tt-inline-code-border-color: var(--color-default-200);
27
- --tt-codeblock-bg: var(--color-default-50);
28
- --tt-codeblock-text: var(--color-default-800);
27
+ --tt-codeblock-bg: var(--color-default-950);
28
+ --tt-codeblock-text: var(--color-default-200);
29
29
  --tt-codeblock-border: var(--color-default-200);
30
30
 
31
31
  --tt-color-highlight-gray: var(--color-default-500);
@@ -266,25 +266,25 @@
266
266
  h1 {
267
267
  font-size: 1.5em;
268
268
  font-weight: 700;
269
- margin-top: 3em;
269
+ margin-top: 2em;
270
270
  }
271
271
 
272
272
  h2 {
273
273
  font-size: 1.25em;
274
274
  font-weight: 700;
275
- margin-top: 2.5em;
275
+ margin-top: 1.5em;
276
276
  }
277
277
 
278
278
  h3 {
279
279
  font-size: 1.125em;
280
280
  font-weight: 600;
281
- margin-top: 2em;
281
+ margin-top: 1em;
282
282
  }
283
283
 
284
284
  h4 {
285
285
  font-size: 1em;
286
286
  font-weight: 600;
287
- margin-top: 2em;
287
+ margin-top: 1em;
288
288
  }
289
289
  }
290
290
 
@@ -517,13 +517,68 @@
517
517
  font-size: 1rem;
518
518
  border-radius: 6px/0.375rem;
519
519
 
520
+ white-space: pre;
521
+
520
522
  code {
521
523
  background-color: transparent;
522
524
  border: none;
523
525
  border-radius: 0;
524
526
  -webkit-text-fill-color: inherit;
525
527
  color: inherit;
526
- }
528
+ white-space: inherit;
529
+ }
530
+
531
+ /* Code styling */
532
+ .hljs-comment,
533
+ .hljs-quote {
534
+ color: #616161;
535
+ }
536
+
537
+ .hljs-variable,
538
+ .hljs-template-variable,
539
+ .hljs-attribute,
540
+ .hljs-tag,
541
+ .hljs-regexp,
542
+ .hljs-link,
543
+ .hljs-name,
544
+ .hljs-selector-id,
545
+ .hljs-selector-class {
546
+ color: #f98181;
547
+ }
548
+
549
+ .hljs-number,
550
+ .hljs-meta,
551
+ .hljs-built_in,
552
+ .hljs-builtin-name,
553
+ .hljs-literal,
554
+ .hljs-type,
555
+ .hljs-params {
556
+ color: #fbbc88;
557
+ }
558
+
559
+ .hljs-string,
560
+ .hljs-symbol,
561
+ .hljs-bullet {
562
+ color: #b9f18d;
563
+ }
564
+
565
+ .hljs-title,
566
+ .hljs-section {
567
+ color: #faf594;
568
+ }
569
+
570
+ .hljs-keyword,
571
+ .hljs-selector-tag {
572
+ color: #70cff8;
573
+ }
574
+
575
+ .hljs-emphasis {
576
+ font-style: italic;
577
+ }
578
+
579
+ .hljs-strong {
580
+ font-weight: 700;
581
+ }
527
582
  }
528
583
  }
529
584