Skip to content

Instantly share code, notes, and snippets.

View vnys's full-sized avatar

Victor Nystad vnys

View GitHub Profile
@vnys
vnys / easing.js
Created June 2, 2024 08:47 — forked from RienNeVaPlus/easing.js
🔀 Simple Easing Functions in JavaScript using `export`
/**
* Easing functions
*
* https://gist.github.com/gre/1650294
* http://easings.net
*/
// no easing, no acceleration
export function easeLinear(t){ return t }
// accelerating from zero velocity
export function easeInQuad(t){ return t*t }
@vnys
vnys / hover.csv
Created October 24, 2023 06:28
EDS hover states
Name Has hover Has active hover Note
App launcher X ❗️All items are active – should be neutral
Breadcrumbs X X ❗️Missing active
Drawer X X Needs active-hover and active-pressed
Sidebar X X Removing pressed in the tokens
Link X
Menu X X
Pagination X X Needs to be rebuilt
Table of contents X X
Tabs X X Resting = inactive in 1.0
@vnys
vnys / tenk-button.css
Created August 9, 2023 19:10
tenk workshop 2023
.button-primary {
font-size: var(--button-font-size);
line-height: var(--button-line-height);
border-radius: var(--button-border-radius);
padding: var(--button-padding);
background-color: var(--button-primary-background-color);
color: var(--button-color);
cursor: pointer;
border: none;
text-decoration: none;
@vnys
vnys / tokens-styles-sync.md
Last active March 15, 2023 09:21
Token Studio syncing styles
Title:  Syncing Equinor Design System tokens with styles
Author: Victor Nystad <vnys@equinor.com>
Status:  Draft
Date:   Mar 14 2023

When syncing tokens in Token Studio with styles, there are two options in the plugin settings:

@vnys
vnys / deluge.md
Last active February 5, 2023 23:07
deluge
Title:  Synthstrom Deluge muligens til salgs
Author: Victor Nystad <vnystad@gmail.com>
Date:   Dec 29 2022

Kostnader 19. juni 2022

@vnys
vnys / 00-taco.md
Last active October 15, 2023 14:07
vegan recipes oppskrifter
Title:  Tomato-spiced lentils
Author: Victor Nystad <vnystad@gmail.com>
Date:   Feb 17 2023
Status: WIP
URLs:
  - https://www.thespruceeats.com/simplest-raw-food-salsa-recipe-3377438
  - https://lovingitvegan.com/simple-guacamole-recipe/
 - https://www.simplyrecipes.com/recipes/refried_black_beans/
@vnys
vnys / gist-template.md
Created November 25, 2022 08:17
Gist template
Title:  XXX
Date:   Nov 24 2022
Author: Victor Nystad
Desc:   Description
Tags:   SomeTag
@vnys
vnys / 01-rules.md
Last active March 7, 2024 12:26
eds tokens 1.0 json design tokens rules
Title:  EDS Tokens naming rules
Status: Draft
Author: vnys
Date:   Nov 20 2022

EDS 2.0 token naming

@vnys
vnys / eds-ferie.txt
Created June 22, 2022 10:30
eds ferie 2022
+------------+-------+-------+-------+-------+-------+-------+-------+
| Uke | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Rebecca | ---XX | XXXXX | XXXXX | XXXXX | XXXXX | ----- | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Lucas | ----- | --XXX | XXXXX | XXXXX | XXXXX | XXXXX | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Bente | ----- | ---XX | XXXXX | XXXXX | XXX-- | ----- | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Oddbjørn | ----- | ----- | ----- | ----- | XXXXX | XXXXX | XXXXX |