earthnut 0.2.3-alpha.1 → 0.2.3-alpha.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.
Files changed (117) hide show
  1. package/README.md +9 -9
  2. package/client.mjs +2 -2
  3. package/client.mjs.map +1 -0
  4. package/layoutUtil.mjs +2 -2
  5. package/layoutUtil.mjs.map +1 -0
  6. package/package.json +14 -14
  7. package/server.mjs +2 -2
  8. package/server.mjs.map +1 -0
  9. package/styles/common.css +1 -508
  10. package/styles/common.scss +57 -2
  11. package/styles/mixin-color-dark.scss +150 -0
  12. package/styles/mixin-color-light.scss +148 -0
  13. package/styles/reset.scss +2 -2
  14. package/styles/respond.scss +1 -1
  15. package/styles/root.scss +68 -76
  16. package/styles/vars-color.scss +289 -0
  17. package/styles/vars-size.scss +2 -0
  18. package/type/components/ThemeContext/index.d.ts +11 -0
  19. package/type/components/ThemeContext/types.d.ts +26 -0
  20. package/type/components/button/button.d.ts +10 -0
  21. package/{components → type/components}/button/index.d.ts +1 -1
  22. package/{components → type/components}/image/index.d.ts +2 -3
  23. package/{components → type/components}/image/types.d.ts +3 -2
  24. package/{components → type/components}/image/useSrcChange.d.ts +1 -1
  25. package/type/components/layout/content.d.ts +17 -0
  26. package/{components → type/components}/layout/footer.d.ts +3 -4
  27. package/{components → type/components}/layout/get-value.d.ts +1 -1
  28. package/{components → type/components}/layout/header.d.ts +3 -4
  29. package/{components → type/components}/layout/index.d.ts +1 -1
  30. package/type/components/layout/is-fragment.d.ts +9 -0
  31. package/{components → type/components}/layout/layout.d.ts +4 -5
  32. package/{components/layout/sideBar.d.ts → type/components/layout/sidebar.d.ts} +3 -4
  33. package/{components → type/components}/layout/types.d.ts +9 -8
  34. package/type/components/marquee/MarqueeEle.d.ts +15 -0
  35. package/{components → type/components}/marquee/index.d.ts +1 -1
  36. package/{components → type/components}/marquee/type.d.ts +1 -1
  37. package/{components → type/components}/menu/index.d.ts +1 -1
  38. package/{components → type/components}/menu/menu.d.ts +1 -1
  39. package/type/components/ripples/Content.d.ts +8 -0
  40. package/{components → type/components}/ripples/LazyRippleEle.d.ts +3 -4
  41. package/{components → type/components}/ripples/RipplesEle.d.ts +3 -4
  42. package/{components → type/components}/ripples/index.d.ts +1 -1
  43. package/{components → type/components}/ripples/types.d.ts +1 -1
  44. package/{components → type/components}/ripples/useOptionUpdate.d.ts +3 -2
  45. package/type/components/shared/EnLayoutContent/index.d.ts +19 -0
  46. package/{components → type/components}/shared/EnLayoutContent/types.d.ts +1 -1
  47. package/type/components/switch/SwitchContainer.d.ts +7 -0
  48. package/type/components/switch/SwitchContent.d.ts +10 -0
  49. package/type/components/switch/SwitchLabel.d.ts +9 -0
  50. package/type/components/switch/index.d.ts +14 -0
  51. package/type/customHooks/use-xcn/index.d.ts +14 -0
  52. package/{customHooks → type/customHooks}/useAnimationFrame.d.ts +1 -1
  53. package/{customHooks → type/customHooks}/useInputIsComposing.d.ts +6 -5
  54. package/{customHooks → type/customHooks}/useRipples/buildBackground/create-background-color.d.ts +1 -1
  55. package/{customHooks → type/customHooks}/useRipples/buildBackground/create-linear-gradient.d.ts +1 -1
  56. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/_createImageData.d.ts +1 -1
  57. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/circleDataList.d.ts +1 -1
  58. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +1 -1
  59. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createDefault.d.ts +1 -1
  60. package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/index.d.ts +1 -1
  61. package/{customHooks → type/customHooks}/useRipples/buildBackground/load-image.d.ts +1 -1
  62. package/{customHooks → type/customHooks}/useRipples/buildBackground/run-side.d.ts +1 -1
  63. package/{customHooks → type/customHooks}/useRipples/buildBackground/type.d.ts +1 -1
  64. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/bind-image.d.ts +1 -1
  65. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-canvas-element.d.ts +1 -1
  66. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-image-by-src.d.ts +1 -1
  67. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/get-background-style.d.ts +1 -1
  68. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/hide-css-background.d.ts +1 -1
  69. package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/restore-css-background.d.ts +1 -1
  70. package/{customHooks → type/customHooks}/useRipples/callback/can-side.d.ts +1 -1
  71. package/{customHooks → type/customHooks}/useRipples/callback/destroy.d.ts +1 -1
  72. package/{customHooks → type/customHooks}/useRipples/callback/drop.d.ts +1 -1
  73. package/{customHooks → type/customHooks}/useRipples/callback/extract-url.d.ts +1 -1
  74. package/{customHooks → type/customHooks}/useRipples/callback/fade.d.ts +1 -1
  75. package/{customHooks → type/customHooks}/useRipples/callback/get-new-image.d.ts +1 -1
  76. package/{customHooks → type/customHooks}/useRipples/callback/reload-background.d.ts +1 -1
  77. package/{customHooks → type/customHooks}/useRipples/callback/scale.d.ts +1 -1
  78. package/{customHooks → type/customHooks}/useRipples/index.d.ts +3 -2
  79. package/{customHooks → type/customHooks}/useRipples/init/index.d.ts +1 -1
  80. package/{customHooks → type/customHooks}/useRipples/init/initEvent.d.ts +1 -1
  81. package/{customHooks → type/customHooks}/useRipples/init/initShaders.d.ts +1 -1
  82. package/{customHooks → type/customHooks}/useRipples/init/initTexture.d.ts +1 -1
  83. package/{customHooks → type/customHooks}/useRipples/render/computeTextureBoundaries.d.ts +1 -1
  84. package/{customHooks → type/customHooks}/useRipples/render/draw.d.ts +1 -1
  85. package/{customHooks → type/customHooks}/useRipples/render/drawQuad.d.ts +1 -1
  86. package/{customHooks → type/customHooks}/useRipples/render/dropAtPointer.d.ts +1 -1
  87. package/{customHooks → type/customHooks}/useRipples/render/index.d.ts +1 -1
  88. package/{customHooks → type/customHooks}/useRipples/render/swapBufferIndices.d.ts +1 -1
  89. package/{customHooks → type/customHooks}/useRipples/render/update.d.ts +1 -1
  90. package/{customHooks → type/customHooks}/useRipples/rippersData/defaultData.d.ts +1 -1
  91. package/{customHooks → type/customHooks}/useRipples/rippersData/fadeData.d.ts +1 -1
  92. package/{customHooks → type/customHooks}/useRipples/rippersData/index.d.ts +1 -1
  93. package/{customHooks → type/customHooks}/useRipples/rippersData/loadConfig.d.ts +1 -1
  94. package/{customHooks → type/customHooks}/useRipples/rippersData/renderData.d.ts +1 -1
  95. package/{customHooks → type/customHooks}/useRipples/rippersData/useOptions.d.ts +1 -1
  96. package/{customHooks → type/customHooks}/useRipples/rippersData/vertexSource.d.ts +1 -1
  97. package/{customHooks → type/customHooks}/useRipples/ripple.html.d.ts +1 -1
  98. package/{customHooks → type/customHooks}/useRipples/ripplesClass.d.ts +1 -1
  99. package/{customHooks → type/customHooks}/useRipples/tools.d.ts +1 -1
  100. package/{customHooks → type/customHooks}/useRipples/types.d.ts +3 -2
  101. package/{customHooks → type/customHooks}/useRipples/use-lazy-ripple.d.ts +4 -3
  102. package/{customHooks → type/customHooks}/useTimeId.d.ts +1 -1
  103. package/type/dog.d.ts +8 -0
  104. package/{index.client.d.ts → type/index.client.d.ts} +4 -1
  105. package/{index.d.ts → type/index.d.ts} +1 -1
  106. package/{index.server.d.ts → type/index.server.d.ts} +1 -1
  107. package/type/storage/main-logic .d.ts +26 -0
  108. package/type/storage/storage-store.d.ts +14 -0
  109. package/type/utilities/cookie.d.ts +20 -0
  110. package/type/utilities/sys.d.ts +41 -0
  111. package/components/button/button.d.ts +0 -11
  112. package/components/layout/content.d.ts +0 -17
  113. package/components/marquee/MarqueeEle.d.ts +0 -15
  114. package/components/ripples/Content.d.ts +0 -8
  115. package/components/shared/EnLayoutContent/index.d.ts +0 -19
  116. package/customHooks/use-xcn/index.d.ts +0 -14
  117. package/styles/vars.scss +0 -248
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/rippersData/vertexSource.d.ts
3
+ * enr@type/customHooks/useRipples/rippersData/vertexSource.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/ripple.html.d.ts
3
+ * enr@type/customHooks/useRipples/ripple.html.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/ripplesClass.d.ts
3
+ * enr@type/customHooks/useRipples/ripplesClass.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/tools.d.ts
3
+ * enr@type/customHooks/useRipples/tools.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/types.d.ts
3
+ * enr@type/customHooks/useRipples/types.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -12,6 +12,7 @@
12
12
  * @CreateDate 周二 12/17/2024
