Styleguide palette CSS

Categories

Component ID

2299133

Component name

Styleguide palette CSS

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Synopsis

Drupal's Style guide module contains a Style guide palette sub-module, which stores color swatches in the database and displays them on a separate page from the main style guide. However, themers who develop with CSS pre-processors like SCSS or LESS often store colors as variables inside the stylesheets themselves, and these colors may change as the project evolves (meaning that a database update would need to happen each time a color changes).

If you'd prefer to store your colors only in the CSS, this module is for you! Style guide: CSS palette allows themers to add color swatches to the styleguide by implementing hook_styleguide() and associating class names with color names, then adding a few lines of CSS to your theme.

Features

  • Add, edit and remove colors without deploying database updates using
    hook_styleguide() and CSS.

Requirements

Roadmap

The 1.x branch is the current stable branch.

I don't currently have any future plans for this module: I just wanted a simple way to output the colors I had defined / derived in SASS/Compass. That being said, I'm open to patches so long as they don't over-complicate the module.

Known problems

I don't know of any problems at this time, so if you find one, please let me know by adding an issue!

Credits

Current co-maintainers:

See the bottom of this page for a list of organizations who have supported this project.

Gittip/Flattr/Paypal

The current co-maintainers are not currently accepting donations.

However, if you are willing to pay this module's co-maintainers to work on a bug that affects your project, or add a feature you require, please contact the co-maintainers directly using the contact form on their respective Drupal.org user account pages.

Help wanted!

Maintaining a project can be a lot of work, and the current co-maintainers of this project have full-time jobs, are not paid to maintain this module, and maintain a few other projects besides this one.

More co-maintainers to help triage issues, test patches for regressions, and add features would be greatly appreciated and would help us to resolve issues faster! If you are interested in becoming a co-maintainer, please open an issue asking to become one!

  • The Style guide project contains a Style guide palette sub-module which allows a site builder to store color swatches in the database. However, this module takes a fundamentally different approach to achieve the same goals.

If you are aware of any other similar projects, please let me know by adding an issue!

Dependencies

This module does not depend on an external service (e.g. SaaS) to be fully functional.

Restrictions

This module has no artificial restrictions: the version available from Drupal.org has full functionality. No paid version is available.