@haklex/rich-style-token 0.0.31 → 0.0.33
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/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +62 -25
- package/dist/portal-theme.d.ts +4 -1
- package/dist/portal-theme.d.ts.map +1 -1
- package/dist/rich-style-token.css +1 -0
- package/dist/themes.d.ts +7 -1
- package/dist/themes.d.ts.map +1 -1
- package/dist/vars.css.d.ts +5 -0
- package/dist/vars.css.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { ThemeTokens } from './create-theme-style';
|
|
2
2
|
export { createThemeStyle } from './create-theme-style';
|
|
3
|
+
export type { PortalTheme } from './portal-theme';
|
|
3
4
|
export { PortalThemeProvider, PortalThemeWrapper, usePortalTheme, } from './portal-theme';
|
|
4
5
|
export { articleLayout, commentLayout, darkColors, fonts, lightArticleColors, lightCommentColors, noteLayout, } from './themes';
|
|
5
|
-
export { vars } from './vars.css';
|
|
6
|
+
export { articleTheme, commentTheme, noteTheme, vars } from './vars.css';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,GACX,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,GACX,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useMemo, use } from "react";
|
|
3
|
-
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", bgTertiary: "var(--rc-bg-tertiary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontFamilySerif: "var(--rc-font-family-serif)", fontMono: "var(--rc-font-mono)", fontSize2xs: "var(--rc-font-size-2xs)", fontSizeXs: "var(--rc-font-size-xs)", fontSizeSm: "var(--rc-font-size-sm)", fontSizeMd: "var(--rc-font-size-md)", fontSizeLg: "var(--rc-font-size-lg)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)", lineHeight: "var(--rc-line-height)", lineHeightTight: "var(--rc-line-height-tight)" }, borderRadius: { sm: "var(--rc-radius-sm)", md: "var(--rc-radius-md)", lg: "var(--rc-radius-lg)" }, layout: { maxWidth: "var(--rc-max-width)" } };
|
|
3
|
+
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", bgTertiary: "var(--rc-bg-tertiary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", hrBorder: "var(--rc-hr-border)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontFamilySans: "var(--rc-font-family-sans)", fontFamilySerif: "var(--rc-font-family-serif)", fontMono: "var(--rc-font-mono)", fontSize2xs: "var(--rc-font-size-2xs)", fontSizeXs: "var(--rc-font-size-xs)", fontSizeSm: "var(--rc-font-size-sm)", fontSizeMd: "var(--rc-font-size-md)", fontSizeLg: "var(--rc-font-size-lg)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)", lineHeight: "var(--rc-line-height)", lineHeightTight: "var(--rc-line-height-tight)" }, borderRadius: { sm: "var(--rc-radius-sm)", md: "var(--rc-radius-md)", lg: "var(--rc-radius-lg)" }, layout: { maxWidth: "var(--rc-max-width)" } };
|
|
4
|
+
var articleTheme = "yglj5t0";
|
|
5
|
+
var noteTheme = "yglj5t1";
|
|
6
|
+
var commentTheme = "yglj5t2";
|
|
4
7
|
function extractVarName(cssVarRef) {
|
|
5
8
|
const match = cssVarRef.match(/^var\((.+)\)$/);
|
|
6
9
|
return match ? match[1] : cssVarRef;
|
|
@@ -22,16 +25,18 @@ function createThemeStyle(tokens) {
|
|
|
22
25
|
return style;
|
|
23
26
|
}
|
|
24
27
|
const PortalThemeContext = createContext({
|
|
25
|
-
className: ""
|
|
28
|
+
className: "",
|
|
29
|
+
theme: "light"
|
|
26
30
|
});
|
|
27
31
|
function PortalThemeProvider({
|
|
28
32
|
className,
|
|
33
|
+
theme,
|
|
29
34
|
children
|
|
30
35
|
}) {
|
|
31
36
|
return /* @__PURE__ */ jsx(
|
|
32
37
|
PortalThemeContext.Provider,
|
|
33
38
|
{
|
|
34
|
-
value: useMemo(() => ({ className }), [className]),
|
|
39
|
+
value: useMemo(() => ({ className, theme }), [className, theme]),
|
|
35
40
|
children
|
|
36
41
|
}
|
|
37
42
|
);
|
|
@@ -40,28 +45,43 @@ function usePortalTheme() {
|
|
|
40
45
|
return use(PortalThemeContext);
|
|
41
46
|
}
|
|
42
47
|
function PortalThemeWrapper({ children }) {
|
|
43
|
-
const { className } = usePortalTheme();
|
|
48
|
+
const { className, theme } = usePortalTheme();
|
|
44
49
|
if (!className) return children;
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
style: { display: "contents" },
|
|
54
|
+
className,
|
|
55
|
+
"data-theme": theme,
|
|
56
|
+
children
|
|
57
|
+
}
|
|
58
|
+
);
|
|
46
59
|
}
|
|
47
60
|
const fonts = {
|
|
48
|
-
|
|
61
|
+
fontFamilySans: '"PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji',
|
|
49
62
|
fontFamilySerif: '"Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif',
|
|
50
63
|
fontMono: '"SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace'
|
|
51
64
|
};
|
|
52
65
|
const lightArticleColors = {
|
|
53
66
|
text: "#000",
|
|
54
|
-
textSecondary: "#
|
|
67
|
+
textSecondary: "#18181b",
|
|
68
|
+
// zinc-900
|
|
55
69
|
bg: "#ffffff",
|
|
56
70
|
bgSecondary: "#fafafa",
|
|
57
|
-
|
|
58
|
-
|
|
71
|
+
// zinc-50
|
|
72
|
+
bgTertiary: "#f4f4f5",
|
|
73
|
+
// zinc-100
|
|
74
|
+
border: "#f4f4f5",
|
|
75
|
+
// zinc-100 - lighter, less prominent
|
|
59
76
|
accent: "#2563eb",
|
|
60
77
|
accentLight: "#2563eb20",
|
|
61
78
|
link: "#2563eb",
|
|
62
|
-
codeText: "#
|
|
63
|
-
|
|
64
|
-
|
|
79
|
+
codeText: "#3f3f46",
|
|
80
|
+
// zinc-700
|
|
81
|
+
codeBg: "#f4f4f5",
|
|
82
|
+
// zinc-100
|
|
83
|
+
hrBorder: "#e4e4e7",
|
|
84
|
+
// zinc-200 - one step darker than border
|
|
65
85
|
quoteBorder: "#2563eb",
|
|
66
86
|
quoteBg: "#eff6ff",
|
|
67
87
|
alertInfo: "#006bb7",
|
|
@@ -72,22 +92,32 @@ const lightArticleColors = {
|
|
|
72
92
|
};
|
|
73
93
|
const lightCommentColors = {
|
|
74
94
|
...lightArticleColors,
|
|
75
|
-
quoteBorder: "#
|
|
76
|
-
|
|
95
|
+
quoteBorder: "#a1a1aa",
|
|
96
|
+
// zinc-400
|
|
97
|
+
quoteBg: "#fafafa"
|
|
98
|
+
// zinc-50
|
|
77
99
|
};
|
|
78
100
|
const darkColors = {
|
|
79
|
-
text: "#
|
|
80
|
-
textSecondary: "#
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
101
|
+
text: "#fafafa",
|
|
102
|
+
textSecondary: "#a1a1aa",
|
|
103
|
+
// zinc-400
|
|
104
|
+
bg: "#09090b",
|
|
105
|
+
// zinc-950
|
|
106
|
+
bgSecondary: "#18181b",
|
|
107
|
+
// zinc-900
|
|
108
|
+
bgTertiary: "#27272a",
|
|
109
|
+
// zinc-800
|
|
110
|
+
border: "#27272a",
|
|
111
|
+
// zinc-800 - lighter/less prominent
|
|
85
112
|
accent: "#60a5fa",
|
|
86
113
|
accentLight: "#60a5fa20",
|
|
87
114
|
link: "#60a5fa",
|
|
88
|
-
codeText: "#
|
|
89
|
-
|
|
90
|
-
|
|
115
|
+
codeText: "#e4e4e7",
|
|
116
|
+
// zinc-200
|
|
117
|
+
codeBg: "#27272a",
|
|
118
|
+
// zinc-800
|
|
119
|
+
hrBorder: "#27272a",
|
|
120
|
+
// zinc-800 - same as border
|
|
91
121
|
quoteBorder: "#60a5fa",
|
|
92
122
|
quoteBg: "#1e3a5f",
|
|
93
123
|
alertInfo: "#7db9e5",
|
|
@@ -105,6 +135,7 @@ const sharedSpacing = {
|
|
|
105
135
|
};
|
|
106
136
|
const sharedBorderRadius = { sm: "4px", md: "8px", lg: "12px" };
|
|
107
137
|
const baseTypography = {
|
|
138
|
+
fontFamilySans: fonts.fontFamilySans,
|
|
108
139
|
fontFamilySerif: fonts.fontFamilySerif,
|
|
109
140
|
fontMono: fonts.fontMono,
|
|
110
141
|
fontSize2xs: "0.625em",
|
|
@@ -120,7 +151,10 @@ const baseTypography = {
|
|
|
120
151
|
const articleLayout = {
|
|
121
152
|
layout: { maxWidth: "700px" },
|
|
122
153
|
spacing: sharedSpacing,
|
|
123
|
-
typography: {
|
|
154
|
+
typography: {
|
|
155
|
+
...baseTypography,
|
|
156
|
+
fontFamily: fonts.fontFamilySans
|
|
157
|
+
},
|
|
124
158
|
borderRadius: sharedBorderRadius
|
|
125
159
|
};
|
|
126
160
|
const noteLayout = {
|
|
@@ -138,7 +172,7 @@ const commentLayout = {
|
|
|
138
172
|
spacing: { xs: "2px", sm: "4px", md: "10px", lg: "16px", xl: "20px" },
|
|
139
173
|
typography: {
|
|
140
174
|
...baseTypography,
|
|
141
|
-
fontFamily: fonts.
|
|
175
|
+
fontFamily: fonts.fontFamilySans,
|
|
142
176
|
fontSizeBase: "14px",
|
|
143
177
|
fontSizeSmall: "12px",
|
|
144
178
|
lineHeight: "1.5",
|
|
@@ -150,13 +184,16 @@ export {
|
|
|
150
184
|
PortalThemeProvider,
|
|
151
185
|
PortalThemeWrapper,
|
|
152
186
|
articleLayout,
|
|
187
|
+
articleTheme,
|
|
153
188
|
commentLayout,
|
|
189
|
+
commentTheme,
|
|
154
190
|
createThemeStyle,
|
|
155
191
|
darkColors,
|
|
156
192
|
fonts,
|
|
157
193
|
lightArticleColors,
|
|
158
194
|
lightCommentColors,
|
|
159
195
|
noteLayout,
|
|
196
|
+
noteTheme,
|
|
160
197
|
usePortalTheme,
|
|
161
198
|
vars
|
|
162
199
|
};
|
package/dist/portal-theme.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
export type PortalTheme = 'light' | 'dark';
|
|
2
3
|
type PortalThemeContextType = {
|
|
3
4
|
className: string;
|
|
5
|
+
theme: PortalTheme;
|
|
4
6
|
};
|
|
5
|
-
export declare function PortalThemeProvider({ className, children, }: {
|
|
7
|
+
export declare function PortalThemeProvider({ className, theme, children, }: {
|
|
6
8
|
className: string;
|
|
9
|
+
theme: PortalTheme;
|
|
7
10
|
children?: ReactNode;
|
|
8
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export declare function usePortalTheme(): PortalThemeContextType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal-theme.d.ts","sourceRoot":"","sources":["../src/portal-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"portal-theme.d.ts","sourceRoot":"","sources":["../src/portal-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAE1C,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AAOD,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,KAAK,EACL,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,2CAQA;AAED,wBAAgB,cAAc,2BAE7B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2UAYvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--rc-text: #000;--rc-text-secondary: #18181b;--rc-bg: #ffffff;--rc-bg-secondary: #fafafa;--rc-bg-tertiary: #f4f4f5;--rc-border: #f4f4f5;--rc-accent: #2563eb;--rc-accent-light: #2563eb20;--rc-link: #2563eb;--rc-code-text: #3f3f46;--rc-code-bg: #f4f4f5;--rc-hr-border: #e4e4e7;--rc-quote-border: #2563eb;--rc-quote-bg: #eff6ff;--rc-alert-info: #006bb7;--rc-alert-warning: #cc5500;--rc-alert-tip: #11cc00;--rc-alert-caution: #cc0011;--rc-alert-important: #5500cc;--rc-max-width: 700px;--rc-space-xs: 4px;--rc-space-sm: 8px;--rc-space-md: 16px;--rc-space-lg: 24px;--rc-space-xl: 32px;--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;--rc-font-size-2xs: .625em;--rc-font-size-xs: .75em;--rc-font-size-sm: .8125em;--rc-font-size-md: .875em;--rc-font-size-lg: 1.25em;--rc-font-size-base: 16px;--rc-font-size-small: 14px;--rc-line-height: 1.7;--rc-line-height-tight: 1.4;--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-radius-sm: 4px;--rc-radius-md: 8px;--rc-radius-lg: 12px}:root.dark{--rc-text: #fafafa;--rc-text-secondary: #a1a1aa;--rc-bg: #09090b;--rc-bg-secondary: #18181b;--rc-bg-tertiary: #27272a;--rc-border: #27272a;--rc-accent: #60a5fa;--rc-accent-light: #60a5fa20;--rc-link: #60a5fa;--rc-code-text: #e4e4e7;--rc-code-bg: #27272a;--rc-hr-border: #27272a;--rc-quote-border: #60a5fa;--rc-quote-bg: #1e3a5f;--rc-alert-info: #7db9e5;--rc-alert-warning: #da864a;--rc-alert-tip: #54da48;--rc-alert-caution: #e16973;--rc-alert-important: #9966e0;--rc-max-width: 700px;--rc-space-xs: 4px;--rc-space-sm: 8px;--rc-space-md: 16px;--rc-space-lg: 24px;--rc-space-xl: 32px;--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;--rc-font-size-2xs: .625em;--rc-font-size-xs: .75em;--rc-font-size-sm: .8125em;--rc-font-size-md: .875em;--rc-font-size-lg: 1.25em;--rc-font-size-base: 16px;--rc-font-size-small: 14px;--rc-line-height: 1.7;--rc-line-height-tight: 1.4;--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-radius-sm: 4px;--rc-radius-md: 8px;--rc-radius-lg: 12px}.yglj5t0{--rc-text: #000;--rc-text-secondary: #18181b;--rc-bg: #ffffff;--rc-bg-secondary: #fafafa;--rc-bg-tertiary: #f4f4f5;--rc-border: #f4f4f5;--rc-accent: #2563eb;--rc-accent-light: #2563eb20;--rc-link: #2563eb;--rc-code-text: #3f3f46;--rc-code-bg: #f4f4f5;--rc-hr-border: #e4e4e7;--rc-quote-border: #2563eb;--rc-quote-bg: #eff6ff;--rc-alert-info: #006bb7;--rc-alert-warning: #cc5500;--rc-alert-tip: #11cc00;--rc-alert-caution: #cc0011;--rc-alert-important: #5500cc;--rc-max-width: 700px;--rc-space-xs: 4px;--rc-space-sm: 8px;--rc-space-md: 16px;--rc-space-lg: 24px;--rc-space-xl: 32px;--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;--rc-font-size-2xs: .625em;--rc-font-size-xs: .75em;--rc-font-size-sm: .8125em;--rc-font-size-md: .875em;--rc-font-size-lg: 1.25em;--rc-font-size-base: 16px;--rc-font-size-small: 14px;--rc-line-height: 1.7;--rc-line-height-tight: 1.4;--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-radius-sm: 4px;--rc-radius-md: 8px;--rc-radius-lg: 12px}.yglj5t1{--rc-text: #000;--rc-text-secondary: #18181b;--rc-bg: #ffffff;--rc-bg-secondary: #fafafa;--rc-bg-tertiary: #f4f4f5;--rc-border: #f4f4f5;--rc-accent: #2563eb;--rc-accent-light: #2563eb20;--rc-link: #2563eb;--rc-code-text: #3f3f46;--rc-code-bg: #f4f4f5;--rc-hr-border: #e4e4e7;--rc-quote-border: #2563eb;--rc-quote-bg: #eff6ff;--rc-alert-info: #006bb7;--rc-alert-warning: #cc5500;--rc-alert-tip: #11cc00;--rc-alert-caution: #cc0011;--rc-alert-important: #5500cc;--rc-max-width: 700px;--rc-space-xs: 4px;--rc-space-sm: 8px;--rc-space-md: 16px;--rc-space-lg: 24px;--rc-space-xl: 32px;--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;--rc-font-size-2xs: .625em;--rc-font-size-xs: .75em;--rc-font-size-sm: .8125em;--rc-font-size-md: .875em;--rc-font-size-lg: 1.25em;--rc-font-size-base: 16px;--rc-font-size-small: 14px;--rc-line-height: 1.8;--rc-line-height-tight: 1.4;--rc-font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-radius-sm: 4px;--rc-radius-md: 8px;--rc-radius-lg: 12px}.yglj5t2{--rc-text: #000;--rc-text-secondary: #18181b;--rc-bg: #ffffff;--rc-bg-secondary: #fafafa;--rc-bg-tertiary: #f4f4f5;--rc-border: #f4f4f5;--rc-accent: #2563eb;--rc-accent-light: #2563eb20;--rc-link: #2563eb;--rc-code-text: #3f3f46;--rc-code-bg: #f4f4f5;--rc-hr-border: #e4e4e7;--rc-quote-border: #a1a1aa;--rc-quote-bg: #fafafa;--rc-alert-info: #006bb7;--rc-alert-warning: #cc5500;--rc-alert-tip: #11cc00;--rc-alert-caution: #cc0011;--rc-alert-important: #5500cc;--rc-max-width: none;--rc-space-xs: 2px;--rc-space-sm: 4px;--rc-space-md: 10px;--rc-space-lg: 16px;--rc-space-xl: 20px;--rc-font-family-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-font-family-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif", "source-han-serif-sc", "Songti SC", STSong, "华文宋体", serif;--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;--rc-font-size-2xs: .625em;--rc-font-size-xs: .75em;--rc-font-size-sm: .8125em;--rc-font-size-md: .875em;--rc-font-size-lg: 1.25em;--rc-font-size-base: 14px;--rc-font-size-small: 12px;--rc-line-height: 1.5;--rc-line-height-tight: 1.3;--rc-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, "noto sans sc", "hiragino sans gb", -apple-system, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Not Color Emoji;--rc-radius-sm: 3px;--rc-radius-md: 6px;--rc-radius-lg: 8px}.dark .yglj5t0,[data-theme=dark] .yglj5t0,.dark.yglj5t0,[data-theme=dark].yglj5t0,.dark .yglj5t1,[data-theme=dark] .yglj5t1,.dark.yglj5t1,[data-theme=dark].yglj5t1,.dark .yglj5t2,[data-theme=dark] .yglj5t2,.dark.yglj5t2,[data-theme=dark].yglj5t2{--rc-text: #fafafa;--rc-text-secondary: #a1a1aa;--rc-bg: #09090b;--rc-bg-secondary: #18181b;--rc-bg-tertiary: #27272a;--rc-border: #27272a;--rc-accent: #60a5fa;--rc-accent-light: #60a5fa20;--rc-link: #60a5fa;--rc-code-text: #e4e4e7;--rc-code-bg: #27272a;--rc-hr-border: #27272a;--rc-quote-border: #60a5fa;--rc-quote-bg: #1e3a5f;--rc-alert-info: #7db9e5;--rc-alert-warning: #da864a;--rc-alert-tip: #54da48;--rc-alert-caution: #e16973;--rc-alert-important: #9966e0}
|
package/dist/themes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fonts: {
|
|
2
|
-
|
|
2
|
+
fontFamilySans: string;
|
|
3
3
|
fontFamilySerif: string;
|
|
4
4
|
fontMono: string;
|
|
5
5
|
};
|
|
@@ -15,6 +15,7 @@ export declare const lightArticleColors: {
|
|
|
15
15
|
link: string;
|
|
16
16
|
codeText: string;
|
|
17
17
|
codeBg: string;
|
|
18
|
+
hrBorder: string;
|
|
18
19
|
quoteBorder: string;
|
|
19
20
|
quoteBg: string;
|
|
20
21
|
alertInfo: string;
|
|
@@ -37,6 +38,7 @@ export declare const lightCommentColors: {
|
|
|
37
38
|
link: string;
|
|
38
39
|
codeText: string;
|
|
39
40
|
codeBg: string;
|
|
41
|
+
hrBorder: string;
|
|
40
42
|
alertInfo: string;
|
|
41
43
|
alertWarning: string;
|
|
42
44
|
alertTip: string;
|
|
@@ -55,6 +57,7 @@ export declare const darkColors: {
|
|
|
55
57
|
link: string;
|
|
56
58
|
codeText: string;
|
|
57
59
|
codeBg: string;
|
|
60
|
+
hrBorder: string;
|
|
58
61
|
quoteBorder: string;
|
|
59
62
|
quoteBg: string;
|
|
60
63
|
alertInfo: string;
|
|
@@ -76,6 +79,7 @@ export declare const articleLayout: {
|
|
|
76
79
|
};
|
|
77
80
|
typography: {
|
|
78
81
|
fontFamily: string;
|
|
82
|
+
fontFamilySans: string;
|
|
79
83
|
fontFamilySerif: string;
|
|
80
84
|
fontMono: string;
|
|
81
85
|
fontSize2xs: string;
|
|
@@ -108,6 +112,7 @@ export declare const noteLayout: {
|
|
|
108
112
|
typography: {
|
|
109
113
|
fontFamily: string;
|
|
110
114
|
lineHeight: string;
|
|
115
|
+
fontFamilySans: string;
|
|
111
116
|
fontFamilySerif: string;
|
|
112
117
|
fontMono: string;
|
|
113
118
|
fontSize2xs: string;
|
|
@@ -142,6 +147,7 @@ export declare const commentLayout: {
|
|
|
142
147
|
fontSizeSmall: string;
|
|
143
148
|
lineHeight: string;
|
|
144
149
|
lineHeightTight: string;
|
|
150
|
+
fontFamilySans: string;
|
|
145
151
|
fontFamilySerif: string;
|
|
146
152
|
fontMono: string;
|
|
147
153
|
fontSize2xs: string;
|
package/dist/themes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAOjB,CAAA;AAGD,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAOjB,CAAA;AAGD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAoB9B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAI9B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAA;AA0BD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQzB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAStB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAA"}
|
package/dist/vars.css.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const vars: {
|
|
|
11
11
|
link: `var(--${string})`;
|
|
12
12
|
codeText: `var(--${string})`;
|
|
13
13
|
codeBg: `var(--${string})`;
|
|
14
|
+
hrBorder: `var(--${string})`;
|
|
14
15
|
quoteBorder: `var(--${string})`;
|
|
15
16
|
quoteBg: `var(--${string})`;
|
|
16
17
|
alertInfo: `var(--${string})`;
|
|
@@ -28,6 +29,7 @@ export declare const vars: {
|
|
|
28
29
|
};
|
|
29
30
|
typography: {
|
|
30
31
|
fontFamily: `var(--${string})`;
|
|
32
|
+
fontFamilySans: `var(--${string})`;
|
|
31
33
|
fontFamilySerif: `var(--${string})`;
|
|
32
34
|
fontMono: `var(--${string})`;
|
|
33
35
|
fontSize2xs: `var(--${string})`;
|
|
@@ -49,4 +51,7 @@ export declare const vars: {
|
|
|
49
51
|
maxWidth: `var(--${string})`;
|
|
50
52
|
};
|
|
51
53
|
};
|
|
54
|
+
export declare const articleTheme: string;
|
|
55
|
+
export declare const noteTheme: string;
|
|
56
|
+
export declare const commentTheme: string;
|
|
52
57
|
//# sourceMappingURL=vars.css.d.ts.map
|
package/dist/vars.css.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../src/vars.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../src/vars.css.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDf,CAAA;AAeF,eAAO,MAAM,YAAY,QAGvB,CAAA;AAEF,eAAO,MAAM,SAAS,QAGpB,CAAA;AAEF,eAAO,MAAM,YAAY,QAGvB,CAAA"}
|