@xyd-js/theme-opener 0.1.0-build.157
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/CHANGELOG.md +1937 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/presets/header-classic.css +14 -0
- package/dist/presets/header-pad.css +19 -0
- package/package.json +56 -0
- package/rollup.config.js +3 -0
- package/src/imports.css +1 -0
- package/src/index.css +7 -0
- package/src/index.ts +1 -0
- package/src/override.css +37 -0
- package/src/presets/header-classic.css +14 -0
- package/src/presets/header-pad.css +19 -0
- package/src/theme.tsx +63 -0
- package/src/vars.css +80 -0
- package/tsconfig.json +40 -0
- package/types.d.ts +10 -0
package/src/vars.css
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@import "@xyd-js/themes/dist/decorators/atlas-vars.css";
|
|
2
|
+
|
|
3
|
+
/* Theme specific */
|
|
4
|
+
:root {
|
|
5
|
+
--opener-blue: #0b64dd;
|
|
6
|
+
--opener-blue--active: #1750ba;
|
|
7
|
+
|
|
8
|
+
--opener-gray4-rgb: 246, 247, 249;
|
|
9
|
+
--opener-gray4: #f6f7f9;
|
|
10
|
+
|
|
11
|
+
--opener-gray64: #363434;
|
|
12
|
+
--opener-gray80: #1e1e1e;
|
|
13
|
+
|
|
14
|
+
--opener-content-background: linear-gradient(180deg, rgba(var(--opener-gray4-rgb), 0.5) 0%, rgba(var(--opener-gray4-rgb), 0) 48.32%);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Core */
|
|
18
|
+
:root {
|
|
19
|
+
--color-primary: var(--opener-blue);
|
|
20
|
+
--color-primary--active: var(--opener-blue--active);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Utils */
|
|
24
|
+
:root {
|
|
25
|
+
--xyd-page-gutter: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Subnav */
|
|
29
|
+
:root {
|
|
30
|
+
--xyd-subnav-height: 50px;
|
|
31
|
+
--xyd-subnav-bgcolor: var(--white);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Sidebar */
|
|
35
|
+
:root {
|
|
36
|
+
/* --xyd-sidebar-width: 450px; */
|
|
37
|
+
--xyd-sidebar-bgcolor: var(--white)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Sidebar Item */
|
|
41
|
+
:root {
|
|
42
|
+
--xyd-sidebar-item-bgcolor--active: var(--opener-gray4);
|
|
43
|
+
--xyd-sidebar-item-bgcolor--active-hover: var(--opener-gray4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Coder */
|
|
47
|
+
:root {
|
|
48
|
+
--xyd-codetabs-bgcolor: var(--opener-gray80);
|
|
49
|
+
--xyd-codetabs-color: var(--white);
|
|
50
|
+
--xyd-codetabs-color--hover: var(--opener-gray64);
|
|
51
|
+
|
|
52
|
+
--xyd-coder-code-mark-bgcolor: var(--xyd-codetabs-color--hover);
|
|
53
|
+
--xyd-coder-code-mark-border-color: var(--color-primary);
|
|
54
|
+
--xyd-coder-code-border-color: var(--opener-gray80);
|
|
55
|
+
--xyd-codetabs-color--active: var(--white);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Tabs */
|
|
59
|
+
:root {
|
|
60
|
+
--xyd-tabs-primary-bgcolor: unset;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@define-mixin dark-theme {
|
|
64
|
+
--opener-gray4-rgb: var(--dark32-rgb);
|
|
65
|
+
--opener-gray4: var(--dark32);
|
|
66
|
+
|
|
67
|
+
--xyd-codetabs-color: var(--black);
|
|
68
|
+
--xyd-tabs-primary-border-color: unset;
|
|
69
|
+
--xyd-codetabs-color--active: var(--black);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-color-scheme="dark"] {
|
|
73
|
+
@mixin dark-theme;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-color-scheme: dark) {
|
|
77
|
+
:root:not([data-color-scheme="light"]):not([data-color-scheme="dark"]) {
|
|
78
|
+
@mixin dark-theme;
|
|
79
|
+
}
|
|
80
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"paths": {
|
|
4
|
+
"@xyd-js/themes": ["../xyd-themes/src"],
|
|
5
|
+
},
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"target": "ES6",
|
|
10
|
+
"lib": [
|
|
11
|
+
"dom",
|
|
12
|
+
"dom.iterable",
|
|
13
|
+
"esnext"
|
|
14
|
+
],
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"strict": false,
|
|
18
|
+
"noEmit": true,
|
|
19
|
+
"incremental": false,
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"isolatedModules": true,
|
|
22
|
+
"jsx": "react",
|
|
23
|
+
"plugins": [
|
|
24
|
+
{
|
|
25
|
+
"name": "next"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"strictNullChecks": true
|
|
29
|
+
},
|
|
30
|
+
"include": [
|
|
31
|
+
"packages/css/src",
|
|
32
|
+
"next-env.d.ts",
|
|
33
|
+
"**/*.ts",
|
|
34
|
+
"**/*.tsx",
|
|
35
|
+
".next/types/**/*.ts"
|
|
36
|
+
],
|
|
37
|
+
"exclude": [
|
|
38
|
+
"node_modules"
|
|
39
|
+
]
|
|
40
|
+
}
|