SkillAgentSearch skills...

Cssspec

Generates style guide from stylesheets.

Install / Use

/learn @r7kamura/Cssspec
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Cssspec

Generates style guide from stylesheets.

Installation

# shell-command
gem install cssspec

Server

# shell-command
rackup
/*
  # .button
  basic button design

  ```
  <button class="button">
    button
  </button>

  <button class="button danger">
    danger
  </button>
  ```
*/
.button {
  ...
}

Objects

stylesheets = Cssspec::StylesheetsFinder.find("stylesheets/**/*.scss")
stylesheets.size #=> 2
stylesheets[0].path #=> #<Pathname:stylesheets/foo/bar.scss>
stylesheets[0].sections[0].code #=> '<button class="button">button</button>'
stylesheets[0].sections[0].render #=> "<p>Button</p>\n\n<pre> ... </pre>"
View on GitHub
GitHub Stars15
CategoryProduct
Updated6y ago
Forks0

Languages

Ruby

Security Score

75/100

Audited on Aug 13, 2019

No findings