Skip to content

Instantly share code, notes, and snippets.

View ItsMeAra's full-sized avatar
👋

Ara L Abcarians ItsMeAra

👋
View GitHub Profile
@bessfernandez
bessfernandez / setting-up-html-storybook-app.md
Last active September 11, 2024 16:04
How to setup a simple Storybook HTML demo app

icon-storybook-default

Storybook for HTML

Storybook is all about writing stories. A story usually contains a single state of one component, almost like a visual test case.

Typically you see Storybook used for React or other frameworks, but the library has recently introduced the option to use HTML for your Storybook projects. As a prototyping tool or playground this is great! No larger scale knowledge of other frameworks needed.

Install Storybook HTML

# - title:
# subtitle:
# author:
# img: https://images-na.ssl-images-amazon.com/images/P/#.01._SCLZZZZZZZ_.jpg
# url:
# rating:
# notes:
- year: 2018
books:
- title: Showa 1953-1989
@janielMartell
janielMartell / README.md
Last active March 9, 2024 11:39
Get Tailwind CSS up and running quickly on your project.

Tailwind CSS Quick Start NPM Script

I found myself reading the installation guide and doing the same thing over and over again all the time. So, instead of learning how to use Webpack or Gulp I decided to automate it with something that most people can get their head around, also, no dependencies! Besides Tailwind CSS, obviously.

Sidenote: I'm a Windows user (Sorry Apple, I'm broke) so this probably doesn't work on Linux or Mac but I bet you can find equivalent commands. That said, if you're interested in it I could add it to this gist.

@DavidWells
DavidWells / netlify.toml
Last active June 27, 2024 14:43
All Netlify.toml & yml values
[Settings]
ID = "Your_Site_ID"
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts.
[build]
# This is the directory to change to before starting a build.
base = "project/"
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root.
# This is the directory that you are publishing from (relative to root of your repo)
@tterb
tterb / Gulpfile.js
Last active March 24, 2025 07:25
An updated gulpfile for tterb.github.io
// Gulpfile.js
const autoprefixer = require('autoprefixer');
const browserSync = require('browser-sync').create();
const concat = require('gulp-concat');
const cssnano = require('cssnano');
const del = require('del');
const gulp = require('gulp');
const gutil = require('gulp-util');
const imagemin = require('gulp-imagemin');
@sarahdayan
sarahdayan / modifiers.scss
Last active November 15, 2024 15:56
Sass Modifiers Mixin
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Sass modifiers mixin by Sarah Dayan
// Generate All Your Utility Classes with Sass Maps: frontstuff.io/generate-all-your-utility-classes-with-sass-maps
// http://frontstuff.io
// https://github.com/sarahdayan
@crittermike
crittermike / .platform.app.yaml
Last active August 6, 2021 04:50
A sample .platform.app.yaml file for hosting Grav CMS on Platform.sh
name: grav_app # Rename this to whatever you want.
type: php:7.1
disk: 1024
web:
locations:
"/":
root: "app" # Assuming Grav lives in an app/ directory.
passthru: /index.php
expires: 1h
mounts:
@bradfrost
bradfrost / gulp-style-guide-export.js
Created May 16, 2017 15:54
A Gulp task pseudo-code for exporting from Pattern Lab into an adjacent style guide directory
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var gulp = require('gulp'),
path = require('path'),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
concat = require('gulp-concat'),
@rhukster
rhukster / watch.sh
Last active April 5, 2021 16:11
Watch script for wellington sassc wrapper
#!/bin/sh
#
# Configuration
#
# sass source
SASS_SOURCE_PATH="scss"
# sass options