BlockSuite API Documentation / @blocksuite/affine-model / ThemeSchema
Variable: ThemeSchema
const
ThemeSchema:ZodObject
<{black
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;connectorColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;FillColorShortMap
:ZodRecord
<ZodString
,ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>>;FillColorShortPalettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;noteBackgrounColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;NoteBackgroundColorMap
:ZodRecord
<ZodString
,ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>>;NoteBackgroundColorPalettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;Palettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;pureBlack
:ZodString
;pureWhite
:ZodString
;shapeFillColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;shapeStrokeColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;shapeTextColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;ShapeTextColorPalettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;ShapeTextColorShortMap
:ZodRecord
<ZodString
,ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>>;ShapeTextColorShortPalettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;StrokeColorShortMap
:ZodRecord
<ZodString
,ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>>;StrokeColorShortPalettes
:ZodArray
<ZodObject
<{key
:ZodString
;value
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {key
:string
;value
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>,"many"
>;textColor
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>;transparent
:ZodLiteral
<"transparent"
>;white
:ZodUnion
<[ZodString
,ZodObject
<{normal
:ZodString
; },"strip"
,ZodTypeAny
, {normal
:string
; }, {normal
:string
; }>,ZodObject
<{dark
:ZodString
;light
:ZodString
; },"strip"
,ZodTypeAny
, {dark
:string
;light
:string
; }, {dark
:string
;light
:string
; }>]>; },"strip"
,ZodTypeAny
, {black
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };connectorColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };FillColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;FillColorShortPalettes
:object
[];noteBackgrounColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };NoteBackgroundColorMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;NoteBackgroundColorPalettes
:object
[];Palettes
:object
[];pureBlack
:string
;pureWhite
:string
;shapeFillColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };shapeStrokeColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };shapeTextColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };ShapeTextColorPalettes
:object
[];ShapeTextColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;ShapeTextColorShortPalettes
:object
[];StrokeColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;StrokeColorShortPalettes
:object
[];textColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };transparent
:"transparent"
;white
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }, {black
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };connectorColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };FillColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;FillColorShortPalettes
:object
[];noteBackgrounColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };NoteBackgroundColorMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;NoteBackgroundColorPalettes
:object
[];Palettes
:object
[];pureBlack
:string
;pureWhite
:string
;shapeFillColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };shapeStrokeColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };shapeTextColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };ShapeTextColorPalettes
:object
[];ShapeTextColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;ShapeTextColorShortPalettes
:object
[];StrokeColorShortMap
:Record
<string
,string
| {normal
:string
; } | {dark
:string
;light
:string
; }>;StrokeColorShortPalettes
:object
[];textColor
:string
| {normal
:string
; } | {dark
:string
;light
:string
; };transparent
:"transparent"
;white
:string
| {normal
:string
; } | {dark
:string
;light
:string
; }; }>
Defined in: packages/affine/model/src/themes/types.ts:12