13
13
  * @Description BackgroundRipples 的类型声明文件
14
14
  ****************************************************************************/
15
+ import { HTMLAttributes } from 'react';
15
16
  export type ImageCrossOrigin = 'anonymous' | 'use-credentials' | 'no-cors';
16
17
  /**
17
18
  *
@@ -34,7 +35,7 @@ export type ImageCrossOrigin = 'anonymous' | 'use-credentials' | 'no-cors';
34
35
  * - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
35
36
  *
36
37
  */
37
- export type BackgroundRipplesProps = React.HTMLAttributes<HTMLDivElement> & {
38
+ export type BackgroundRipplesProps = HTMLAttributes<HTMLDivElement> & {
38
39
  /**
39
40
  * ## 可设定涟漪的参数
40
41
  *
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useRipples/use-lazy-ripple.d.ts
3
+ * enr@type/customHooks/useRipples/use-lazy-ripple.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
7
+ import { RefObject } from 'react';
7
8
  import { Ripples } from './ripplesClass';
8
9
  import { RipplesOptions } from './types';
9
10
  /** 动态加载包含的自定义的钩子 */
10
- export declare function useLazyRipples(canvas: React.RefObject<HTMLCanvasElement | null>, option?: RipplesOptions): {
11
- ripples: React.RefObject<Ripples | null>;
11
+ export declare function useLazyRipples(canvas: RefObject<HTMLCanvasElement | null>, option?: RipplesOptions): {
12
+ ripples: RefObject<Ripples | null>;
12
13
  isLoading: boolean;
13
14
  error: unknown;
14
15
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@customHooks/useTimeId.d.ts
3
+ * enr@type/customHooks/useTimeId.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
package/type/dog.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license MIT
3
+ * enr@type/dog.d.ts
4
+ * Copyright (c) 2025 earthnut.dev
5
+ * 请在项目根参看详细许可证明
6
+ */
7
+ /** 开发环境执行,该方法在 env === 'production' 时通过 babel 和 webpack 过滤移除 */
8
+ export declare const dog: import("@qqi/log").DevLog;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@index.client.d.ts
3
+ * enr@type/index.client.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -15,3 +15,6 @@ export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } f
15
15
  export type { LayoutProps, LayoutSideBarProps, LayoutHeaderProps, LayoutFooterProps, } from './components/layout';
16
16
  export { Image, Image as EnImage } from './components/image';
17
17
  export type { EnImageProps } from './components/image';
18
+ export { useColorMode, ThemeColorModeProvider } from './components/ThemeContext';
19
+ export type { ColorMode, ThemeContextType, ThemeColorModeProviderProps, } from './components/ThemeContext/types';
20
+ export { Switch, Switch as EnSwitch } from './components/switch';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@index.d.ts
3
+ * enr@type/index.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license MIT
3
- * earthnut@index.server.d.ts
3
+ * enr@type/index.server.d.ts
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license MIT
3
+ * enr@type/storage/main-logic .d.ts
4
+ * Copyright (c) 2025 earthnut.dev
5
+ * 请在项目根参看详细许可证明
6
+ */
7
+ declare function set(key: string, value: unknown): void;
8
+ declare function get<T>(key: string): T;
9
+ declare function getAndDel<T = boolean>(key: string): T;
10
+ declare function del(key: string): void;
11
+ declare function clear(): void;
12
+ declare function setSession(key: string, value: unknown): void;
13
+ declare function getSession<T>(key: string): T;
14
+ declare function delSession(key: string): void;
15
+ export { del as delStorage, set as setStorage, get as getStorage, getAndDel as getStorageAndDel, clear as clearStorage, setSession as setSessionStorage, getSession as getSessionStorage, delSession as delSessionStorage, };
16
+ declare const storageMainLogic: {
17
+ del: typeof del;
18
+ set: typeof set;
19
+ get: typeof get;
20
+ getAndDel: typeof getAndDel;
21
+ clear: typeof clear;
22
+ setSession: typeof setSession;
23
+ getSession: typeof getSession;
24
+ delSession: typeof delSession;
25
+ };
26
+ export { storageMainLogic };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license MIT
3
+ * enr@type/storage/storage-store.d.ts
4
+ * Copyright (c) 2025 earthnut.dev
5
+ * 请在项目根参看详细许可证明
6
+ */
7
+ import { ColorMode } from 'components/ThemeContext/types';
8
+ /** storage 的数据仓库 */
9
+ export declare const storageStore: {
10
+ /** 获取本地的数据中的主题值 */
11
+ theme: ColorMode | "";
12
+ /** 获取本地储存的 token */
13
+ token: string;
14
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license MIT
3
+ * enr@type/utilities/cookie.d.ts
4
+ * Copyright (c) 2025 earthnut.dev
5
+ * 请在项目根参看详细许可证明
6
+ */
7
+ export declare const manageCookie: {
8
+ getItem(keyItem: string): string | null;
9
+ setItem(option: {
10
+ keyItem: string;
11
+ value: string;
12
+ end?: string | number | Date;
13
+ path?: string;
14
+ domain?: string;
15
+ secure?: string;
16
+ }): boolean;
17
+ deleteItem(key: string, path: string, domain: string): false | undefined;
18
+ exist(key: string): boolean;
19
+ keys(): string[];
20
+ };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license MIT
3
+ * enr@type/utilities/sys.d.ts
4
+ * Copyright (c) 2025 earthnut.dev
5
+ * 请在项目根参看详细许可证明
6
+ */
7
+ declare class SysInfo {
8
+ #private;
9
+ /**
10
+ * 设备振动
11
+ **/
12
+ vibrate(): void;
13
+ /**
14
+ * 分享网站
15
+ * @param [url='https://letmiseesee.pages.dev'] 网页地址 默认值 https://letmiseesee.pages.dev
16
+ * @param [text=''] text 文本
17
+ * @param [title='随笔记余生'] title 网站标题,缺省值
18
+ * @description
19
+ **/
20
+ share(url?: string, text?: string, title?: string): void;
21
+ /**
22
+ * 当前是否为手机设备
23
+ **/
24
+ isPhone(): boolean;
25
+ /**
26
+ * 当前设备是否为小平设备
27
+ **/
28
+ get isSmallScreen(): 'small' | 'middle' | 'large';
29
+ /**
30
+ * 是否为暗黑模式
31
+ **/
32
+ get isDark(): boolean;
33
+ /**
34
+ * 设备当前的旋转状态
35
+ *
36
+ * 只返回是否旋转
37
+ **/
38
+ get isOrientation(): boolean;
39
+ }
40
+ export declare const sysInfo: SysInfo;
41
+ export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@components/button/button.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- import React from 'react';
8
- /**
9
- * 按钮
10
- */
11
- export default function Button(): React.JSX.Element;
@@ -1,17 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@components/layout/content.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- import React from 'react';
8
- /**
9
- *
10
- * layout content
11
- *
12
- *
13
- * @param {string} className 布局的类名
14
- *
15
- */
16
- declare const InternalValueC: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
- export { InternalValueC };
@@ -1,15 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@components/marquee/MarqueeEle.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- import React from 'react';
8
- import { MarqueeProps } from './type';
9
- import './index.scss';
10
- /**
11
- * 一个跑马灯一样的东东
12
- *
13
- */
14
- declare const MarqueeEle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & MarqueeProps & React.RefAttributes<HTMLDivElement>>;
15
- export { MarqueeEle };
@@ -1,8 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@components/ripples/Content.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- /** 内容组件 */
8
- export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,19 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@components/shared/EnLayoutContent/index.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- import { EnLayoutContentProps } from './types';
8
- /** 创建带样式的组件 */
9
- export declare const LayoutContentContainer: import("styled-components").StyledComponent<"main", any, {}, never>;
10
- /** 带样式的组件 */
11
- export declare const LayoutFooterContent: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- /** 带样式的头部 */
13
- export declare const LayoutHeaderContent: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- /** 带样式的组件 */
15
- export declare const LayoutSideBarContent: import("styled-components").StyledComponent<"div", any, {}, never>;
16
- /** 内容区域容器 */
17
- export declare const LayoutContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
18
- /** 元始的外壳 */
19
- export declare const EnLayoutContent: import("styled-components").StyledComponent<"div", any, EnLayoutContentProps, never>;
@@ -1,14 +0,0 @@
1
- /**
2
- * @license MIT
3
- * earthnut@customHooks/use-xcn/index.d.ts
4
- * Copyright (c) 2025 earthnut.dev
5
- * 请在项目根参看详细许可证明
6
- */
7
- /** 其实这并不是一个自定义钩子 */
8
- import { EnTypeofClassNameItem, EnXcn } from 'xcn';
9
- type EnClassName = 'en-flex' | 'en-flex-row' | 'en-flex-row-reverse' | 'en-flex-column' | 'en-flex-column-reverse' | 'en-flex-wrap' | 'en-full-container' | 'en-center' | 'en-dust' | 'en-text-in-one-line' | 'en-text-in-one-line-hide' | 'en-text-in-two-line' | 'en-color-text' | 'en-bg-red' | 'en-float-left' | 'en-float' | 'en-float-right' | 'en-clear-float' | 'en-clear' | 'en-loading' | 'en-text-center' | 'en-text-right' | 'eb-text-small' | 'en-relative' | 'en-user-select-text' | 'en-cursor-pointer';
10
- /** 在 xcn 中使用 earthnut 样式类 */
11
- export declare function _en<T extends EnClassName[]>(...classNameList: T): EnXcn<{
12
- [K in keyof T]: EnTypeofClassNameItem<T[K]>;
13
- }>;
14
- export {};
package/styles/vars.scss DELETED
@@ -1,248 +0,0 @@
1
- $en-color-neutral-light-70: #f9f9fb;
2
- $en-color-neutral-light-80: #f2f1f1;
3
- $en-color-neutral-light-90: #ebeaea;
4
-
5
- $en-color-neutral-10: #e2e2e2;
6
- $en-color-neutral-20: #cdcdcd;
7
- $en-color-neutral-30: #b3b3b3;
8
- $en-color-neutral-40: #9e9e9e;
9
- $en-color-neutral-50: #858585;
10
- $en-color-neutral-60: #696969;
11
- $en-color-neutral-70: #4e4e4e;
12
- $en-color-neutral-75: #313131;
13
- $en-color-neutral-80: #343434;
14
- $en-color-neutral-90: #1b1b1b;
15
-
16
- $en-color-light-theme-blue: #0085f2;
17
- $en-color-light-theme-green: #009a46;
18
- $en-color-light-theme-yellow: #928700;
19
- $en-color-light-theme-red: #d30038;
20
- $en-color-light-theme-violet: #9b65ff;
21
- $en-color-light-theme-pink: #d00058;
22
-
23
- $en-color-dark-theme-blue: $en-color-light-theme-blue;
24
- $en-color-dark-theme-green: $en-color-light-theme-green;
25
- $en-color-dark-theme-yellow: $en-color-light-theme-yellow;
26
- $en-color-dark-theme-red: $en-color-light-theme-red;
27
- $en-color-dark-theme-violet: $en-color-light-theme-violet;
28
- $en-color-dark-theme-pink: $en-color-light-theme-pink;
29
-
30
- $en-color-light-theme-blue-10: #dce2f2;
31
- $en-color-light-theme-blue-20: #c1cff1;
32
- $en-color-light-theme-blue-30: #8cb4ff;
33
- $en-color-light-theme-blue-40: #5e9eff;
34
- $en-color-light-theme-blue-50: #0085f2;
35
- $en-color-light-theme-blue-60: #0069c2;
36
- $en-color-light-theme-blue-70: #004d92;
37
- $en-color-light-theme-blue-80: #003465;
38
- $en-color-light-theme-blue-90: #001b3a;
39
-
40
- $en-color-dark-theme-blue-10: $en-color-light-theme-blue-10;
41
- $en-color-dark-theme-blue-20: $en-color-light-theme-blue-20;
42
- $en-color-dark-theme-blue-30: $en-color-light-theme-blue-30;
43
- $en-color-dark-theme-blue-40: $en-color-light-theme-blue-40;
44
- $en-color-dark-theme-blue-50: $en-color-light-theme-blue-50;
45
- $en-color-dark-theme-blue-60: $en-color-light-theme-blue-60;
46
- $en-color-dark-theme-blue-70: $en-color-light-theme-blue-70;
47
- $en-color-dark-theme-blue-80: $en-color-light-theme-blue-80;
48
- $en-color-dark-theme-blue-90: $en-color-light-theme-blue-90;
49
-
50
- $en-color-light-theme-green-10: #a9f3ba;
51
- $en-color-light-theme-green-20: #73e693;
52
- $en-color-light-theme-green-30: #00d061;
53
- $en-color-light-theme-green-40: #00b755;
54
- $en-color-light-theme-green-50: #009a46;
55
- $en-color-light-theme-green-60: #007936;
56
- $en-color-light-theme-green-70: #005a26;
57
- $en-color-light-theme-green-80: #003d18;
58
- $en-color-light-theme-green-90: #00210a;
59
-
60
- $en-color-dark-theme-green-10: $en-color-light-theme-green-10;
61
- $en-color-dark-theme-green-20: $en-color-light-theme-green-20;
62
- $en-color-dark-theme-green-30: $en-color-light-theme-green-30;
63
- $en-color-dark-theme-green-40: $en-color-light-theme-green-40;
64
- $en-color-dark-theme-green-50: $en-color-light-theme-green-50;
65
- $en-color-dark-theme-green-60: $en-color-light-theme-green-60;
66
- $en-color-dark-theme-green-70: $en-color-light-theme-green-70;
67
- $en-color-dark-theme-green-80: $en-color-light-theme-green-80;
68
- $en-color-dark-theme-green-90: $en-color-light-theme-green-90;
69
-
70
- $en-color-light-theme-yellow-10: #f0e498;
71
- $en-color-light-theme-yellow-20: #dfd172;
72
- $en-color-light-theme-yellow-30: #c7b700;
73
- $en-color-light-theme-yellow-40: #afa100;
74
- $en-color-light-theme-yellow-50: #938700;
75
- $en-color-light-theme-yellow-60: #746a00;
76
- $en-color-light-theme-yellow-70: #564e00;
77
- $en-color-light-theme-yellow-80: #3a3500;
78
- $en-color-light-theme-yellow-90: #1f1c00;
79
-
80
- $en-color-dark-theme-yellow-10: $en-color-light-theme-yellow-10;
81
- $en-color-dark-theme-yellow-20: $en-color-light-theme-yellow-20;
82
- $en-color-dark-theme-yellow-30: $en-color-light-theme-yellow-30;
83
- $en-color-dark-theme-yellow-40: $en-color-light-theme-yellow-40;
84
- $en-color-dark-theme-yellow-50: $en-color-light-theme-yellow-50;
85
- $en-color-dark-theme-yellow-60: $en-color-light-theme-yellow-60;
86
- $en-color-dark-theme-yellow-70: $en-color-light-theme-yellow-70;
87
- $en-color-dark-theme-yellow-80: $en-color-light-theme-yellow-80;
88
- $en-color-dark-theme-yellow-90: $en-color-light-theme-yellow-90;
89
-
90
- $en-color-light-theme-red-10: #ffd9dc;
91
- $en-color-light-theme-red-20: #ffc0c4;
92
- $en-color-light-theme-red-30: #ff97a0;
93
- $en-color-light-theme-red-40: #ff707f;
94
- $en-color-light-theme-red-50: #ff2a51;
95
- $en-color-light-theme-red-60: #d30038;
96
- $en-color-light-theme-red-70: #9e0027;
97
- $en-color-light-theme-red-80: #6f0019;
98
- $en-color-light-theme-red-90: #40000a;
99
-
100
- $en-color-dark-theme-red-10: $en-color-light-theme-red-10;
101
- $en-color-dark-theme-red-20: $en-color-light-theme-red-20;
102
- $en-color-dark-theme-red-30: $en-color-light-theme-red-30;
103
- $en-color-dark-theme-red-40: $en-color-light-theme-red-40;
104
- $en-color-dark-theme-red-50: $en-color-light-theme-red-50;
105
- $en-color-dark-theme-red-60: $en-color-light-theme-red-60;
106
- $en-color-dark-theme-red-70: $en-color-light-theme-red-70;
107
- $en-color-dark-theme-red-80: $en-color-light-theme-red-80;
108
- $en-color-dark-theme-red-90: $en-color-light-theme-red-90;
109
-
110
- $en-color-light-theme-violet-10: #e6deff;
111
- $en-color-light-theme-violet-20: #d4c5ff;
112
- $en-color-light-theme-violet-30: #bea5ff;
113
- $en-color-light-theme-violet-40: #ae8aff;
114
- $en-color-light-theme-violet-50: #9b65ff;
115
- $en-color-light-theme-violet-60: #872bff;
116
- $en-color-light-theme-violet-70: #6800cf;
117
- $en-color-light-theme-violet-80: #480091;
118
- $en-color-light-theme-violet-90: #280056;
119
-
120
- $en-color-dark-theme-violet-10: $en-color-light-theme-violet-10;
121
- $en-color-dark-theme-violet-20: $en-color-light-theme-violet-20;
122
- $en-color-dark-theme-violet-30: $en-color-light-theme-violet-30;
123
- $en-color-dark-theme-violet-40: $en-color-light-theme-violet-40;
124
- $en-color-dark-theme-violet-50: $en-color-light-theme-violet-50;
125
- $en-color-dark-theme-violet-60: $en-color-light-theme-violet-60;
126
- $en-color-dark-theme-violet-70: $en-color-light-theme-violet-70;
127
- $en-color-dark-theme-violet-80: $en-color-light-theme-violet-80;
128
- $en-color-dark-theme-violet-90: $en-color-light-theme-violet-90;
129
-
130
- $en-color-light-theme-pink-10: #ffd9df;
131
- $en-color-light-theme-pink-20: #ffbbc8;
132
- $en-color-light-theme-pink-30: #ff93aa;
133
- $en-color-light-theme-pink-40: #ff6d91;
134
- $en-color-light-theme-pink-50: #ff1f72;
135
- $en-color-light-theme-pink-60: #d00058;
136
- $en-color-light-theme-pink-70: #9e0041;
137
- $en-color-light-theme-pink-80: #6d002b;
138
- $en-color-light-theme-pink-90: #3f0015;
139
-
140
- $en-color-dark-theme-pink-10: $en-color-light-theme-pink-10;
141
- $en-color-dark-theme-pink-20: $en-color-light-theme-pink-20;
142
- $en-color-dark-theme-pink-30: $en-color-light-theme-pink-30;
143
- $en-color-dark-theme-pink-40: $en-color-light-theme-pink-40;
144
- $en-color-dark-theme-pink-50: $en-color-light-theme-pink-50;
145
- $en-color-dark-theme-pink-60: $en-color-light-theme-pink-60;
146
- $en-color-dark-theme-pink-70: $en-color-light-theme-pink-70;
147
- $en-color-dark-theme-pink-80: $en-color-light-theme-pink-80;
148
- $en-color-dark-theme-pink-90: $en-color-light-theme-pink-90;
149
-
150
- $en-color-black: #000;
151
- $en-color-white: #fff;
152
- $en-color-ads: #00d0aa;
153
-
154
- $en-theme-light-text-primary: $en-color-neutral-90;
155
- $en-theme-light-text-secondary: $en-color-neutral-70;
156
- $en-theme-light-text-active: #{$en-color-neutral-50};
157
- $en-theme-light-text-inactive: #{$en-color-neutral-40}a6;
158
- $en-theme-light-text-link: $en-color-light-theme-blue-60;
159
- $en-theme-light-text-invert: $en-color-white;
160
- $en-theme-light-text-muted: #6f6f6f;
161
- $en-theme-light-background-primary: $en-color-white;
162
- $en-theme-light-background-secondary: $en-color-neutral-light-70;
163
- $en-theme-light-background-tertiary: #ebeaea;
164
- $en-theme-light-background-toc-active: $en-color-neutral-light-90;
165
- $en-theme-light-border-primary: $en-color-neutral-20;
166
- $en-theme-light-border-secondary: $en-color-neutral-20;
167
- $en-theme-light-border-success: $en-color-light-theme-green-20;
168
- $en-theme-light-button-primary-default: $en-color-neutral-90;
169
- $en-theme-light-button-primary-hover: $en-color-neutral-60;
170
- $en-theme-light-button-primary-active: $en-color-neutral-40;
171
- $en-theme-light-button-primary-inactive: $en-color-neutral-90;
172
- $en-theme-light-button-secondary-default: $en-color-white;
173
- $en-theme-light-button-secondary-hover: $en-color-neutral-20;
174
- $en-theme-light-button-secondary-active: $en-color-neutral-20;
175
- $en-theme-light-button-secondary-inactive: $en-color-neutral-light-70;
176
- $en-theme-light-button-secondary-border-focus: $en-color-light-theme-blue-50;
177
- $en-theme-light-button-secondary-border-red: $en-color-light-theme-red-30;
178
- $en-theme-light-button-secondary-border-red-focus: $en-color-light-theme-red-10;
179
- $en-theme-light-icon-primary: $en-color-neutral-60;
180
- $en-theme-light-icon-secondary: $en-color-neutral-30;
181
- $en-theme-light-icon-information: $en-color-light-theme-blue-50;
182
- $en-theme-light-icon-warning: $en-color-light-theme-red-50;
183
- $en-theme-light-icon-critical: $en-color-light-theme-red-60;
184
- $en-theme-light-icon-success: $en-color-light-theme-green-60;
185
- $en-theme-light-accent-primary: $en-color-light-theme-blue-50;
186
- $en-theme-light-accent-secondary: $en-color-light-theme-blue-50;
187
- $en-theme-light-field-focus-border: $en-color-light-theme-blue-50;
188
- $en-theme-light-focus-01: 0 0 0 3px rgba(0, 144, 237, 0.4);
189
- $en-theme-light-shadow-01: 0 1px 2px rgba(43, 42, 51, 0.05);
190
- $en-theme-light-shadow-02: 0 1px 6px rgba(43, 42, 51, 0.1);
191
-
192
- $en-theme-light-code-token-tag: $en-color-light-theme-blue-60;
193
- $en-theme-light-code-token-punctuation: $en-color-neutral-50;
194
- $en-theme-light-code-token-attribute-name: $en-color-light-theme-red-60;
195
- $en-theme-light-code-token-attribute-value: $en-color-light-theme-green-60;
196
- $en-theme-light-code-token-comment: $en-color-neutral-50;
197
- $en-theme-light-code-token-default: $en-color-neutral-90;
198
- $en-theme-light-code-token-selector: $en-color-light-theme-violet-60;
199
- $en-theme-light-code-background-inline: $en-color-neutral-light-80;
200
- $en-theme-light-code-background-block: $en-color-neutral-light-80;
201
-
202
- $en-theme-dark-text-primary: $en-color-white;
203
- $en-theme-dark-text-secondary: $en-color-neutral-20;
204
- $en-theme-dark-text-active: #{$en-color-neutral-50};
205
- $en-theme-dark-text-inactive: #{$en-color-neutral-20}a6;
206
- $en-theme-dark-text-link: $en-color-dark-theme-blue-30;
207
- $en-theme-dark-text-invert: $en-color-neutral-90;
208
- $en-theme-dark-text-muted: #858585;
209
- $en-theme-dark-background-primary: $en-color-neutral-90;
210
- $en-theme-dark-background-secondary: $en-color-neutral-75;
211
- $en-theme-dark-background-tertiary: #858585;
212
- $en-theme-dark-background-toc-active: $en-color-neutral-80;
213
- $en-theme-dark-border-primary: $en-color-neutral-50;
214
- $en-theme-dark-border-secondary: $en-color-neutral-60;
215
- $en-theme-dark-border-success: $en-color-dark-theme-green-20;
216
- $en-theme-dark-button-primary-default: $en-color-white;
217
- $en-theme-dark-button-primary-hover: $en-color-neutral-20;
218
- $en-theme-dark-button-primary-active: $en-color-neutral-40;
219
- $en-theme-dark-button-primary-inactive: $en-color-white;
220
- $en-theme-dark-button-secondary-default: $en-color-neutral-70;
221
- $en-theme-dark-button-secondary-hover: $en-color-neutral-50;
222
- $en-theme-dark-button-secondary-active: $en-color-neutral-40;
223
- $en-theme-dark-button-secondary-inactive: $en-color-neutral-70;
224
- $en-theme-dark-shadow-01: 0 1px 2px rgba(251, 251, 254, 0.2);
225
- $en-theme-dark-shadow-02: 0 1px 6px rgba(251, 251, 254, 0.2);
226
- $en-theme-dark-icon-primary: $en-color-white;
227
- $en-theme-dark-icon-secondary: $en-color-neutral-30;
228
- $en-theme-dark-icon-information: $en-color-dark-theme-blue-40;
229
- $en-theme-dark-icon-warning: $en-color-dark-theme-yellow-40;
230
- $en-theme-dark-icon-critical: $en-color-dark-theme-red-40;
231
- $en-theme-dark-icon-success: $en-color-dark-theme-green-40;
232
- $en-theme-dark-accent-primary: $en-color-dark-theme-blue-40;
233
- $en-theme-dark-accent-secondary: $en-color-dark-theme-blue-40;
234
- $en-theme-dark-field-focus-border: $en-color-white;
235
- $en-theme-dark-focus-01: 0 0 0 3px rgba(251, 251, 254, 0.5);
236
-
237
- $en-theme-dark-code-token-tag: $en-color-dark-theme-blue-20;
238
- $en-theme-dark-code-token-punctuation: $en-color-neutral-30;
239
- $en-theme-dark-code-token-attribute-name: $en-color-dark-theme-red-30;
240
- $en-theme-dark-code-token-attribute-value: $en-color-dark-theme-green-30;
241
- $en-theme-dark-code-token-comment: $en-color-neutral-30;
242
- $en-theme-dark-code-token-default: $en-color-white;
243
- $en-theme-dark-code-token-selector: $en-color-dark-theme-violet-30;
244
- $en-theme-dark-code-background-inline: $en-color-neutral-80;
245
- $en-theme-dark-code-background-block: $en-color-neutral-80;
246
-
247
- // screen is to small for sticky placement
248
- $screen-height-place-limit: 44rem;