feat: implement style rules

This commit is contained in:
Amruth Pillai
2026-05-27 10:57:33 +02:00
parent 7bff6644d8
commit b04eef1479
41 changed files with 2995 additions and 396 deletions
+5
View File
@@ -21,6 +21,7 @@ import {
LayoutIcon,
MessengerLogoIcon,
NotepadIcon,
PaintBrushBroadIcon,
PaletteIcon,
PhoneIcon,
ReadCvLogoIcon,
@@ -44,6 +45,7 @@ export type RightSidebarSection =
| "layout"
| "typography"
| "design"
| "styles"
| "page"
| "notes"
| "sharing"
@@ -78,6 +80,7 @@ export const rightSidebarSections: RightSidebarSection[] = [
"layout",
"typography",
"design",
"styles",
"page",
"notes",
"sharing",
@@ -116,6 +119,7 @@ export const getSectionTitle = (type: SidebarSection | CustomOnlyType): string =
.with("layout", () => t`Layout`)
.with("typography", () => t`Typography`)
.with("design", () => t`Design`)
.with("styles", () => t`Custom Styles`)
.with("page", () => t`Page`)
.with("notes", () => t`Notes`)
.with("sharing", () => t`Sharing`)
@@ -159,6 +163,7 @@ export const getSectionIcon = (type: SidebarSection | CustomOnlyType, props?: Ic
.with("layout", () => <LayoutIcon {...iconProps} />)
.with("typography", () => <TextTIcon {...iconProps} />)
.with("design", () => <PaletteIcon {...iconProps} />)
.with("styles", () => <PaintBrushBroadIcon {...iconProps} />)
.with("page", () => <ReadCvLogoIcon {...iconProps} />)
.with("notes", () => <NotepadIcon {...iconProps} />)
.with("sharing", () => <ShareFatIcon {...iconProps} />)