Skip to content

Instantly share code, notes, and snippets.

View taurean's full-sized avatar

Taurean Bryant taurean

View GitHub Profile
@taurean
taurean / input.scss
Created December 20, 2021 23:12
Generated by SassMeister.com.
@use "sass:map";
@use "sass:list";
@use "sass:math";
$breakpoints: (
mobile: 414px, // mobile portrait
tablet: 768px, // mobile landscape / Tablet Portrait
desktop: 1280px, // tablet landscape
);
@taurean
taurean / input.scss
Created December 20, 2021 23:07
Generated by SassMeister.com.
@use "sass:map";
@use "sass:list";
@use "sass:math";
$breakpoints: (
mobile: 414px, // mobile portrait
tablet: 768px, // mobile landscape / Tablet Portrait
desktop: 1280px, // tablet landscape
);
@taurean
taurean / viewport-mixins-output.css
Last active December 20, 2021 21:22
Generated by SassMeister.com.
.test {
color: blue;
}
@media screen and (min-width: 400px) {
.test {
color: red;
}
}
@media screen and (max-width: 1024px) {
.test {
@taurean
taurean / transition-mixin_fig5.scss
Last active June 7, 2019 23:08
transition-mixin fig.5
// The Map & Mixin
$transition-props-map: (
color: (
duration: 75ms,
timing: ease-in
),
opacity: (
duration: 100ms,
timing: ease-in,
),
@taurean
taurean / transition-mixin_fig1.scss
Last active June 7, 2019 23:08
Transition-mixin fig.1
.example-case {
@include transition(opacity, color, transform);
color: blue;
opacity: 0.5;
transform: translateX(0);
&:hover,
&:focus {
color: dodgerblue;
opacity: 1;
@taurean
taurean / transition-mixin_fig4.scss
Last active June 7, 2019 23:09
Transition-mixin fig.4
$transition-props-map: (
color: (
duration: 75ms,
timing: ease-in
),
opacity: (
duration: 100ms,
timing: ease-in,
),
transform: (
@taurean
taurean / transition-mixin_fig3.scss
Last active June 7, 2019 23:15
Transition-mixin fig.3
$transition-props-map: (
color: (
duration: 75ms,
timing: ease-in
),
opacity: (
duration: 100ms,
timing: ease-in,
),
transform: (
@taurean
taurean / transition-mixin_fig2.scss
Last active June 7, 2019 23:09
Transition-mixin fig.2
@mixin transition($properties...) {
$transition-props: ();
@each $property in $properties {
$transition-props: append($transition-props, #{$property + ' ' + '100ms' + ' ' + 'ease'}, comma);
}
transition: $transition-props;
}

Introduction

I'll add some introduction stuff here to help route new Handbook users to different documentation based on what they might need or what role in the organization they're in.

Understanding the language

Among other things, design systems rely on everyone speaking the same language as they serve multiple departments. You can view the full almanac of terms here but for the sake of understanding how to navigate the Handbook we'll cover the basics here in this introduction. For most people, it's natural to break up applications from pages into components, components into design patterns, and design patterns into individual design properties. But, since each step builds and contributes to the larger level of fidelity above it we'll work from the bottom up instead.

Tokens & Design Properties

Design properties are the smallest possible pieces that represent a design idea. A design property can be anything as long as it's a single property. For example, `text-color: #ff0

@taurean
taurean / index.stories.ts
Created April 17, 2019 22:30
sample stories file from storybookjs
import { storiesOf } from '@storybook/angular';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Welcome, Button } from '@storybook/angular/demo';
storiesOf('Welcome', module).add('to Storybook', () => ({
component: Welcome,
props: {},
}));