CSS Creator

November 24th, 2008

Check out my first attempt at a Coda plugin. 

This idea came to me when i was driving to work one day. I was thinking about some things i could do to streamline my process when i start a new project. I was thinking about all the things that normally take place when i start from the ground up, here is how it usually goes.

 

  1.  I’ll start in photoshop and end up with some jpgs.
  2.  Once those jpgs are approved, i’ll make a skeleton html document with all the appropriate tags i feel i need for whatever design has been approved. At the same time as doing this i’ll write in all my css hooks.
  3.  I’ll open up a css editor, and then re-write all the css hooks i already typed up in my html document and begin to style the document.

 

Sound familiar?

At step three i thought it would awesome to not repeat myself. So my solution is this little plugin. Once your done writing up your html document you just select all the text you want to run the plugin on.

(remember this was intended for a html skeleton document, php, asp, or any other kind of scripting language may give you some not so desirable results)

So what is actually going on when you run the plugin?

I use a php script to search through the selected text for patterns that match id=”anythinghere” and class=”anythinghere”. If there are any matches, i just format them into the desired css document.

I know it’s so simple it’s almost boring but it works awesome for me, hopefully someone else can find it useful.

Click here to download - Download Css Creator

Note: There are some small things i am still working on so if it gives you any problems please get ahold of and let me know. I also realize a lot could be done to make this plugin even better, if anyone has suggestions or ideas please let me know.

Work with me

November 22nd, 2008

Hey all, sorry for the unexpected change. I’ll be revamping the site and my portfolio over the next few weeks, so as the title states, work with me. I’m excited because i have a lot of stuff i learned over the past few months to share with everyone. I also have some new work to present as well. Talk to everyone soon!