1.1.1 • Published 11 months ago

@hhenrichsen/motion-canvas-nord v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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()`}
    />,
  );
});
1.1.1

11 months ago

1.1.0

11 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago