@haklex/rich-style-token 0.0.27 → 0.0.30
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.mjs +7 -3
- package/dist/themes.d.ts +3 -0
- package/dist/themes.d.ts.map +1 -1
- package/dist/vars.css.d.ts +1 -0
- package/dist/vars.css.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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)", 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)", 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)" } };
|
|
4
4
|
function extractVarName(cssVarRef) {
|
|
5
5
|
const match = cssVarRef.match(/^var\((.+)\)$/);
|
|
6
6
|
return match ? match[1] : cssVarRef;
|
|
@@ -54,12 +54,14 @@ const lightArticleColors = {
|
|
|
54
54
|
textSecondary: "#5f6e78",
|
|
55
55
|
bg: "#ffffff",
|
|
56
56
|
bgSecondary: "#fafafa",
|
|
57
|
+
bgTertiary: "#f0f1f3",
|
|
57
58
|
border: "#ebedee",
|
|
58
59
|
accent: "#2563eb",
|
|
59
60
|
accentLight: "#2563eb20",
|
|
60
61
|
link: "#2563eb",
|
|
61
62
|
codeText: "#374047",
|
|
62
|
-
codeBg: "#
|
|
63
|
+
codeBg: "#f6f8fa",
|
|
64
|
+
// GitHub light
|
|
63
65
|
quoteBorder: "#2563eb",
|
|
64
66
|
quoteBg: "#eff6ff",
|
|
65
67
|
alertInfo: "#006bb7",
|
|
@@ -78,12 +80,14 @@ const darkColors = {
|
|
|
78
80
|
textSecondary: "#97a1a7",
|
|
79
81
|
bg: "#000",
|
|
80
82
|
bgSecondary: "#171717",
|
|
83
|
+
bgTertiary: "#252525",
|
|
81
84
|
border: "#374047",
|
|
82
85
|
accent: "#60a5fa",
|
|
83
86
|
accentLight: "#60a5fa20",
|
|
84
87
|
link: "#60a5fa",
|
|
85
88
|
codeText: "#dee1e3",
|
|
86
|
-
codeBg: "#
|
|
89
|
+
codeBg: "#161b22",
|
|
90
|
+
// GitHub dark
|
|
87
91
|
quoteBorder: "#60a5fa",
|
|
88
92
|
quoteBg: "#1e3a5f",
|
|
89
93
|
alertInfo: "#7db9e5",
|
package/dist/themes.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const lightArticleColors: {
|
|
|
8
8
|
textSecondary: string;
|
|
9
9
|
bg: string;
|
|
10
10
|
bgSecondary: string;
|
|
11
|
+
bgTertiary: string;
|
|
11
12
|
border: string;
|
|
12
13
|
accent: string;
|
|
13
14
|
accentLight: string;
|
|
@@ -29,6 +30,7 @@ export declare const lightCommentColors: {
|
|
|
29
30
|
textSecondary: string;
|
|
30
31
|
bg: string;
|
|
31
32
|
bgSecondary: string;
|
|
33
|
+
bgTertiary: string;
|
|
32
34
|
border: string;
|
|
33
35
|
accent: string;
|
|
34
36
|
accentLight: string;
|
|
@@ -46,6 +48,7 @@ export declare const darkColors: {
|
|
|
46
48
|
textSecondary: string;
|
|
47
49
|
bg: string;
|
|
48
50
|
bgSecondary: string;
|
|
51
|
+
bgTertiary: string;
|
|
49
52
|
border: string;
|
|
50
53
|
accent: string;
|
|
51
54
|
accentLight: 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;;;;;;;;;;;;;;;;;;;CAmB9B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAI9B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAA;AAyBD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAStB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAA"}
|
package/dist/vars.css.d.ts
CHANGED
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":"AAEA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../src/vars.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDf,CAAA"}
|