@xyd-js/theme-picasso 0.0.0-build

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/src/theme.tsx ADDED
@@ -0,0 +1,43 @@
1
+ import React from "react"
2
+
3
+ import {BaseTheme} from "@xyd-js/themes"
4
+
5
+ import "./imports.css"
6
+
7
+ import "@xyd-js/themes/index.css"
8
+
9
+ import './index.css';
10
+ import './vars.css';
11
+ import './override.css';
12
+
13
+ import syntaxHighlight from "./syntaxHighlight"
14
+
15
+ export default class ThemePicasso extends BaseTheme {
16
+ constructor() {
17
+ super();
18
+
19
+ this.theme.Update({
20
+ coder: {
21
+ syntaxHighlight: syntaxHighlight
22
+ },
23
+ appearance: {
24
+ header: {
25
+ separator: "right"
26
+ },
27
+ logo: {
28
+ header: "mobile",
29
+ sidebar: true
30
+ },
31
+ search: {
32
+ sidebar: true
33
+ },
34
+ content: {
35
+ sectionSeparator: true
36
+ }
37
+ }
38
+ })
39
+ }
40
+ }
41
+
42
+
43
+
package/src/vars.css ADDED
@@ -0,0 +1,75 @@
1
+ @import "@xyd-js/themes/dist/decorators/atlas-vars.css";
2
+
3
+ /* Core */
4
+ :root {
5
+ --dark8: color(display-p3 .008 .184 .125 / .067);
6
+ --dark32: color(display-p3 .012 .094 .051 / .095);
7
+ --color-text: color(display-p3 0.107 0.129 0.118);
8
+ --color-primary: color(display-p3 0.08 0.5 0.43);
9
+ --color-primary--active: color(display-p3 0.08 0.5 0.43);
10
+
11
+
12
+ /* Font Sizes */
13
+ --xyd-font-size-xsmall: 13px;
14
+ --xyd-font-size-small: 14px;
15
+ --xyd-font-size-medium: 17px;
16
+ --xyd-font-size-large: 19px;
17
+ --xyd-font-size-xlarge: 23px;
18
+ --xyd-font-size-xxlarge: 27px;
19
+ --xyd-font-size-2xl: 33px;
20
+
21
+ /* Line Heights */
22
+ --xyd-line-height-xsmall: 17px;
23
+ --xyd-line-height-small: 20px;
24
+ --xyd-line-height-medium: 26px;
25
+ --xyd-line-height-large: 28px;
26
+ --xyd-line-height-xlarge: 34px;
27
+ --xyd-line-height-xxlarge: 40px;
28
+ --xyd-line-height-2xl: 45px;
29
+ }
30
+
31
+ /* Sidebar */
32
+ :root {
33
+ --xyd-sidebar-bgcolor: var(--white);
34
+ }
35
+
36
+ /* Subnav */
37
+ :root {
38
+ --xyd-subnav-bgcolor: var(--white);
39
+ }
40
+
41
+ /* Banner */
42
+ :root {
43
+ --xyd-banner-bgcolor: color(display-p3 .004 .643 .494 / .24);
44
+ }
45
+
46
+ /* Utils */
47
+ :root {
48
+ --xyd-page-gutter: 0;
49
+ }
50
+
51
+ /* Coder */
52
+ :root {
53
+ --xyd-codetabs-color: var(--white);
54
+
55
+ --xyd-coder-code-mark-bgcolor: var(--dark80);
56
+ --xyd-coder-code-mark-border-color: var(--color-primary);
57
+
58
+ --xyd-codetabs-color--active: var(--white);
59
+ }
60
+
61
+ @define-mixin dark-theme {
62
+ --xyd-codetabs-color: var(--black);
63
+ --color-text: var(--black);
64
+ --xyd-codetabs-color--active: var(--black);
65
+ }
66
+
67
+ [data-color-scheme="dark"] {
68
+ @mixin dark-theme;
69
+ }
70
+
71
+ @media (prefers-color-scheme: dark) {
72
+ :root:not([data-color-scheme="light"]):not([data-color-scheme="dark"]) {
73
+ @mixin dark-theme;
74
+ }
75
+ }
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
+ }