A comprehensive corporate identity package for Deutsche Model United Nations (DMUN) containing TailwindCSS configurations, DaisyUI themes, and color palettes.
Install the package from npm:
npm install @deutschemodelunitednations/corporate-identity// Import shade variables for specific palettes
import '@deutschemodelunitednations/corporate-identity/css/shades/dmun';
import '@deutschemodelunitednations/corporate-identity/css/shades/munsh';
import '@deutschemodelunitednations/corporate-identity/css/shades/munbw';
// Import theme CSS files
import '@deutschemodelunitednations/corporate-identity/css/theme/light';
import '@deutschemodelunitednations/corporate-identity/css/theme/dark';
// Import DMUN font faces
import '@deutschemodelunitednations/corporate-identity/css/fonts';/* Import all shade palettes */
@import '@deutschemodelunitednations/corporate-identity/css/shades/dmun';
@import '@deutschemodelunitednations/corporate-identity/css/shades/munsh';
@import '@deutschemodelunitednations/corporate-identity/css/shades/munbw';
/* Import themes */
@import '@deutschemodelunitednations/corporate-identity/css/theme/light';
@import '@deutschemodelunitednations/corporate-identity/css/theme/dark';
/* Import fonts */
@import '@deutschemodelunitednations/corporate-identity/css/fonts';The package dynamically generates CSS files for all palettes and themes defined in colors.yml:
- Shade Palettes:
dmun,munsh,munbw - Themes:
light,dark - Fonts: Complete DMUN typography system
Note: Additional palettes and themes can be added to colors.yml and will be automatically included in the build.
import dmun from '@deutschemodelunitednations/corporate-identity';
// Get all colors configuration
const colors = dmun.loadColors();
// Get specific color palette
const dmunColors = dmun.getColorPalette('dmun');
const munshColors = dmun.getColorPalette('munsh');
const munbwColors = dmun.getColorPalette('munbw');
// Get theme configuration
const lightTheme = dmun.getTheme('light');
const darkTheme = dmun.getTheme('dark');
// Get all available palettes and themes
const availablePalettes = dmun.getAllShadePalettes(); // ['dmun', 'munsh', 'munbw']
const availableThemes = dmun.getAllThemeNames(); // ['light', 'dark']
// Get dynamic CSS file paths
const cssFiles = dmun.getCssFiles();
console.log(cssFiles.shades.dmun); // "../dist/dmun-tailwind-shades.css"
console.log(cssFiles.themes.light); // "../dist/dmun-daisyUI-light.css"
console.log(cssFiles.fonts); // "../dist/dmun-fonts.css"The package includes carefully selected web fonts optimized for the DMUN corporate identity:
- Sans Font (Primary): Outfit - Modern and beautiful Futura inspired sans-serif for body text and headings.
- Serif Font: Vollkorn - Use with caution for headings. Don't use for body text.
- Monospace Font: Roboto Mono - Fontface for code, technical and monospaced Numbers contexts
Option 1: CSS Font Faces (Recommended for most use cases)
import '@deutschemodelunitednations/corporate-identity/css/fonts';This loads custom DMUN font faces with optimized font loading.
Option 2: Fontsource Fonts (For projects already using Fontsource)
import '@deutschemodelunitednations/corporate-identity/fonts';This loads all font weights from Fontsource packages.
.font-sans { /* Outfit */ }
.font-serif { /* Vollkorn */ }
.font-mono { /* Roboto Mono */ }const allThemes = dmun.getAllThemes();
### Using with TailwindCSS
Add the CSS files to your project:
```css
/* Import specific shade palettes as needed */
@import '@deutschemodelunitednations/corporate-identity/css/shades/dmun';
/* Import themes */
@import '@deutschemodelunitednations/corporate-identity/css/theme/light';
@import '@deutschemodelunitednations/corporate-identity/css/theme/dark';
Then configure TailwindCSS:
// tailwind.config.js
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
// Your custom configurations
},
},
plugins: [
require('daisyui'),
],
}The package includes the following color palette:
- Primary:
#3D7DD2(Blue) - Secondary:
#ABABAB(Gray) - Accent:
#D0AF65(Gold) - Info:
#45BC64(Green) - Success:
#587491(Blue-Gray) - Warning:
#F77E19(Orange) - Error:
#F51D42(Red)
Each color comes with automatically generated shades (50, 100, 200, ..., 900, 950).
- Light Theme: Optimized for light backgrounds
- Dark Theme: Optimized for dark backgrounds
Both themes include DaisyUI-compatible variables and visual configurations.
If you want to contribute or modify the package:
# Clone the repository
git clone https://github.com/DeutscheModelUnitedNations/dmun-corporate-identity.git
# Install dependencies
npm install
# Generate CSS files
npm run generate:css
# Build the package
npm run buildTo publish a new version:
-
Create a new release on GitHub:
- Go to Releases
- Click "Create a new release"
- Create a new tag with semantic versioning (e.g.,
v1.1.0) - Add release notes describing changes
- Click "Publish release"
-
Automatic publishing: GitHub Actions will automatically:
- Extract version from the release tag
- Build the package (CSS + library)
- Run tests
- Publish to npm registry (
registry.npmjs.org)
Users can install the package directly from npm:
npm install @deutschemodelunitednations/corporate-identityNo additional configuration required!
lib/
├── index.js # CommonJS entry point
├── index.mjs # ES Module entry point
├── index.d.ts # TypeScript definitions
dist/
├── dmun-tailwind-shades.css # DMUN shade variables
├── munsh-tailwind-shades.css # MUNSH shade variables
├── munbw-tailwind-shades.css # MUNBW shade variables
├── dmun-daisyUI-light.css # Light theme
├── dmun-daisyUI-dark.css # Dark theme
└── dmun-fonts.css # DMUN font faces
colors.yml # Source color configuration
Note: The build process automatically generates CSS files for all palettes and themes defined in colors.yml.
CC BY-NC 4.0
Deutsche Model United Nations e.V. / Tade Strehk