@morfeo/preset-default
TypeScript icon, indicating that this package has built-in type declarations

0.9.3 • Public • Published

@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,
});

Package Sidebar

Install

npm i @morfeo/preset-default

Homepage

morfeo.dev

Weekly Downloads

0

Version

0.9.3

License

MIT

Unpacked Size

173 kB

Total Files

207

Last publish

Collaborators

  • maurohertz