@hhenrichsen/motion-canvas-nord
v1.1.1
Published
Nord Theme for Motion Canvas
Downloads
12
Readme
motion-canvas-nord
This adds a code block color theme and some color constants that I frequently use for Motion Canvas.
Usage
import {makeScene2D} from '@motion-canvas/2d';
import {CodeBlock} from '@motion-canvas/2d/lib/components/CodeBlock';
import {createRef} from '@motion-canvas/core';
import {Nord} from '@hhenrichsen/motion-canvas-nord';
export default makeScene2D(function* (view) {
const code = createRef<CodeBlock>();
view.add(
<CodeBlock
ref={code}
theme={Nord.Theme}
language={'python'}
code={`
def print_hello():
print("Hello")
if __name__ == "__main__":
print_hello()`}
/>,
);
});