Skip to content

Commit 98d9a79

Browse files
committed
Customize style colors
1 parent 2045f67 commit 98d9a79

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

docs/guide/getting-started/introduction.md

-7
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,3 @@ AIScript embraces these core principles:
9999
- **AI-native design**: Built from the ground up for the age of AI
100100
- **Developer happiness**: Focusing on the developer experience first
101101
- **Performance without sacrifice**: No need to choose between speed and productivity
102-
103-
<!-- ## Roadmap
104-
105-
- **Database migrations**: Integrated migration tools for schema evolution
106-
- **WebSocket support**: Retal-time communication capabilities
107-
- **Developer tools**: Enhanced debugging and profiling capabilities
108-
- **Edge deployment**: Deploy your AIScript apps to the edge -->

docs/guide/language/class-object.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AIScript offers a powerful class-based object-oriented programming model inspire
66

77
Use the `class` keyword to define a class with properties and methods.
88

9-
```rust
9+
```js
1010
class Person {
1111
name: str,
1212
age: int,

rspress.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default defineConfig({
1515
},
1616
mediumZoom: true,
1717
builderPlugins: [pluginYaml()],
18+
globalStyles: path.join(__dirname, 'theme/index.css'),
1819
themeConfig: {
1920
enableScrollToTop: true,
2021
footer: {

theme/index.css

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:root {
2+
/* Modify theme color */
3+
--rp-c-brand: #db4c38;
4+
--rp-c-brand-dark: #f96b6b;
5+
--rp-c-brand-darker: #f96b6b;
6+
--rp-c-brand-light: #f96b6b;
7+
--rp-c-brand-lighter: #f53939;
8+
/* Modify the width of the left sidebar */
9+
--rp-sidebar-width: 280px;
10+
/* Modify the width of the right outline column */
11+
--rp-aside-width: 256px;
12+
/* Modify the background of the code block title */
13+
/* --rp-code-title-bg: rgba(250, 192, 61, 0.15); */
14+
/* Modify the background of the code block content */
15+
/* --rp-code-block-bg: rgba(214, 188, 70, 0.05); */
16+
}

0 commit comments

Comments
 (0)