@xyd-js/theme-picasso 0.1.0-xyd.2

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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@xyd-js/theme-picasso",
3
+ "version": "0.1.0-xyd.2",
4
+ "description": "",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ "./index.css": "./dist/index.css",
11
+ ".": {
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "dependencies": {
16
+ "@docsearch/css": "^3.9.0",
17
+ "@docsearch/react": "^3.9.0",
18
+ "@linaria/atomic": "^6.2.0",
19
+ "@linaria/core": "^6.2.0",
20
+ "@orama/react-components": "^0.7.0",
21
+ "@xyd-js/atlas": "0.1.0-xyd.18",
22
+ "@xyd-js/ui": "0.1.0-xyd.18"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^19.0.0",
26
+ "react-dom": "^19.0.0",
27
+ "react-router": "^7.5.0",
28
+ "@xyd-js/components": "0.1.0-xyd.13",
29
+ "@xyd-js/framework": "0.1.0-xyd.34",
30
+ "@xyd-js/themes": "0.1.1-xyd.5"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/preset-env": "^7.26.0",
34
+ "@babel/preset-flow": "^7.25.9",
35
+ "@babel/preset-react": "^7.26.0",
36
+ "@babel/preset-typescript": "^7.26.0",
37
+ "@rollup/plugin-alias": "^5.1.1",
38
+ "@rollup/plugin-babel": "^6.0.4",
39
+ "@rollup/plugin-commonjs": "^28.0.1",
40
+ "@rollup/plugin-node-resolve": "^15.3.0",
41
+ "@rollup/plugin-typescript": "^12.1.1",
42
+ "@wyw-in-js/rollup": "^0.5.5",
43
+ "@wyw-in-js/vite": "^0.5.5",
44
+ "autoprefixer": "^10.4.20",
45
+ "postcss": "^8.4.47",
46
+ "postcss-import": "^16.1.0",
47
+ "rimraf": "^3.0.2",
48
+ "rollup": "^4.27.4",
49
+ "rollup-plugin-css-only": "^4.5.2",
50
+ "rollup-plugin-dts": "^6.1.1",
51
+ "rollup-plugin-postcss": "^4.0.2",
52
+ "rollup-plugin-terser": "^7.0.2",
53
+ "tsup": "^8.3.0"
54
+ },
55
+ "scripts": {
56
+ "clean": "rimraf build",
57
+ "build": "rollup -c rollup.config.js"
58
+ }
59
+ }
@@ -0,0 +1,85 @@
1
+ import {createRequire} from "module";
2
+
3
+ import resolve from '@rollup/plugin-node-resolve';
4
+ import commonjs from '@rollup/plugin-commonjs';
5
+ import typescript from '@rollup/plugin-typescript';
6
+ import dts from 'rollup-plugin-dts';
7
+ import postcss from 'rollup-plugin-postcss';
8
+ import postcssImport from 'postcss-import';
9
+ import wyw from '@wyw-in-js/rollup';
10
+
11
+ const require = createRequire(import.meta.url);
12
+
13
+ const {
14
+ dependencies,
15
+ peerDependencies,
16
+ devDependencies
17
+ } = require('./package.json', {assert: {type: 'json'}});
18
+
19
+ const external = [
20
+ ...Object.keys(dependencies),
21
+ ...Object.keys(peerDependencies),
22
+ ...Object.keys(devDependencies),
23
+ "@xyd-js/framework/react",
24
+ "@xyd-js/components/brand",
25
+ "@xyd-js/components/coder",
26
+ "@xyd-js/components/content",
27
+ "@xyd-js/components/layouts",
28
+ "@xyd-js/components/pages",
29
+ "@xyd-js/components/views",
30
+ ];
31
+
32
+ export default [
33
+ {
34
+ input: {
35
+ index: './src/index.ts'
36
+ },
37
+ output: [
38
+ {
39
+ dir: 'dist',
40
+ format: 'esm',
41
+ sourcemap: true,
42
+ entryFileNames: '[name].js'
43
+ }
44
+ ],
45
+ plugins: [
46
+ wyw({
47
+ include: ['**/*.{ts,tsx}'],
48
+ babelOptions: {
49
+ presets: [
50
+ '@babel/preset-typescript',
51
+ '@babel/preset-react'
52
+ ],
53
+ },
54
+ }),
55
+ resolve(),
56
+ commonjs(),
57
+ typescript({
58
+ tsconfig: './tsconfig.json',
59
+ }),
60
+ postcss({
61
+ extensions: ['.css'],
62
+ plugins: [postcssImport()],
63
+ extract: true, // Extract CSS into a separate file
64
+ minimize: true, // Minify the CSS
65
+ }),
66
+ ],
67
+ external
68
+ },
69
+ {
70
+ input: './src/index.ts',
71
+ output: {
72
+ file: 'dist/index.d.ts',
73
+ format: 'es',
74
+ },
75
+ plugins: [
76
+ dts({
77
+ respectExternal: true, // Ignore unresolved imports
78
+ }),
79
+ ],
80
+ external: [
81
+ ...external,
82
+ /\.css$/ // Mark CSS imports as external
83
+ ],
84
+ },
85
+ ];
@@ -0,0 +1 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
package/src/index.css ADDED
@@ -0,0 +1,6 @@
1
+ html {
2
+ font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3
+ font-weight: 400;
4
+ -webkit-font-smoothing: antialiased;
5
+ -moz-osx-font-smoothing: grayscale;
6
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export {default} from "./theme"
@@ -0,0 +1,105 @@
1
+ @layer themes {
2
+ /* Layout */
3
+ xyd-layout-primary {
4
+ header {
5
+ [part="header-content"] {
6
+ border-bottom: 1px solid var(--dark32);
7
+ border-top: 1px solid var(--dark32);
8
+ }
9
+ }
10
+
11
+ > [part="header"] {
12
+ margin-left: var(--xyd-sidebar-width);
13
+ }
14
+
15
+ [part="sidebar"] {
16
+ position: fixed;
17
+ top: var(--xyd-page-gutter);
18
+ z-index: 1;
19
+ }
20
+
21
+ [part="page"] {
22
+ position: relative;
23
+ left: var(--xyd-sidebar-width);
24
+ margin-right: var(--xyd-sidebar-width);
25
+ right: 0;
26
+ }
27
+
28
+ @media (max-width: 1024px) {
29
+ > [part="header"] {
30
+ margin-left: 0
31
+ }
32
+
33
+ [part="page"] {
34
+ left: 0;
35
+ margin-right: 0;
36
+ }
37
+ }
38
+
39
+ [part="page-article-container"] {
40
+ padding: 20px 0;
41
+ }
42
+
43
+ &:not([data-layout="wide"]) {
44
+ --xyd-layout-width-medium: 700px;
45
+
46
+ [part="page-container"] {
47
+ max-width: 100%;
48
+ }
49
+ [part="page-article"] {
50
+ display: flex;
51
+ justify-content: center;
52
+ }
53
+ [part="page-article-content"] {
54
+ width: var(--xyd-layout-width-medium);
55
+ }
56
+ }
57
+ }
58
+
59
+ /* Nav */
60
+ xyd-nav {
61
+ [part="logo"] {
62
+ display: none;
63
+ }
64
+
65
+ [part="nav"] {
66
+ justify-content: space-between;
67
+ }
68
+
69
+ [part="list"] {
70
+ justify-content: flex-start;
71
+ }
72
+ }
73
+ xyd-subnav {
74
+ border-bottom: 1px solid var(--dark32);
75
+ border-radius: 0px;
76
+ margin-top: 0px;
77
+ }
78
+
79
+ xyd-layout-primary[data-hide-subheader="true"] {
80
+ xyd-subnav {
81
+ border-top: none;
82
+ }
83
+ }
84
+
85
+
86
+ /* Code */
87
+ xyd-codetabs-languages [part=language-trigger][data-state=active] {
88
+ font-weight: bold;
89
+ border: none;
90
+ }
91
+ xyd-code-pre [part="pre"] {
92
+ border-top: none;
93
+ }
94
+
95
+ /* Search */
96
+ xyd-search-button {
97
+ background: var(--white);
98
+ }
99
+
100
+ /* Sidebar */
101
+ xyd-sidebar {
102
+ border-right: 1px solid var(--dark32);
103
+ border-radius: 0;
104
+ }
105
+ }