Giter Club home page Giter Club logo

wordpress-ui's Introduction

WordPress UI

Here lives a modernized approach to the WordPress Admin UI. It is extremely opinionated, but what I find much better than WordPress defaults. It also includes styling for ACF, SEO Framework, WordPress SEO, and various other plugins. If you have seen various screenshots I have floating around, specifically of my ACF tabs/theme options– this is it.

The SCSS is admittedly not the prettiest to read/look at. Styling the backend of WordPress is a disaster– but that isn't to say there aren't redundent styles or that it couldn't of been done more efficiently, I simply just do not have the willpower to test every little change and over-optimize everything.

This was originally closed source, but I figured I might as well open it up in case anyone wants to contribute.

All colors used are variables and can be found in assets/styles/config – simply just set your own variables before importing as you would any other SCSS project.

Dependencies

Installation

$ yarn add wordpress-ui

Example Usage

CSS

// Configuration
@import '../config/functions';
@import '../config/mixins';
@import '../config/variables';

// Admin styles
@import '~wordpress-ui/admin';

// Login styles
@import '~wordpress-ui/login';

// WordPress classes
@import '~wordpress-ui/wp-classes';
@import '~wordpress-ui/admin-bar';

Javascript

/** import local components */
import datetime from 'wordpress-ui/assets/scripts/components/datetime';

export default {
  init() {
    datetime.init();
  },

  finalize() {},
};

Development

$ git clone https://github.com/log1x/wordpress-ui && cd wordpress-ui 
$ yarn install && yarn run build

License

WordPress UI is provided under the MIT License.

wordpress-ui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

catgofire

wordpress-ui's Issues

Instructions for use

Might be helpful to give better instructions on how to make this work.

For a Sage-based theme

./app/setup.php

/**
 * Style the wp-admin area
 */
add_action('admin_enqueue_scripts', function(){
    wp_enqueue_style('admin-styles', asset_path('styles/admin.css'));
});

./resources/assets/config.json

{
  "entry": {
    "main": [
      "./scripts/main.js",
      "./styles/main.scss"
    ],
    "admin": [
      "./styles/admin.scss"
    ],
    "customizer": [
      "./scripts/customizer.js"
    ]
  },
....
}

./resources/assets/styles/admin.scss

// Admin styles
@import "~wordpress-ui/admin";

// Login styles
@import "~wordpress-ui/login";

// WordPress classes
@import "~wordpress-ui/admin-bar";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.