All Projects → halfmoonui → Halfmoon

halfmoonui / Halfmoon

Licence: mit
Front-end framework with a built-in dark mode and full customizability using CSS variables; great for building dashboards and tools.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to Halfmoon

fylgja
The modular highly customisable CSS framework. Powered by CSS Components, Utilities and Props for building your Web UI.
Stars: ✭ 65 (-97.48%)
Mutual labels:  css-framework, css-custom-properties, css-variables
animadio
Animadio CSS Framework
Stars: ✭ 24 (-99.07%)
Mutual labels:  css-framework, css-variables
react-native-with-style
A styling package for easily adding themes to your React Native projects.
Stars: ✭ 17 (-99.34%)
Mutual labels:  dark-theme, dark-mode
Windmill Dashboard React
❄ A multi theme, completely accessible, ready for production dashboard.
Stars: ✭ 283 (-89.04%)
Mutual labels:  dark-theme, dashboard
tailwindcss-variables
Easily create css variables without the need for a css file!
Stars: ✭ 47 (-98.18%)
Mutual labels:  dark-mode, css-variables
tailwind-theme-switcher
Basic demo on how to switch styles with Tailwind, handy for dark mode type purposes.
Stars: ✭ 164 (-93.65%)
Mutual labels:  dark-theme, dark-mode
Material Kit React
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Stars: ✭ 3,465 (+34.15%)
Mutual labels:  dark-theme, dashboard
DarkModeSplashScreen
A sample app for iOS and Android written in Xamarin.Forms showing how to implement a Splash Page for Dark Mode
Stars: ✭ 28 (-98.92%)
Mutual labels:  dark-theme, dark-mode
Xboot
基于Spring Boot 2.x的一站式前后端分离快速开发平台XBoot 微信小程序+Uniapp 前端:Vue+iView Admin 后端:Spring Boot 2.x/Spring Security/JWT/JPA+Mybatis-Plus/Redis/Elasticsearch/Activiti 分布式限流/同步锁/验证码/SnowFlake雪花算法ID 动态权限 数据权限 工作流 代码生成 定时任务 社交账号 短信登录 单点登录 OAuth2开放平台 客服机器人 数据大屏 暗黑模式
Stars: ✭ 3,432 (+32.87%)
Mutual labels:  dashboard, dark-mode
Tailwindcss Theming
Tailwind CSS plugin for client-side theming using CSS variables, with dark mode support
Stars: ✭ 349 (-86.49%)
Mutual labels:  dark-theme, css-variables
Must Watch Css
A useful list of must-watch talks about CSS
Stars: ✭ 3,966 (+53.54%)
Mutual labels:  css-framework, css-variables
Deep-DarkFantasy
Global Dark Mode for ALL apps on ANY platforms.
Stars: ✭ 16 (-99.38%)
Mutual labels:  dark-theme, dark-mode
llDark
适用于iOS深色模式的令人愉快的主题框架
Stars: ✭ 75 (-97.1%)
Mutual labels:  dark-theme, dark-mode
dark
🌛 Dark themes / mode for Rambox, Franz or Ferdi messaging services
Stars: ✭ 93 (-96.4%)
Mutual labels:  dark-theme, dark-mode
sketch-dark-mode
Generate a dark mode version of any Sketch document, the right way.
Stars: ✭ 58 (-97.75%)
Mutual labels:  dark-theme, dark-mode
mantine
React components library with native dark theme support
Stars: ✭ 4,390 (+69.96%)
Mutual labels:  dark-theme, dark-mode
Pico
Graceful & Minimal CSS design system in pure semantic HTML
Stars: ✭ 89 (-96.55%)
Mutual labels:  dark-theme, css-framework
theme-change
Change CSS theme with toggle, buttons or select using CSS custom properties and localStorage
Stars: ✭ 283 (-89.04%)
Mutual labels:  css-custom-properties, css-variables
hash-dark-vscode
A minimal dark vscode theme inspired by Hashnode blog syntax highlighting.
Stars: ✭ 12 (-99.54%)
Mutual labels:  dark-theme, dark-mode
Grayshift
A lightweight front-end component library for developing fast and powerful web interfaces.
Stars: ✭ 304 (-88.23%)
Mutual labels:  css-framework, css-variables

