• Stars
    star
    507
  • Rank 87,068 (Top 2 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 13 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UNMAINTAINED compass/sass mixins and snippets.

Compass Recipes Build Status

UNMAINTAINED

A series of Compass and Sass mixins and functions for creating delicious CSS effects.

Availables Recipes

  • Backgrounds - Background patterns, gradients.
  • Color Variables Names, advanced color functions like brightness() & color scheme functions
  • Effects - Visual effects like glass, bevel, cutout or ribbon
  • Form skins - Only one at the moment. Please add yours :)
  • Icon Fonts - Includes icon fonts helper and a few open source fonts as a compass extension (more info)
  • Image - More image mixins (& functions) than Compass deserve (dimensions, inline, simple spriting)
  • Layout - Vertical centering and box layout shortcuts.
  • Media queries - Shortcuts for media queries.
  • Shadows - A wide collection of shadows which use pseudo elements to create fold effects, etc.
  • Shapes - Geometric and iconic shapes, created only with CSS
  • UI Lots of element styling for loader, menu, overlay, separator, tooltip, etc.
  • Utilities Very usefull utilities, trick, hacks
  • View other potential icoming items

Installation

Compass Recipes is available as a gem on RubyGems.org, so installation is quite easy.

(sudo) gem install compass-recipes

*If you want all latests recipes, you can just checkout the recipes (or download as zip) and add '{your-path-here-or-./}compass-recipes/stylesheets' using additional_import_paths or add_import_path (see Compass configuration reference).

More informations on the Wiki*

Usage

When compass-recipes installed, you just need to require the compass plugin in your project

require 'compass-recipes'

Then you can include some recipes like this

@import "recipes/shape/polygon/triangle";
.my-triangle
{
    @include triangle;
}

Like Compass does, you can include all recipes in a folder like this

@import "recipes/shape";

.my-triangle
{
    @include triangle;
}

.my-square
{
    @include square;
}

Open to All

