Skip to content

Instantly share code, notes, and snippets.

View joe-bell's full-sized avatar

Joe Bell joe-bell

View GitHub Profile
@joe-bell
joe-bell / stack.ts
Last active October 5, 2021 12:15
Stitches: Themed Variants
import type * as Stitches from '@stitches/react';
import { css, config } from "./stitches.config";
type TCSS = Stitches.CSS<typeof config>;
const { space } = config.theme;
type TSpaceKey = keyof typeof space;
const gap = (Object.keys(space) as Array<TSpaceKey>).reduce<
Record<TSpaceKey, TCSS>
@joe-bell
joe-bell / machine.js
Created March 22, 2021 13:47
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@joe-bell
joe-bell / cx.tsx
Last active October 19, 2020 10:26
Tailwind Classnames
const heading = ["font-inter", "font-bold"];
const config = {
// Components
"c.heading": heading,
"c.h1": [...heading, "text-5xl"],
"c.h2": [...heading, "text-4xl"],
"c.h3": [...heading, "text-3xl"],
"c.container": ["block", "mx-auto", "max-w-5xl", "px-4"],
// Utilities
@joe-bell
joe-bell / conditional-modifiers.scss
Last active December 4, 2017 17:22
Conditional Modifiers
/**
* Conditional Modifiers
*
* For example, here's a basic component with a "spaced" modifier:
*
* <div class="foo foo--spaced">
* <p class="foo__child">
* Hello
* </p>
* <p class="foo__child">
@joe-bell
joe-bell / keybase.md
Last active March 19, 2019 15:52
keybase.md

Keybase proof

I hereby claim:

  • I am joe-bell on github.
  • I am joebell (https://keybase.io/joebell) on keybase.
  • I have a public key whose fingerprint is 32E7 474A 3FE2 0421 50A2 05B5 F23B 86E5 5CF8 793C

To claim this, I am signing this object: