Skip to content

Instantly share code, notes, and snippets.

View mskelton's full-sized avatar

Mark Skelton mskelton

View GitHub Profile
@mskelton
mskelton / styled.ts
Created July 16, 2024 13:02
Styled Components + Tailwind
import { createElement } from "react"
import { twMerge } from "tailwind-merge"
const elements = [
"a",
"abbr",
"address",
"area",
"article",
"aside",
@mskelton
mskelton / set-package-manager.sh
Created August 29, 2023 02:08
Set the packageManager key in package.json to the latest version of the given package manager
#!/usr/bin/env bash
# Ensure there is a manifest file
if [[ ! -f package.json ]]; then
echo "error: no manifest file found"
exit 1
fi
# Get the repo name for the given package manager
if [[ $1 == 'npm' ]]; then
/* ==UserStyle==
@name myfxbook ad blocker
@namespace github.com/mskelton
@version 1.0.2
@description Block adds on myfxbook.com
@author Mark Skelton
@license ISC
@homepageURL https://gist.github.com/mskelton/ec5d177a2b5137ec7562f7129d9919f4
==/UserStyle== */
@mskelton
mskelton / Callouts.md
Created January 26, 2023 19:44
Widen callouts

Blue

<p style="background-color: #A8CCF0; border-color: #154779; border-left-style: solid; border-left-width: 8px; border-radius: 4px; padding: 14px 24px; margin: 0;">This is the text in the callout</p>

Green

@mskelton
mskelton / user-css-styles.md
Last active April 10, 2023 18:41
myfxbook.user.css
@mskelton
mskelton / buildkite-dark-theme.user.css
Last active March 22, 2021 22:36
Buildkite Dark Theme
/* ==UserStyle==
@name Buildkite Dark Theme
@namespace github.com/mskelton
@version 2.3.2
@description Relief the stress on your eyes when using Buildkite with this custom dark theme! This theme is inspired by the GitHub dark theme that was recently released.
@author Mark Skelton
@license ISC
@homepageURL https://gist.github.com/mskelton/3f1a9059abda31d54e8780aeaabb7399
==/UserStyle== */
@-moz-document regexp("https://buildkite\\.com/(?!docs).*") {
@mskelton
mskelton / youversion-dark-theme.user.css
Last active March 20, 2021 20:40
YouVersion Dark Theme
/* ==UserStyle==
@name YouVersion Dark Theme
@namespace github.com/mskelton
@version 2.0.1
@description A simple dark theme for YouVersion (bible.com)
@author Mark Skelton
@license ISC
@homepageURL https://gist.github.com/mskelton/187620db02e29c4a2b99eb8bdf5706a7
==/UserStyle== */
@-moz-document domain("my.bible.com") {
@mskelton
mskelton / npm-improved-markdown.user.css
Last active March 6, 2023 15:19
npm Improved Markdown
/* ==UserStyle==
@name npm Improved Markdown
@namespace github.com/mskelton
@version 1.1.0
@description Some simple changes to npm markdown styles to fix blockquote and table style oddities.
@author Mark Skelton
@license ISC
@homepageURL https://gist.github.com/mskelton/e6772b7ca5d8c9195a9143ef3a75c499
==/UserStyle== */
@mskelton
mskelton / github-font.user.css
Last active March 31, 2023 13:26
GitHub custom font
/* ==UserStyle==
@name GitHub Font
@namespace github.com/mskelton
@version 1.2.0
@description Uses custom font for GitHub code blocks/editors.
@author Mark Skelton
@license ISC
@homepageURL https://gist.github.com/mskelton/b93904fb16588d3c4ac7f038ee14249f
==/UserStyle== */
@-moz-document domain("github.com"), domain("gist.github.com") {