This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tailwind.config.js | |
const plugin = require('tailwindcss/plugin'); | |
module.exports = { | |
theme: { | |
fontFamily: { | |
sans: ['Roboto Condensed'], | |
}, | |
}, | |
plugins: [ | |
plugin(({ addBase }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://blog.tailwindcss.com/tailwindcss-2-2#sibling-selector-variants | |
// add your desired variant 'peer-checked' | |
// | |
// Just like group can be combined with any other variant, peer can as well, | |
// so you have variants like peer-hover, peer-focus, peer-disabled, and loads more at your fingertips. | |
const plugin = require('tailwindcss/plugin'); | |
const peer = plugin.withOptions(function (options) { | |
return function ({ addVariant, config }) { | |
const prefixSelector = function (prefix, selector) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inherits padding and border settings from your tailwind config to provide alternate padding utilities, | |
// which account for border sizes using the css calc() function. | |
// | |
// Usage: <div class="abds-pt-2-border-2" = "padding-top: calc(0.5rem - 2px);" | |
const _ = require('lodash'); | |
const { borderWidth } = require('tailwindcss/defaultTheme'); | |
module.exports = function () { | |
return function ({ addUtilities, e, config }) { | |
const paddings = config('theme.paddingBorder.padding', config('theme.padding', {})); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .storybook/main.js | |
module.exports = { | |
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | |
addons: [ | |
'@storybook/addon-links', | |
'@storybook/addon-essentials' | |
], | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
M221 T0 S100 ;reset flow | |
M104 S0 ;turn off hotend | |
M140 S0 ;turn off bed | |
M107 ;turn off fan | |
G91 ;set relative positioning | |
G1 E-1 F300 ;retract extruder slightly | |
G1 Z+150 E-5 X-20 Y-20 F9000.00 ;move z down, retract warm, move nozzle away | |
G28 X Y ;home x, y | |
M84 ;disable steppers | |
G90 ;reset absolute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1.1, | |
"atDirectives": [ | |
{ | |
"name": "@tailwind", | |
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", | |
"references": [ | |
{ | |
"name": "Tailwind Documentation", | |
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example tailwind.config.js | |
// ... | |
// theme: { | |
// readableText: { | |
// level: 'AAA', | |
// size: 'small' | |
// }, | |
// } | |
// ... | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains common pin mappings for the BIGTREETECH SKR V1.3 | |
# board. To use this config, the firmware should be compiled for the | |
# LPC1768. | |
# See the example.cfg file for a description of available parameters. | |
[stepper_x] | |
step_pin: P2.2 | |
dir_pin: !P2.6 | |
enable_pin: !P2.1 |