twitter.com/digitaldonkey09
thorsten.krug@donkeymedia.eu
SMACSS
BEM
PHP
JS/Frontend for node.js
SMACSS
BEM
Syntactically Awesome StyleSheets
* http://sassbreak.com/ruby-sass-libsass-differences/
Documentation for any flavor of CSS that you’ll love to write. Human readable, machine parsable, and easy to remember.
http://warpspire.com/kss/
// Button
//
// Your standard button suitable for clicking.
//
// :hover - Highlights when hovering.
// :disabled - Dims the button when disabled.
// .primary - Indicates button is the primary action.
// .smaller - A little bit smaller now.
//
// Markup:
// <button class="button {{modifier_class}}">
//
// :hover - Highlight the button when hovered.
//
// Styleguide 1.1
.button {
...
&.primary {
...
}
&.smaller {
...
}
&:hover {
...
}
&:disabled {
...
}
}
http://www.browsersync.io
name: mytheme
description: 'Custom classy based theme.'
type: theme
core: 8.x
package: Custom
# Defines the base theme.
base theme: classy
# Add libraries.
libraries:
- digitaldonkey/global-styling
#stylesheets-remove:
# - '@classy/css/layout.css'
# - core/assets/vendor/normalize-css/normalize.css
# Regions
# Default Regions see:
# https://api.drupal.org/api/drupal/core/modules/system/templates/page.html.twig/8
regions:
header: Header
content: Content
sidebar_first: 'Sidebar first'
footer: Footer
global-styling:
version: 1.x
css:
theme:
css/main.css: {}
js:
js/behaviors.js: { scope: footer }
dependencies:
- core/jquery
- core/drupal
- core/jquery-once
# For external libraries see:
# https://www.drupal.org/theme-guide/8/assets#external
twig.config:
# Twig debugging:
# @default false
debug: true
# Twig auto-reload:
#
# Automatically recompile Twig templates whenever the source code changes.
# If you don't provide a value for auto_reload, it will be determined
# based on the value of debug.
#
# Not recommended in production environments
# @default null
auto_reload: true
cd [theme-folder]
npm install --save-dev gulp gulp-sass gulp-filter browser-sync gulp-sourcemaps gulp-shell compass-mixins breakpoint-sass gulp-util gulp-plumber gulp-uglify gulp-rename kss
bower install --save singularity
gulp
/sites/all/themes/_custom/[theme name]/styleguide/
https://www.drupal.org/sandbox/digitaldonkey/2599668
https://www.drupal.org/project/issues/2599668
twitter.com/digitaldonkey09
thorsten.krug@donkeymedia.eu