Code Monkey home page Code Monkey logo

propane-theme's Introduction

Propane Theme

one does not simply like Campfire's UI

Setup

First, clone the repo:

$ git clone https://github.com/chicisimo/propane-theme.git <target directory>
$ cd <target directory>

Then, run this command to deploy the default theme to Propane (you'll have to reload the room):

WARNING: This command will remove your current propane files, so backup them if you will.

$ script/bootstrap

And you're done!

Customization

Besides, you can add your own style customizations to the default theme and make it more personal

$ script/new_person <your nickname>

The command above creates a folder into people with your nickname and creates all the style files that are in the default folder, ready to be extended (using scss). Once you have added your customizations, run this command to deploy them to Propane (you'll have to reload the room):

$ script/bootstrap <your nickname>

You will need to run the bootstrap command after each customization to deploy it.

For example, if I wanted to change the background color to a darker one, this would be the flow:

$ script/new_person juanxo # Only necessary the first time to create my personal folder
$ vim people/juanxo/styles/cf_chat.scss
@import "../../default/styles/cf_chat"; // This is there by default to import the default styles

$main-dark: #333;

.night-mode {
  background-color: $main-dark !important;
  color: #fff !important;

  .Left .col, #Container {
    background: $main-dark !important;
  }

  table.chat {
    tr, td.person, tr.kick_message td, tr.enter_message td {
      background: $main-dark !important;
    }

    td.body, td.person, tr.kick_message td, tr.enter_message td {
      border-color: $main-dark !important;
      border-left-color: lighten($main-dark, 5%) !important;
    }
  }
}
$ script/bootstrap juanxo

Then, share your theme ๐Ÿค˜

Enjoy hacking!

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.