### Required

[\[1\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/StyleInjector.ts#L7-L7)[\[2\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/fontDetect.ts#L29-L29)
Creating and attaching "style" elements is not allowed. For loading CSS, use a "styles.css" file instead, which Obsidian loads for you.

[\[1\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/main.ts#L8-L8)[\[2\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/main.ts#L11-L11)[\[3\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/main.ts#L12-L12)[\[4\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/main.ts#L13-L13)[\[5\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/main.ts#L14-L14)
"theme" is overridden by string in this union type.

[\[1\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/BaseSetting.ts#L58-L61)[\[2\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/BaseSetting.ts#L93-L102)[\[3\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/BaseSetting.ts#L108-L113)[\[4\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/LineHeightSetting.ts#L28-L39)[\[5\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/LineHeightSetting.ts#L40-L47)
Promise returned in function argument where a void return was expected.

[\[1\]](https://github.com/chrishoward-projects/sourcemode-styling/blob/b0a833292520623366de3b076a46e3d6a9b33f59/src/settings/FontWeightSetting.ts#L38-L38)
This assertion is unnecessary since it does not change the type of the expression.



---

### Optional