This is the main branch of the repo, which contains the latest stable release. For the ongoing development, see the develop branch.

Halfmoon

Front-end framework with a built-in dark mode and full customizability using CSS variables; great for building dashboards and tools.

  • Built-in dark mode—Halfmoon comes with a built-in, toggleable dark mode, which is one of its most important and defining features.
  • Fully customizable using CSS variables—The framework is built entirely using CSS variables (also known as CSS custom properties). There are close to 1,500 CSS variables, which means that almost everything can be customized by overriding a property, making it very easy to theme Halfmoon to fit your brand. Learn more about customization.
  • Great for building dashboards and tools—The components have a very standard look and feel to them, making them suitable for dashboards and tools. Moreover, a lot of importance is placed on components such as forms, navbars, sidebars, dropdowns, toasts, shortcuts, etc. and there are also tons of utilities available.
  • Optional JS library—Many of the components found in Halfmoon are built to work without JavaScript. However, the framework still comes with a powerful JavaScript library with no extra dependencies, such as jQuery.
  • Bootstrap like classes—The class names should be instantly familiar to anyone who has used Bootstrap.
  • Cross-browser compatibility—Fully supports almost all the browsers under the sun, including really old ones like Internet Explorer 11.

To learn more, go to the documentation.

Quickstart

The quickest way to get started with Halfmoon is by using the CDN to include the following files:

<!-- Halfmoon CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon-variables.min.css" rel="stylesheet" />
<!--
  Or,
  Use the following (no variables, supports IE11):
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" rel="stylesheet" />
-->

<!-- Halfmoon JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/halfmoon.min.js"></script>

Pleast note, the JS file should be placed at the end of the <body> tag. Otherwise, some things may not work as expected. For example, using the onclick="..." event to call one of Halfmoon's built-in methods will not work unless the JS file is placed at the end of the <body> tag.

Using npm

npm install halfmoon

After installation, the required CSS and JS file can be imported in the following way:

// Include CSS file
require("halfmoon/css/halfmoon-variables.min.css");
/*
  Or,
  Include the following (no variables, supports IE11):
  require("halfmoon/css/halfmoon.min.css");
*/

// Import JS library
const halfmoon = require("halfmoon");

Please note that manual initialization is required for some components, that is, after the DOM is loaded, the following method needs to be called:

// Call this method after the DOM has been loaded
halfmoon.onDOMContentLoaded();

This initializes all of the components that require JavaScript, such as dropdowns, custom file inputs, shortcuts, etc.

In this way, Halfmoon can be used with frameworks that use the virtual DOM, such as React and Vue. For instance, in the case of Vue, the halfmoon.onDOMContentLoaded() method would be called inside the mounted() hook of your component.

Using React

If you are using React to call the built-in methods, such as halfmoon.toggleSidebar(), please make sure the call is made in a way that binds the correct context. There are two ways to do this:

  1. Using an anonymous method:

    <button className="btn" type="button" onClick={() => halfmoon.toggleSidebar()}>
  2. Using bind:

    <button className="btn" type="button" onClick={halfmoon.toggleSidebar.bind(halfmoon)}>

You can find more details in the React documentation.

Starter template generator

You can use the starter template generator to generate boilerplates for your project. The generator takes your settings and adds the appropriate classes and defines the required containers and elements.

Once again, we recommend reading the documentation, as it contains a lot of examples to help you quickly build websites.

License

Halfmoon is licensed under the MIT license.

Copyright

Copyright 2020, Halfmoon UI

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].