Giter Site home page Giter Site 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!

propane-theme's People

Contributors

heisenbergthecrabman avatar juanxo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

miguelramosfdz

propane-theme's Issues

Allow script customization

Now that we have styles customization rolled out, we should focus on how to do the same for scripts.

I envision separating all the responders and things like that in each own module, with common modules, like JsonP requests and things like that.

How would someone customize his scripts?

I would like to have something like this in the custom file:

Campfire.featureToggles = {
  avatars: true,
  linkExpander: true,
  audio: false,
  ...
};

// require/concat/whatever modules

// Custom modules go here
...

This allows to, in the future, get the featureToggles out of this and into a centralized system where they can be toggled and added

Theme history messages window

Is it possible to theme the window which appears when I click in "See messages from earlier today" ? (on the top)

It has the default theme.

Auto-install npm

When I run the script/bootstrap, I get this:

script/bootstrap: line 10: npm: command not found
script/bootstrap: line 11: npm: command not found

We should auto-install npm as we're doing with bundler.

ping @juanxo

Transform `code` blocks ala Markdown

e.g:

I think we should check this: `userOfId(new TenantId())`

should be transformed to:

I think we should check this: userOfId(new TenantId())

maybe different font (fixed one), whatever

change architecture to allow for modularization and customization

Currently, customizing propane to your own preferences sucks a little bit. You are rather much stuck with the design and modules this theme ships with (and everybody knows that @pedrogimenez knows shit about design...)

My plan is to shamelessly steal the boxen idea of having people specific files, where you extend or modify the default settings.

Also, to improve modularization, I would like to use scss and browserify or something similar to concatenate files and create custom builds. I will post an example of the process

Error running the script

When I try to use the script to add the theme to Propane I get this error:

script/bootstrap: line 5: bundle: command not found

Should I install that gem before?

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.