SoftwareBrothers / adminjs-themes

Themes set for AdminJS
MIT License
5 stars 0 forks source link

feat: Themes #1

Closed ariansobczak-rst closed 2 years ago

ariansobczak-rst commented 2 years ago

Introduced Theme generator, dark and light theme for AdminJS.

Dark theme image Light theme image

To use themes in AdminJS just import from @adminjs/themes or create using ThemeGenerator

const theme = new ThemeGenerator({
{
  details: { name: 'AdminJS theme' },
  colors: {
    bg: '#FFFFFF'
  }
})
// Then export to use as a theme in app as an AdminJSTheme
theme.toJSON()

or import from themes

import { DarkTheme } from '@adminjs/themes';

export const adminConfig: AdminJSOptions = {
  branding: {
    theme: DarkTheme
  }
};

Related with https://github.com/SoftwareBrothers/adminjs/pull/1025

Palete page image image

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: