@rspress-theme-anatole/theme-default 0.0.1

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.
@@ -0,0 +1,4 @@
1
+ // @ts-expect-error
2
+ export * from './bundle';
3
+ // @ts-expect-error
4
+ export { default } from './bundle';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import './bundle.css';
2
+ export * from './bundle';
3
+ export { default } from './bundle';
@@ -0,0 +1,105 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
4
+ const tailwind_config = {
5
+ content: [
6
+ './src/**/*.{js,ts,jsx,tsx}'
7
+ ],
8
+ darkMode: 'class',
9
+ theme: {
10
+ backgroundColor: (ctx)=>({
11
+ ...ctx.theme('colors'),
12
+ white: 'var(--rp-c-bg)',
13
+ soft: 'var(--rp-c-bg-soft)',
14
+ mute: 'var(--rp-c-bg-mute)'
15
+ }),
16
+ extend: {
17
+ fontSize: {
18
+ '3xl': '2rem',
19
+ '2xl': '1.625rem',
20
+ xl: '1.375rem',
21
+ lg: '1.25rem'
22
+ },
23
+ borderRadius: {
24
+ '4xl': '2rem'
25
+ },
26
+ breakpoints: {
27
+ xs: '640px',
28
+ sm: '768px',
29
+ md: '960px',
30
+ lg: '1280px'
31
+ },
32
+ maxWidth: {
33
+ 60: '15rem'
34
+ },
35
+ maxHeight: {
36
+ 60: '15rem'
37
+ },
38
+ colors: {
39
+ brand: {
40
+ DEFAULT: 'var(--rp-c-brand)',
41
+ light: 'var(--rp-c-brand-light)',
42
+ dark: 'var(--rp-c-brand-dark)',
43
+ lighter: 'var(--rp-c-brand-lighter)',
44
+ darker: 'var(--rp-c-brand-darker)'
45
+ },
46
+ text: {
47
+ 1: 'var(--rp-c-text-1)',
48
+ 2: 'var(--rp-c-text-2)',
49
+ 3: 'var(--rp-c-text-3)',
50
+ 4: 'var(--rp-c-text-4)'
51
+ },
52
+ divider: {
53
+ DEFAULT: 'var(--rp-c-divider)',
54
+ light: 'var(--rp-c-divider-light)',
55
+ dark: 'var(--rp-c-divider-dark)'
56
+ },
57
+ gray: {
58
+ light: {
59
+ 1: 'var(--rp-c-gray-light-1)',
60
+ 2: 'var(--rp-c-gray-light-2)',
61
+ 3: 'var(--rp-c-gray-light-3)',
62
+ 4: 'var(--rp-c-gray-light-4)',
63
+ 5: 'var(--rp-c-gray-light-5)'
64
+ }
65
+ },
66
+ dark: {
67
+ light: {
68
+ 1: 'var(--rp-c-dark-light-1)',
69
+ 2: 'var(--rp-c-dark-light-2)',
70
+ 3: 'var(--rp-c-dark-light-3)',
71
+ 4: 'var(--rp-c-dark-light-4)',
72
+ 5: 'var(--rp-c-dark-light-5)'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ };
79
+ const source_build_plugin_rslib_entry_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__.createRequire)(import.meta.url);
80
+ const ROOT_DIR = (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(new URL('../..', import.meta.url).href);
81
+ function SourceBuildPlugin() {
82
+ return {
83
+ name: 'theme-default:source-build',
84
+ builderConfig: {
85
+ resolve: {
86
+ alias: {
87
+ 'rspress/theme': __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(ROOT_DIR, './src')
88
+ }
89
+ },
90
+ tools: {
91
+ postcss: (_, { addPlugins })=>{
92
+ try {
93
+ addPlugins(source_build_plugin_rslib_entry_require('tailwindcss')({
94
+ config: {
95
+ ...tailwind_config,
96
+ content: tailwind_config.content.map((item)=>__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(ROOT_DIR, item))
97
+ }
98
+ }));
99
+ } catch (_e) {}
100
+ }
101
+ }
102
+ }
103
+ };
104
+ }
105
+ export { SourceBuildPlugin };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@rspress-theme-anatole/theme-default",
3
+ "author": "Anatole Tong",
4
+ "version": "0.0.1",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "dependencies": {
9
+ "@types/node": "22.13.10",
10
+ "react-router-dom": "^6.29.0",
11
+ "@rspress-theme-anatole/runtime": "0.0.2",
12
+ "@rspress-theme-anatole/shared": "0.0.2"
13
+ },
14
+ "keywords": [
15
+ "rspress",
16
+ "theme",
17
+ "rspress-theme"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ }
22
+ }
package/package1.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "rspress-theme-anatole/theme-default",
3
+ "version": "0.0.10",
4
+ "description": "Anatole theme for Rspress",
5
+ "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/web-infra-dev/rspress",
9
+ "directory": "packages/theme-default"
10
+ },
11
+ "license": "MIT",
12
+ "sideEffects": [
13
+ "*.css",
14
+ "*.less",
15
+ "*.sass",
16
+ "*.scss",
17
+ "**/virtual-global-styles.js",
18
+ "virtual-global-styles",
19
+ "./src/styles/index.ts",
20
+ "./dist/index.js"
21
+ ],
22
+ "type": "module",
23
+ "imports": {
24
+ "#theme/*": "./src/*"
25
+ },
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/bundle.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "./node/*": "./dist/node/*",
32
+ "./package.json": "./package.json",
33
+ "./bundle.css": "./dist/bundle.css"
34
+ },
35
+ "main": "./dist/index.js",
36
+ "types": "./dist/bundle.d.ts",
37
+ "files": [
38
+ "dist"
39
+ ],
40
+ "dependencies": {
41
+ "@mdx-js/react": "2.3.0",
42
+ "body-scroll-lock": "4.0.0-beta.0",
43
+ "copy-to-clipboard": "^3.3.3",
44
+ "flexsearch": "0.7.43",
45
+ "github-slugger": "^2.0.0",
46
+ "htmr": "^1.0.2",
47
+ "lodash-es": "^4.17.21",
48
+ "nprogress": "^0.2.0",
49
+ "react": "^18.3.1",
50
+ "react-dom": "^18.3.1",
51
+ "react-helmet-async": "^1.3.0",
52
+ "react-syntax-highlighter": "^15.6.1",
53
+ "@rspress/runtime": "1.43.7",
54
+ "@rspress/shared": "1.43.7"
55
+ },
56
+ "devDependencies": {
57
+ "@microsoft/api-extractor": "^7.49.2",
58
+ "@modern-js/tsconfig": "2.64.0",
59
+ "@rsbuild/plugin-react": "~1.1.0",
60
+ "@rsbuild/plugin-sass": "~1.2.0",
61
+ "@rsbuild/plugin-svgr": "^1.0.6",
62
+ "@rslib/core": "0.5.2",
63
+ "@types/body-scroll-lock": "^3.1.2",
64
+ "@types/hast": "^2.3.10",
65
+ "@types/jest": "~29.5.14",
66
+ "@types/lodash-es": "^4.17.12",
67
+ "@types/mdast": "^3.0.15",
68
+ "@types/nprogress": "^0.2.3",
69
+ "@types/react": "^18.3.18",
70
+ "@types/react-dom": "^18.3.5",
71
+ "@types/react-syntax-highlighter": "^15.5.13",
72
+ "gray-matter": "4.0.3",
73
+ "tailwindcss": "^3.4.17",
74
+ "typescript": "^5.5.3"
75
+ },
76
+ "engines": {
77
+ "node": ">=14.17.6"
78
+ },
79
+ "publishConfig": {
80
+ "access": "public",
81
+ "provenance": true,
82
+ "registry": "https://registry.npmjs.org/"
83
+ },
84
+ "scripts": {
85
+ "build": "rslib build",
86
+ "dev": "rslib build -w",
87
+ "reset": "rimraf ./**/node_modules"
88
+ }
89
+ }