Skip to content

Commit 09be770

Browse files
committed
Fixed CodeRabbit feedback
1 parent d55963c commit 09be770

17 files changed

Lines changed: 96 additions & 94 deletions

File tree

‎examples/04-theming/08-color-combinations/vite.config.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineConfig(((conf: { command: string }) => ({
1313
resolve: {
1414
alias:
1515
conf.command === "build" ||
16-
!fs.existsSync(path.resolve(__dirname, "../../packages/core/src"))
16+
!fs.existsSync(path.resolve(__dirname, "../../../packages/core/src"))
1717
? {}
1818
: ({
1919
// The repo-wide alias for the shared test-utils directory (private,
@@ -24,11 +24,11 @@ export default defineConfig(((conf: { command: string }) => ({
2424
// or, keep as is to load live from sources with live reload working
2525
"@blocknote/core": path.resolve(
2626
__dirname,
27-
"../../packages/core/src/",
27+
"../../../packages/core/src/",
2828
),
2929
"@blocknote/react": path.resolve(
3030
__dirname,
31-
"../../packages/react/src/",
31+
"../../../packages/react/src/",
3232
),
3333
} as any),
3434
},
Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,79 @@
1+
// sRGB equivalents of the light/dark --bn-colors-highlights-* palettes in
2+
// packages/react/src/editor/styles.css (also used by Block.css highlight rules).
13
export const COLORS_DEFAULT = {
24
gray: {
3-
text: "#9b9a97",
4-
background: "#ebeced",
5+
text: "#676767",
6+
background: "#e8e8e8",
57
},
68
brown: {
7-
text: "#64473a",
8-
background: "#e9e5e3",
9+
text: "#7b5540",
10+
background: "#f1e5df",
911
},
1012
red: {
11-
text: "#e03e3e",
12-
background: "#fbe4e4",
13+
text: "#994a37",
14+
background: "#ffdfd6",
1315
},
1416
orange: {
15-
text: "#d9730d",
16-
background: "#f6e9d9",
17+
text: "#8f5509",
18+
background: "#fbe3cd",
1719
},
1820
yellow: {
19-
text: "#dfab01",
20-
background: "#fbf3db",
21+
text: "#796300",
22+
background: "#f0e8cb",
2123
},
2224
green: {
23-
text: "#4d6461",
24-
background: "#ddedea",
25+
text: "#48722d",
26+
background: "#ddeed4",
2527
},
2628
blue: {
27-
text: "#0b6e99",
28-
background: "#ddebf1",
29+
text: "#006d9a",
30+
background: "#cfedff",
2931
},
3032
purple: {
31-
text: "#6940a5",
32-
background: "#eae4f2",
33+
text: "#6f549a",
34+
background: "#ece2ff",
3335
},
3436
pink: {
35-
text: "#ad1a72",
36-
background: "#f4dfeb",
37+
text: "#904873",
38+
background: "#fddeee",
3739
},
3840
} as Record<string, { text: string; background: string }>;
3941

4042
export const COLORS_DARK_MODE_DEFAULT = {
4143
gray: {
42-
text: "#bebdb8",
43-
background: "#9b9a97",
44+
text: "#a3a3a3",
45+
background: "#383838",
4446
},
4547
brown: {
46-
text: "#8e6552",
47-
background: "#64473a",
48+
text: "#c79d86",
49+
background: "#473328",
4850
},
4951
red: {
50-
text: "#ec4040",
51-
background: "#be3434",
52+
text: "#e69783",
53+
background: "#5a2619",
5254
},
5355
orange: {
54-
text: "#e3790d",
55-
background: "#b7600a",
56+
text: "#daa168",
57+
background: "#532d00",
5658
},
5759
yellow: {
58-
text: "#dfab01",
59-
background: "#b58b00",
60+
text: "#c2ad61",
61+
background: "#453700",
6062
},
6163
green: {
62-
text: "#6b8b87",
63-
background: "#4d6461",
64+
text: "#92bc7c",
65+
background: "#254112",
6466
},
6567
blue: {
66-
text: "#0e87bc",
67-
background: "#0b6e99",
68+
text: "#6ab8e4",
69+
background: "#003d5b",
6870
},
6971
purple: {
70-
text: "#8552d7",
71-
background: "#6940a5",
72+
text: "#b7a0e4",
73+
background: "#3f2d5b",
7274
},
7375
pink: {
74-
text: "#da208f",
75-
background: "#ad1a72",
76+
text: "#dc94bc",
77+
background: "#542541",
7678
},
7779
} as Record<string, { text: string; background: string }>;

‎packages/xl-docx-exporter/src/docx/__snapshots__/basic/document.xml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</w:p>
4141
<w:p>
4242
<w:pPr>
43-
<w:shd w:fill="fbe4e4" w:val="clear"/>
43+
<w:shd w:fill="ffdfd6" w:val="clear"/>
4444
</w:pPr>
4545
<w:r>
4646
<w:rPr>
@@ -231,10 +231,10 @@
231231
<w:ilvl w:val="2"/>
232232
<w:numId w:val="5"/>
233233
</w:numPr>
234-
<w:shd w:fill="fbe4e4" w:val="clear"/>
234+
<w:shd w:fill="ffdfd6" w:val="clear"/>
235235
<w:jc w:val="right"/>
236236
<w:rPr>
237-
<w:color w:val="0b6e99"/>
237+
<w:color w:val="006d9a"/>
238238
</w:rPr>
239239
</w:pPr>
240240
<w:r>
@@ -248,10 +248,10 @@
248248
<w:ilvl w:val="2"/>
249249
<w:numId w:val="5"/>
250250
</w:numPr>
251-
<w:shd w:fill="fbe4e4" w:val="clear"/>
251+
<w:shd w:fill="ffdfd6" w:val="clear"/>
252252
<w:jc w:val="center"/>
253253
<w:rPr>
254-
<w:color w:val="0b6e99"/>
254+
<w:color w:val="006d9a"/>
255255
</w:rPr>
256256
</w:pPr>
257257
<w:r>
@@ -672,8 +672,8 @@
672672
<w:bCs/>
673673
<w:i/>
674674
<w:iCs/>
675-
<w:color w:val="e03e3e"/>
676-
<w:shd w:fill="ddebf1" w:val="clear"/>
675+
<w:color w:val="994a37"/>
676+
<w:shd w:fill="cfedff" w:val="clear"/>
677677
</w:rPr>
678678
<w:t xml:space="preserve">Styled Text</w:t>
679679
</w:r>
@@ -803,8 +803,8 @@
803803
<w:rPr>
804804
<w:b/>
805805
<w:bCs/>
806-
<w:color w:val="e03e3e"/>
807-
<w:shd w:fill="ddebf1" w:val="clear"/>
806+
<w:color w:val="994a37"/>
807+
<w:shd w:fill="cfedff" w:val="clear"/>
808808
</w:rPr>
809809
<w:t xml:space="preserve">Table Cell Bold Colored 5</w:t>
810810
</w:r>

‎packages/xl-email-exporter/src/react-email/__snapshots__/reactEmailExporter.test.tsx.snap‎

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

‎packages/xl-odt-exporter/src/odt/__snapshots__/basic/content.xml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<style:text-properties fo:font-style="italic" fo:font-weight="bold"></style:text-properties>
2424
</style:style>
2525
<style:style style:family="paragraph" style:name="BN_S3" style:parent-style-name="Standard">
26-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
27-
<style:paragraph-properties fo:background-color="#fbe4e4"></style:paragraph-properties>
26+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
27+
<style:paragraph-properties fo:background-color="#ffdfd6"></style:paragraph-properties>
2828
</style:style>
2929
<style:style style:name="BN_T4" style:family="text">
3030
<style:text-properties fo:font-weight="bold"></style:text-properties>
@@ -43,14 +43,14 @@
4343
<style:paragraph-properties fo:text-align="end"></style:paragraph-properties>
4444
</style:style>
4545
<style:style style:family="paragraph" style:name="BN_S10" style:parent-style-name="Standard">
46-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
47-
<style:paragraph-properties fo:text-align="end" fo:background-color="#fbe4e4"></style:paragraph-properties>
48-
<style:text-properties fo:color="#0b6e99"></style:text-properties>
46+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
47+
<style:paragraph-properties fo:text-align="end" fo:background-color="#ffdfd6"></style:paragraph-properties>
48+
<style:text-properties fo:color="#006d9a"></style:text-properties>
4949
</style:style>
5050
<style:style style:family="paragraph" style:name="BN_S11" style:parent-style-name="Standard">
51-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
52-
<style:paragraph-properties fo:text-align="center" fo:background-color="#fbe4e4"></style:paragraph-properties>
53-
<style:text-properties fo:color="#0b6e99"></style:text-properties>
51+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
52+
<style:paragraph-properties fo:text-align="center" fo:background-color="#ffdfd6"></style:paragraph-properties>
53+
<style:text-properties fo:color="#006d9a"></style:text-properties>
5454
</style:style>
5555
<style:style style:family="table" style:name="BN_S12">
5656
<style:table-properties table:align="left" style:writing-mode="lr-tb" style:width="330pt"></style:table-properties>
@@ -68,7 +68,7 @@
6868
<style:paragraph-properties fo:text-align="end"></style:paragraph-properties>
6969
</style:style>
7070
<style:style style:name="BN_T17" style:family="text">
71-
<style:text-properties fo:font-weight="bold" fo:font-style="italic" fo:color="#e03e3e" fo:background-color="#ddebf1"></style:text-properties>
71+
<style:text-properties fo:font-weight="bold" fo:font-style="italic" fo:color="#994a37" fo:background-color="#cfedff"></style:text-properties>
7272
</style:style>
7373
<style:style style:name="BN_T18" style:family="text">
7474
<style:text-properties style:text-underline-style="solid"></style:text-properties>
@@ -80,7 +80,7 @@
8080
<style:table-properties table:align="left" style:writing-mode="lr-tb" style:width="270pt"></style:table-properties>
8181
</style:style>
8282
<style:style style:name="BN_T21" style:family="text">
83-
<style:text-properties fo:font-weight="bold" fo:color="#e03e3e" fo:background-color="#ddebf1"></style:text-properties>
83+
<style:text-properties fo:font-weight="bold" fo:color="#994a37" fo:background-color="#cfedff"></style:text-properties>
8484
</style:style>
8585
<style:style style:name="BN_T22" style:family="text">
8686
<style:text-properties style:font-name="Courier New"></style:text-properties>

‎packages/xl-odt-exporter/src/odt/__snapshots__/withCustomOptions/content.xml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<style:text-properties fo:font-style="italic" fo:font-weight="bold"></style:text-properties>
2424
</style:style>
2525
<style:style style:family="paragraph" style:name="BN_S3" style:parent-style-name="Standard">
26-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
27-
<style:paragraph-properties fo:background-color="#fbe4e4"></style:paragraph-properties>
26+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
27+
<style:paragraph-properties fo:background-color="#ffdfd6"></style:paragraph-properties>
2828
</style:style>
2929
<style:style style:name="BN_T4" style:family="text">
3030
<style:text-properties fo:font-weight="bold"></style:text-properties>
@@ -43,14 +43,14 @@
4343
<style:paragraph-properties fo:text-align="end"></style:paragraph-properties>
4444
</style:style>
4545
<style:style style:family="paragraph" style:name="BN_S10" style:parent-style-name="Standard">
46-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
47-
<style:paragraph-properties fo:text-align="end" fo:background-color="#fbe4e4"></style:paragraph-properties>
48-
<style:text-properties fo:color="#0b6e99"></style:text-properties>
46+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
47+
<style:paragraph-properties fo:text-align="end" fo:background-color="#ffdfd6"></style:paragraph-properties>
48+
<style:text-properties fo:color="#006d9a"></style:text-properties>
4949
</style:style>
5050
<style:style style:family="paragraph" style:name="BN_S11" style:parent-style-name="Standard">
51-
<loext:graphic-properties draw:fill="solid" draw:fill-color="#fbe4e4"></loext:graphic-properties>
52-
<style:paragraph-properties fo:text-align="center" fo:background-color="#fbe4e4"></style:paragraph-properties>
53-
<style:text-properties fo:color="#0b6e99"></style:text-properties>
51+
<loext:graphic-properties draw:fill="solid" draw:fill-color="#ffdfd6"></loext:graphic-properties>
52+
<style:paragraph-properties fo:text-align="center" fo:background-color="#ffdfd6"></style:paragraph-properties>
53+
<style:text-properties fo:color="#006d9a"></style:text-properties>
5454
</style:style>
5555
<style:style style:family="table" style:name="BN_S12">
5656
<style:table-properties table:align="left" style:writing-mode="lr-tb" style:width="330pt"></style:table-properties>
@@ -68,7 +68,7 @@
6868
<style:paragraph-properties fo:text-align="end"></style:paragraph-properties>
6969
</style:style>
7070
<style:style style:name="BN_T17" style:family="text">
71-
<style:text-properties fo:font-weight="bold" fo:font-style="italic" fo:color="#e03e3e" fo:background-color="#ddebf1"></style:text-properties>
71+
<style:text-properties fo:font-weight="bold" fo:font-style="italic" fo:color="#994a37" fo:background-color="#cfedff"></style:text-properties>
7272
</style:style>
7373
<style:style style:name="BN_T18" style:family="text">
7474
<style:text-properties style:text-underline-style="solid"></style:text-properties>
@@ -80,7 +80,7 @@
8080
<style:table-properties table:align="left" style:writing-mode="lr-tb" style:width="270pt"></style:table-properties>
8181
</style:style>
8282
<style:style style:name="BN_T21" style:family="text">
83-
<style:text-properties fo:font-weight="bold" fo:color="#e03e3e" fo:background-color="#ddebf1"></style:text-properties>
83+
<style:text-properties fo:font-weight="bold" fo:color="#994a37" fo:background-color="#cfedff"></style:text-properties>
8484
</style:style>
8585
<style:style style:name="BN_T22" style:family="text">
8686
<style:text-properties style:font-name="Courier New"></style:text-properties>

‎packages/xl-pdf-exporter/src/react-pdf/__snapshots__/example.jsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<VIEW
9191
style={{
9292
alignItems: undefined,
93-
backgroundColor: '#fbe4e4',
93+
backgroundColor: '#ffdfd6',
9494
color: undefined,
9595
paddingVertical: 2.25,
9696
textAlign: 'left'
@@ -495,8 +495,8 @@
495495
<VIEW
496496
style={{
497497
alignItems: 'flex-end',
498-
backgroundColor: '#fbe4e4',
499-
color: '#0b6e99',
498+
backgroundColor: '#ffdfd6',
499+
color: '#006d9a',
500500
paddingVertical: 2.25,
501501
textAlign: 'right'
502502
}}
@@ -514,8 +514,8 @@
514514
<VIEW
515515
style={{
516516
alignItems: 'center',
517-
backgroundColor: '#fbe4e4',
518-
color: '#0b6e99',
517+
backgroundColor: '#ffdfd6',
518+
color: '#006d9a',
519519
paddingVertical: 2.25,
520520
textAlign: 'center'
521521
}}
@@ -1186,8 +1186,8 @@
11861186
<TEXT>
11871187
<TEXT
11881188
style={{
1189-
backgroundColor: '#ddebf1',
1190-
color: '#e03e3e',
1189+
backgroundColor: '#cfedff',
1190+
color: '#994a37',
11911191
fontStyle: 'italic',
11921192
fontWeight: 'bold'
11931193
}}

‎packages/xl-pdf-exporter/src/react-pdf/__snapshots__/exampleWithHeaderAndFooter.jsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<VIEW
9999
style={{
100100
alignItems: undefined,
101-
backgroundColor: '#fbe4e4',
101+
backgroundColor: '#ffdfd6',
102102
color: undefined,
103103
paddingVertical: 2.25,
104104
textAlign: 'left'
@@ -503,8 +503,8 @@
503503
<VIEW
504504
style={{
505505
alignItems: 'flex-end',
506-
backgroundColor: '#fbe4e4',
507-
color: '#0b6e99',
506+
backgroundColor: '#ffdfd6',
507+
color: '#006d9a',
508508
paddingVertical: 2.25,
509509
textAlign: 'right'
510510
}}
@@ -522,8 +522,8 @@
522522
<VIEW
523523
style={{
524524
alignItems: 'center',
525-
backgroundColor: '#fbe4e4',
526-
color: '#0b6e99',
525+
backgroundColor: '#ffdfd6',
526+
color: '#006d9a',
527527
paddingVertical: 2.25,
528528
textAlign: 'center'
529529
}}
@@ -1194,8 +1194,8 @@
11941194
<TEXT>
11951195
<TEXT
11961196
style={{
1197-
backgroundColor: '#ddebf1',
1198-
color: '#e03e3e',
1197+
backgroundColor: '#cfedff',
1198+
color: '#994a37',
11991199
fontStyle: 'italic',
12001200
fontWeight: 'bold'
12011201
}}

0 commit comments

Comments
 (0)