Skip to content

Instantly share code, notes, and snippets.

@jeremybise
Last active May 13, 2019 15:08
Show Gist options
  • Save jeremybise/33d7b081fccaf5c69603176dd5b28779 to your computer and use it in GitHub Desktop.
Save jeremybise/33d7b081fccaf5c69603176dd5b28779 to your computer and use it in GitHub Desktop.
Colors SCSS Vars
// BREAKPOINTS
// from https://tailwindcss.com/docs/breakpoints
$bp-sm: 640px;
$bp-md: 768px;
$bp-lg: 1024px;
$bp-xl: 1200px;
// LINE HEIGHT
//from https://tailwindcss.com/docs/line-height
@mixin leading-none {
line-height: 1;
}
@mixin leading-tight {
line-height: 1.25;
}
@mixin leading-snug {
line-height: 1.375;
}
@mixin leading-normal {
line-height: 1.5;
}
@mixin leading-relaxed {
line-height: 1.625;
}
@mixin leading-loose {
line-height: 2;
}
// FONT SIZES
// from https://tailwindcss.com/docs/font-size
@mixin text-xs {
font-size: 0.75rem;
}
@mixin text-sm {
font-size: 0.875rem;
}
@mixin text-base {
font-size: 1rem;
}
@mixin text-lg {
font-size: 1.125rem;
}
@mixin text-xl {
font-size: 1.25rem;
}
@mixin text-2xl {
font-size: 1.5rem;
}
@mixin text-3xl {
font-size: 1.875rem;
}
@mixin text-4xl {
font-size: 2.25rem;
}
@mixin text-5xl {
font-size: 3rem;
}
@mixin text-6xl {
font-size: 4rem;
}
// SHADOWS
// from https://tailwindcss.com/docs/box-shadow
@mixin shadow {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
@mixin shadow-md {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
@mixin shadow-lg {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
@mixin shadow-xl {
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
@mixin shadow-2xl {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@mixin shadow-inner {
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}
@mixin shadow-outline {
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}
@mixin shadow-none {
box-shadow: none;
}
// COLORS
// From https://tailwindcss.com/docs/colors/
$black: #000000;
$white: #ffffff;
$gray100: #f7fafc;
$gray200: #edf2f7;
$gray300: #e2e8f0;
$gray400: #cbd5e0;
$gray500: #a0aec0;
$gray600: #718096;
$gray700: #4a5568;
$gray800: #2d3748;
$gray900: #1a202c;
$red100: #fff5f5;
$red200: #fed7d7;
$red300: #feb2b2;
$red400: #fc8181;
$red500: #f56565;
$red600: #e53e3e;
$red700: #c53030;
$red800: #9b2c2c;
$red900: #742a2a;
$orange100: #fffaf0;
$orange200: #feebc8;
$orange300: #fbd38d;
$orange400: #f6ad55;
$orange500: #ed8936;
$orange600: #dd6b20;
$orange700: #c05621;
$orange800: #9c4221;
$orange900: #7b341e;
$yellow100: #fffff0;
$yellow200: #fefcbf;
$yellow300: #faf089;
$yellow400: #f6e05e;
$yellow500: #ecc94b;
$yellow600: #d69e2e;
$yellow700: #b7791f;
$yellow800: #975a16;
$yellow900: #744210;
$green100: #f0fff4;
$green200: #c6f6d5;
$green300: #9ae6b4;
$green400: #68d391;
$green500: #48bb78;
$green600: #38a169;
$green700: #2f855a;
$green800: #276749;
$green900: #22543d;
$teal100: #e6fffa;
$teal200: #b2f5ea;
$teal300: #81e6d9;
$teal400: #4fd1c5;
$teal500: #38b2ac;
$teal600: #319795;
$teal700: #2c7a7b;
$teal800: #285e61;
$teal900: #234e52;
$blue100: #ebf8ff;
$blue200: #bee3f8;
$blue300: #90cdf4;
$blue400: #63b3ed;
$blue500: #4299e1;
$blue600: #3182ce;
$blue700: #2b6cb0;
$blue800: #2c5282;
$blue900: #2a4365;
$indigo100: #ebf4ff;
$indigo200: #c3dafe;
$indigo300: #a3bffa;
$indigo400: #7f9cf5;
$indigo500: #667eea;
$indigo600: #5a67d8;
$indigo700: #4c51bf;
$indigo800: #434190;
$indigo900: #3c366b;
$purple100: #faf5ff;
$purple200: #e9d8fd;
$purple300: #d6bcfa;
$purple400: #b794f4;
$purple500: #9f7aea;
$purple600: #805ad5;
$purple700: #6b46c1;
$purple800: #553c9a;
$purple900: #44337a;
$pink100: #fff5f7;
$pink200: #fed7e2;
$pink300: #fbb6ce;
$pink400: #f687b3;
$pink500: #ed64a6;
$pink600: #d53f8c;
$pink700: #b83280;
$pink800: #97266d;
$pink900: #702459;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment