0.9.3 • Published 2 years ago
@morfeo/preset-default v0.9.3
@morfeo/preset-default

@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 |
Installation
with npm:
npm install @morfeo/preset-defaultor yarn:
yarn add @morfeo/preset-defaultUsage
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,
});