If you have a nifty CSS trick that makes sense to be abstracted (and isn't already in another Github repo), please fork and submit a pull request. Note: If you are not the author of the CSS trick, you must get their permission before adding.

Fonts

All fonts are repackaged using Fontsquirrel. Licences are distributed with the fonts.

Build Documentation

You do not need to build documentation for testing your recipes. Just run compass watch/compile at the root of the repository.

First you need bundle

bundle install

Then, to build the gh-pages from the tests/, you need to call

bundle exec rake pages

This process create the pages & commit them to your gh-pages branch.

Authors/Maintainers

See all contributors

Credits & Thanks:

  • @chriscoyier (shapes & lots of tricks)
  • @leaverou (backgrounds patterns)
  • @necolas (normalize & tricks)
  • @simurai (awesomes design stuffs)
  • All of the people who contribute to the recipes (all names should be in each recipes source)

Additional Resources

Some other great CSS/SCSS/design projects for making delicious websites:

  • Subtle Patterns - Great collection of free background patterns, some of which are not possible with CSS alone.
  • Animate.sass - A bevy of pre-defined keyframe animations.
  • OMG Text - Some super-rad text effects using text-shadow

License

Copyright (c) 2012 Maxime Thirouin

Released under MIT Licence

More Repositories

1

postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.
JavaScript
5,302
star
2

phenomic

DEPRECATED. Please use Next.js instead.
JavaScript
3,218
star
3

pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
JavaScript
1,440
star
4

react-svg-inline

DEPRECATED, I recommend you the tool SVGR
JavaScript
224
star
5

setup

My setup... dotfiles, aliases, functions, preferences, apps. Everything.
Shell
111
star
6

react-topbar-progress-indicator

`topbar` progress indicator as a React component
JavaScript
108
star
7

github-release-from-changelog

Create GitHub releases from your changelog
JavaScript
64
star
8

react-from-svg

Transform SVG files into React components (native | web, JavaScript | Reason/ReScript).
ReScript
60
star
9

reduce-css-calc

Reduce CSS calc() function at the maximum
JavaScript
55
star
10

gulp-cssnext

DEPRECATED. Use gulp-postcss instead.
JavaScript
52
star
11

react-event-as-prop

React Higher-Order Components to get event like hover, focus, active as props
JavaScript
48
star
12

npmpub

Another better `npm publish`
JavaScript
48
star
13

rescript-next

ReScript bindings for Next.js
ReScript
47
star
14

tab

Pretty new tab for you browser.
JavaScript
47
star
15

react-multiversal

React components that works everywhere (iOS, Android, Web, Node)
ReScript
44
star
16

cssnext-loader

# DEPRECATED. Use postcss-loader instead.
JavaScript
43
star
17

LifeTime

LifeTime app
ReScript
38
star
18

jsx-test-helpers

JavaScript
36
star
19

moox

MoOx personal website
ReScript
35
star
20

eslint-config-i-am-meticulous

An ESLint shareable config for very meticulous people
JavaScript
32
star
21

frontend-hot-starterkit

Frontend app boilerplate with hot reload / React / cssnext.
JavaScript
32
star
22

git-init

32
star
23

react-native-transparent-status-and-navigation-bar

React Native module to handle transparent status and navigation bar.
Java
25
star
24

markdown-to-json

Transform markdown content as a JSON for easy rendering for front-end with React, React Native & similar
JavaScript
21
star
25

HideTheNotch

https://moox.io/apps/hide-the-notch/
JavaScript
20
star
26

sass-prism-theme-base

A prism.js theme base in Sass. Including an example inspired by Monokai.
18
star
27

parallaxify

Add parallax effect to your page when scrolling. No dependency.
JavaScript
17
star
28

rc-loader

Runtime configuration loader that supports YAML, JSON or JS.
JavaScript
16
star
29

multili

Function to remove indentation in multi-lines template literals (string) based on the shortest indented line.
JavaScript
16
star
30

reason-react-native-boilerplate

Reason React Native (+Web) template
JavaScript
15
star
31

webpack-easy-config

Webpack config, made easy
JavaScript
15
star
32

atom-smart-tab-name

Provide smarter tab names form Atom editor.
CoffeeScript
14
star
33

jest-ava-api

AVA API for Jest
JavaScript
13
star
34

metalsmith-react

Metalsmith plugin to use React as a template engine
JavaScript
12
star
35

reduce-function-call

Reduce function calls in a string, using a callback
JavaScript
12
star
36

react-native-boilerplate

React Native (+Web) template
JavaScript
11
star
37

postcss-message-helpers

PostCSS helpers to throw or output GNU style messages
JavaScript
10
star
38

dame.bio

Former D'Γ‚me Bio front-end
ReScript
10
star
39

grunt-cssnext

# DEPRECATED. Use grunt-postcss instead.
JavaScript
8
star
40

react-toulouse

♻️ Meetups et Workshops React sur Toulouse.
JavaScript
8
star
41

vscode-color-theme-dark-sea

VS Code color theme inspired by Atom Duo Tone Dark Sea.
8
star
42

fly-cssnext

# DEPRECATED. Use fly-postcss instead.
JavaScript
7
star
43

cssnext-connect

# DEPRECATED. Use postcss-middleware instead.
CSS
7
star
44

firefox-compact-theme

UNMAINTAINED - A simple Firefox compact theme
CSS
7
star
45

atom-jour-nuit

Like F.lux, for Atom thems. Auto switch UI/Syntax themes depending on the time of the day.
JavaScript
7
star
46

metalsmith-filenames

Metalsmith plugin to add filenames to entries
JavaScript
6
star
47

metalsmith-rename

metalsmith plugin to rename entries
JavaScript
6
star
48

atom-syntax-theme-to-highlights-css

CLI tool to convert Atom syntax theme to CSS for code highlighted with atom/highlights
JavaScript
6
star
49

iTerm-theme-Monokai-Soda

6
star
50

cssnextify

# DEPRECATED. Use browserify-postcss instead.
JavaScript
6
star
51

metalsmith-url

Metalsmith plugin to add url to entries from transformation on filenames
JavaScript
5
star
52

social-buttons

Simple and assets free social button
HTML
4
star
53

docss

A simple CSS styleguide generator, from docblocks
JavaScript
4
star
54

Url.js

An tiny tool to manage URL with javascript
JavaScript
3
star
55

duo-cssnext

# DEPRECATED. Use duo-postcss instead.
JavaScript
3
star
56

metalsmith-md

Metalsmith plugin to transform markdown to html
JavaScript
3
star
57

dateranger

A simple component to select date ranges, using Pikaday
JavaScript
3
star
58

LimeChat-theme-Monokai-Soda

A Limechat Monokai Soda theme
CSS
3
star
59

responsive-menu

A JavaScript plugin to enhance your simple CSS (drop down?) menu. Add timing for better desktop experience & responsive behavior for touch device. Using jQuery or Zepto (& optionally Sass)
JavaScript
3
star
60

jQuery.External-Links

A jQuery plugin to easyli manage externals links (new window behavior if not the same domain + google analytics tracking)
JavaScript
3
star
61

localstorage

Simple localStorage abstraction
JavaScript
2
star
62

broccoli-cssnext

# DEPRECATED. Use broccoli-postcss instead.
JavaScript
2
star
63

simple-json-fetch

whatwg fetch(), wrapped and enhanced for JSON response
JavaScript
2
star
64

react-component-unit-testing-example

Easy unit testing React components (without a DOM)
JavaScript
2
star
65

jQuery.Loading-Indicator

JavaScript
2
star
66

jQuery.Ajaction

A Javascript jQuery plugin to handle very easily "ajax like" action. The plugin can be used with just a line of js on the client-side, and with json response on the server side.
JavaScript
1
star
67

grunt-fontcustom

Compile SVG and EPS to Fonts (and CSS)
JavaScript
1
star
68

Check

A simple todo list using html/js
JavaScript
1
star
69

Calendar.app-counter

Read, parse, count hours/days for a Calendar.app search list result
JavaScript
1
star
70

puppet-btsync

Install BitTorrent Sync.
Shell
1
star
71

sass-flex-medias

Some helpers for responsive, intrinsic ratio medias (video, iframe, objects, images...). It also avoid browsers reflow.
CSS
1
star