Project

staple

0.0
No commit activity in last 3 years
No release in over 3 years
a modular ui framework for rails built on top of foundation and sass.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

#staple

a modular ui framework for rails built on top of foundation and sass.

##goals

  • favor presets over explicit declaration
  • convention over configuration
  • keep it simple

##todo

  • simplify into foundation extension
  • dont require rails
  • standalone templates, sass, css files
  • my default configuration
  • drop in elements

:OLD

  • integrate newest version of foundation
  • integrate navs, etc? (as elements?)
  • import web components
  • define custom themes and patterns per project
  • create executables w/ help options

##lower priority todo

  • don't require other gems
  • integration with existing projects
  • reinstall places foundation again then does replace, separate generator for update?
  • Demarcate each pattern in scss (atom) with comment
  • add colors to accent, buttons? gen?
  • seperate if file contains into method.
  • check before import if already there (import font)
  • integrate:
    • background, paragraph, etc vars
    • append into generators
    • generator for form colors from button list
    • on sizes?:
    • radius
    • font
    • primary-color
    • border-size
    • change amount (color dif, hover dif)
  • refactor generator code from low priority
  • why does success (others too | nav button) button go darker?
  • white/black swap shouldn't affect buttons

##Install

#Gemfile
gem 'slim-rails'
gem 'foundation-rails', '5.4.5.0'
gem 'font-awesome-rails'
gem 'simple_form'
gem 'staple'
bundle install
spring stop
rails g staple:install

##intended use

  • *special cases - seperate generators?

###themes

  • rails g staple:theme buttons plastic
  • rails g staple:theme colors flatland // see flatland.theme
  • rails g staple:theme global medium
  • rails g staple:theme typography plastic // see flatland.theme

###buttons

  • rails g staple:buttons import shadow
  • rails g staple:buttons remove shadow
  • rails g staple:buttons append gradient
  • rails g staple:buttons amputate gradient

###forms

  • rails g staple:forms import inner-shadow
  • rails g staple:forms remove inner-shadow
  • rails g staple:forms append inverse
  • rails g staple:forms amputate inverse

###colors*

  • rails g staple:colors import primary:blue//adds if doesn't exist
  • rails g staple:colors remove fave // removes color declaration
  • rails g staple:colors import primary-color:'rgba(22,23,0,0.9)' //explicit declaration

###typography*

  • rails g staple:typography import typeface-primary:Roboto
  • rails g staple:typography remove typeface-primary:Roboto
  • rails g staple:typography append cool-typeface:Roboto //create var and generate

###tables

  • rails g staple:tables import borders
  • rails g staple:tables remove zebra-stripe
  • rails g staple:tables append inverse
  • rails g staple:tables amputate small

###sizes

  • rails g staple:sizes import big
  • rails g staple:sizes remove medium
  • rails g staple:sizes append xl
  • rails g staple:sizes amputate xxl

#staple command - coming soon

  • staple {button-style|button-theme} {pattern} (append)
  • staple buttons round
  • staple buttons-theme plastic