0.9.3 • Published 8 months ago

@morfeo/preset-default v0.9.3

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

@morfeo/preset-default

Morfeo logo

@morfeo/preset-default is the fastest way to start using morfeo with 2 complete themes! It expose 2 themes, light and dark, you can you use these themes as they are or customize them to fit your design!

@morfeo/preset-default is part of the @morfeo eco-system, a set of framework-agnostic tools that help you to create beautiful design systems for your web and mobile apps.


Documentation | API | Contributing | Discord


Installation

with npm:

npm install @morfeo/preset-default

or yarn:

yarn add @morfeo/preset-default

Usage

import { initPreset } from '@morfeo/preset-default';

initPreset();

Or alternatively

import { lightTheme, darkTheme } from '@morfeo/preset-default';

morfeo.setTheme('light', {...lightTheme, ...yourOverrides });

The preset expose 2 themes, one light and one dark:

import { lightTheme, darkTheme } from '@morfeo/preset-default';

If you like our themes, you can easily use them in your app with the initPreset function:

import { initPreset } from '@morfeo/preset-default';

morfeo.setCurrentTheme('light'); // Used by default
// OR
morfeo.setCurrentTheme('dark');

You can use these themes as they are or customize theme to fit your design:

import { darkTheme, lightTheme } from '@morfeo/preset-default';

morfeo.setTheme('dark', {
  ...darkTheme,
  colors: myDarkColors,
});

morfeo.setTheme('light', {
  ...darkTheme,
  colors: myLightColors,
});
0.9.3

8 months ago

0.9.0

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.8.0

1 year ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago