Skip to content

Instantly share code, notes, and snippets.

@darisi
darisi / Button.js
Last active January 8, 2020 10:44
Sanity components for Blocks Dropdowns
import React from "react";
const sizes = {
sm: `py-2 px-3 text-xs`,
default: `py-3 px-4 text-sm`,
lg: `py-4 px-6 text-base`,
};
const styles = {
default: `bg-black hover:bg-gold text-white hover:text-black border-2 border-transparent`,
@darisi
darisi / Lead.js
Created January 6, 2020 20:35
Sanity, Gatsby - Custom Block Style
import React from "react";
const Lead = ({ children }) => {
return <p className="text-2xl text-gray-600">{children}</p>;
};
export default Lead;
@darisi
darisi / Gruntfile.js
Last active September 14, 2019 20:14
Uncss setting with grunt examples
uncss: {
dist: {
options: {
ignore: [
/(#|\.)fancybox(\-[a-zA-Z]+)?/,
/expanded/,
/js/,
/wp-/,
/align/,
/admin-bar/,